aboutsummaryrefslogtreecommitdiff
path: root/parser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/parser.lua b/parser.lua
index 1ccd263..c3478dc 100644
--- a/parser.lua
+++ b/parser.lua
@@ -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