| 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 | |