MCPcopy
hub / github.com/Tampermonkey/tampermonkey / next_line

Function next_line

src/jslint.js:1192–1213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1190// Private lex methods
1191
1192 function next_line() {
1193 var at;
1194 if (line >= lines.length) {
1195 return false;
1196 }
1197 character = 1;
1198 source_row = lines[line];
1199 line += 1;
1200 at = source_row.search(/ \t/);
1201 if (at >= 0) {
1202 warn_at('mixed', line, at + 1);
1203 }
1204 source_row = source_row.replace(/\t/g, tab);
1205 at = source_row.search(cx);
1206 if (at >= 0) {
1207 warn_at('unsafe', line, at);
1208 }
1209 if (option.maxlen && option.maxlen < source_row.length) {
1210 warn_at('too_long', line, source_row.length);
1211 }
1212 return true;
1213 }
1214
1215// Produce a token object. The token inherits from a syntax symbol.
1216

Callers 2

stringFunction · 0.85
jslint.jsFile · 0.85

Calls 1

warn_atFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…