fixing the regex lexer to make it less agressive when we know it can't possibly be a regex

This commit is contained in:
Jeremy Ashkenas
2010-01-01 09:49:18 -05:00
parent 41056ca2bd
commit ad5b5fa458
3 changed files with 19 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
a: [(x => x), (x => x * x)]
print(a.length is 2)
print(a.length is 2)
regex: /match/i
words: "I think there is a match in here."
print(!!words.match(regex))