From 2fd3236a927f420d6dd06891466203500e49ba1c Mon Sep 17 00:00:00 2001 From: Steven Sojka Date: Tue, 8 Sep 2020 07:52:46 -0500 Subject: fix(highlights): add missing js operators --- queries/javascript/highlights.scm | 47 +++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 17 deletions(-) (limited to 'queries/javascript') diff --git a/queries/javascript/highlights.scm b/queries/javascript/highlights.scm index 19ebd4484..03ffcb57f 100644 --- a/queries/javascript/highlights.scm +++ b/queries/javascript/highlights.scm @@ -113,23 +113,36 @@ "." @punctuation.delimiter "," @punctuation.delimiter -"--" @operator -"-" @operator -"-=" @operator -"&&" @operator -"+" @operator -"++" @operator -"+=" @operator -"<" @operator -"<<" @operator -"=" @operator -"==" @operator -"===" @operator -"=>" @operator -">" @operator -">>" @operator -"||" @operator -"??" @operator +[ + "--" + "-" + "-=" + "&&" + "+" + "++" + "+=" + "&=" + "/=" + "**=" + "<<=" + "<" + "<=" + "<<" + "=" + "==" + "===" + "!=" + "!==" + "=>" + ">" + ">=" + ">>" + "||" + "%" + "%=" +] @operator + +(ternary_expression ["?" ":"] @operator) "(" @punctuation.bracket ")" @punctuation.bracket -- cgit v1.2.3-70-g09d2