adding an initial lexer test

This commit is contained in:
Jeremy Ashkenas
2009-12-18 06:59:06 -05:00
parent 049358d006
commit 92adabdddc
8 changed files with 120 additions and 4 deletions

View File

@@ -157,8 +157,8 @@ module CoffeeScript
index = 0
loop do
tok = @tokens[index -= 1]
return if !tok || tok[0] != :IDENTIFIER
next if tok[0] == ','
return if tok[0] != :IDENTIFIER
tok[0] = :PARAM
end
end