Hewing closer to JS' syntactic resynchronization for regexp lexing.

This commit is contained in:
Jeremy Ashkenas
2010-11-09 22:39:15 -05:00
parent 71db1fc142
commit 841463da8e
3 changed files with 19 additions and 8 deletions

View File

@@ -37,9 +37,13 @@ eq '\\\\#{}\\\\\\\"', ///
eq /// /// + '', '/(?:)/'
#584: Unescaped slashes in character classes.
ok /:\/[/]goog/.test 'http://google.com'
#764: Should be indexable.
eq /0/['source'], ///#{0}///['source']
# If not preceded by whitespace, should be stricter.
i = 5
eq (1000)/200/i, 1
#584: Unescaped slashes in character classes.
ok /:\/[/]goog/.test 'http://google.com'