(stream,quoteChar,escapeChar)
| 331 | } |
| 332 | |
| 333 | function quote(stream,quoteChar,escapeChar) { |
| 334 | while (!stream.eol()) { |
| 335 | var ch = stream.next(); |
| 336 | if (ch == quoteChar) { |
| 337 | return true; |
| 338 | }else if (ch == escapeChar) { |
| 339 | stream.next(); |
| 340 | } |
| 341 | } |
| 342 | return false; |
| 343 | } |
| 344 | |
| 345 | function lookahead(stream) { |
| 346 | var m = stream.match(/([\n\s]+|%[^\n]*\n)*(.)/,false); |
no outgoing calls
no test coverage detected