diff options
| author | Steven Sojka <steelsojka@users.noreply.github.com> | 2020-09-10 10:09:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-10 10:09:46 -0500 |
| commit | 649fe1a84266d01e307843c22d46cf0e6173995c (patch) | |
| tree | 3bc5b86d0cac00bcdca152215a1c5c3f38244a46 | |
| parent | Find package path based on the Lua source file (diff) | |
| parent | fix(highlights): add missing js operators (diff) | |
| download | nvim-treesitter-649fe1a84266d01e307843c22d46cf0e6173995c.tar nvim-treesitter-649fe1a84266d01e307843c22d46cf0e6173995c.tar.gz nvim-treesitter-649fe1a84266d01e307843c22d46cf0e6173995c.tar.bz2 nvim-treesitter-649fe1a84266d01e307843c22d46cf0e6173995c.tar.lz nvim-treesitter-649fe1a84266d01e307843c22d46cf0e6173995c.tar.xz nvim-treesitter-649fe1a84266d01e307843c22d46cf0e6173995c.tar.zst nvim-treesitter-649fe1a84266d01e307843c22d46cf0e6173995c.zip | |
Merge pull request #421 from steelsojka/add-missing-js-ops
fix(highlights): add missing js operators
| -rw-r--r-- | queries/javascript/highlights.scm | 47 |
1 files changed, 30 insertions, 17 deletions
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 |
