Tokenizer: scanAhead

Use regular expression character search to calculate readAhead. scanAhead may include ^$ to match the empty string that will be generated at the end of source input.

Modified: core.js