summaryrefslogtreecommitdiff
path: root/script/parser/tokens.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/tokens.lua')
-rw-r--r--script/parser/tokens.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/script/parser/tokens.lua b/script/parser/tokens.lua
index 958f292e..a4de7f88 100644
--- a/script/parser/tokens.lua
+++ b/script/parser/tokens.lua
@@ -7,6 +7,11 @@ local Word = m.R('AZ', 'az', '__', '\x80\xff') * m.R('AZ', 'az', '09', '__', '
local Symbol = m.P'=='
+ m.P'~='
+ m.P'--'
+ -- non-standard:
+ + m.P'<<='
+ + m.P'>>='
+ + m.P'//='
+ -- end non-standard
+ m.P'<<'
+ m.P'>>'
+ m.P'<='
@@ -15,7 +20,7 @@ local Symbol = m.P'=='
+ m.P'...'
+ m.P'..'
+ m.P'::'
- -- incorrect
+ -- non-standard:
+ m.P'!='
+ m.P'&&'
+ m.P'||'
@@ -24,7 +29,12 @@ local Symbol = m.P'=='
+ m.P'+='
+ m.P'-='
+ m.P'*='
+ + m.P'%='
+ + m.P'&='
+ + m.P'|='
+ + m.P'^='
+ m.P'/='
+ -- end non-standard
-- singles
+ m.S'+-*/!#%^&()={}[]|\\\'":;<>,.?~`'
local Unknown = (1 - Number - Word - Symbol - Sp - Nl)^1