peteguhl/CodeMirror2 — comment on commit c611c4a5c381d2aa4794678529152e34d1647779
File: mode/vbscript/vbscript.js line 46
By marijnh:

Might want to use an inclusive regexp, rather than a set of negative tests, and use `eatWhile`. For example `stream.eatWhile(/[^'",()\.]/)`.

You don't have to accumulate the token yourself, you can get it with `stream.current()` (after having the stream consume it).