Instead of recognizing "function" as a keyword, simply match it as a context-sensitive keyword in the parser outside functions.
6 lines
140 B
Plaintext
6 lines
140 B
Plaintext
test cat
|
|
|
|
; 'function' is not a keyword, and can be used as the name of a function too.
|
|
function function() {}
|
|
; check: function function()
|