From 3e199ed6454d465bf0f1946136f0858251a0750b Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Wed, 7 Jul 2021 22:13:23 -0700 Subject: [PATCH] Treat && || ++ -- and * as single tokens in JS --- config/syntax.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/syntax.toml b/config/syntax.toml index 3052d89c4..0d1a61dee 100644 --- a/config/syntax.toml +++ b/config/syntax.toml @@ -5,7 +5,9 @@ atom_patterns = [ '[0-9]+', # Symbols (e.g. variable names) '[.a-zA-Z0-9_]+', - # Operators + # Two character operators + '(&&|\|\||\+\+|--|\*\*)', + # Single character operators '[=<>/*+?:;,-]', ] string_patterns = [