(source, setState)
| 167 | } |
| 168 | |
| 169 | function chompSingleString(source, setState) |
| 170 | { |
| 171 | while (source.skipTo('\\"')) { source.next(); source.next(); } |
| 172 | if (source.skipTo('"')) |
| 173 | { |
| 174 | source.next(); |
| 175 | setState(normal()); |
| 176 | return 'string'; |
| 177 | } |
| 178 | source.skipToEnd(); |
| 179 | setState(normal()); |
| 180 | return 'error'; |
| 181 | } |
| 182 | |
| 183 | function chompChar(source, setState) |
| 184 | { |