diff options
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 |
