Don't have keywords in the lexer and parser.

Instead of recognizing "function" as a keyword, simply match it as a
context-sensitive keyword in the parser outside functions.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-20 12:57:29 -07:00
parent fab16941c8
commit 64490a3587
3 changed files with 13 additions and 23 deletions

View File

@@ -0,0 +1,5 @@
test cat
; 'function' is not a keyword, and can be used as the name of a function too.
function function() {}
; check: function function()