Add \ in front of functions in the parser

Auditors: alpert
This commit is contained in:
Emily Eisenberg
2013-07-13 16:13:05 -07:00
parent 38e2d600fd
commit 20658a95b6
2 changed files with 16 additions and 15 deletions

View File

@@ -45,7 +45,7 @@ Lexer.prototype.lex = function(pos) {
var match;
if ((match = input.match(anyFunc))) {
// If we match one of the tokens, extract the type
return new LexResult(match[1], match[0], pos + match[0].length);
return new LexResult(match[0], match[0], pos + match[0].length);
} else {
// Otherwise, we look through the normal token regexes and see if it's
// one of them.