Treat && || ++ -- and * as single tokens in JS

pull/25/head
Wilfred Hughes 2021-07-07 22:13:23 +07:00
parent c43e724caf
commit 3e199ed645
1 changed files with 3 additions and 1 deletions

@ -5,7 +5,9 @@ atom_patterns = [
'[0-9]+', '[0-9]+',
# Symbols (e.g. variable names) # Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+', '[.a-zA-Z0-9_]+',
# Operators # Two character operators
'(&&|\|\||\+\+|--|\*\*)',
# Single character operators
'[=<>/*+?:;,-]', '[=<>/*+?:;,-]',
] ]
string_patterns = [ string_patterns = [