diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-17 23:33:49 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-17 23:33:56 -0700 |
| commit | af441330ff7cfdc466281ce135ca7231ec54c499 (patch) | |
| tree | d046e1ee824fdb9828fdb99af31e9fc17087e6e4 /parser.lua | |
| parent | ceb29321edef05b8416a72a1f396c683f0c6c831 (diff) | |
Improving nomsu codegen.
Diffstat (limited to 'parser.lua')
| -rw-r--r-- | parser.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -229,6 +229,9 @@ Parser.parse = function(nomsu_code, source, version) return tree end Parser.is_operator = function(s) - return not not (NOMSU_DEFS.operator_char ^ 1):match(s) + return not not (NOMSU_DEFS.operator_char ^ 1 * -1):match(s) +end +Parser.is_identifier = function(s) + return not not (NOMSU_DEFS.ident_char ^ 1 * -1):match(s) end return Parser |
