Skip to content

Commit

Permalink
Add more operators (#152)
Browse files Browse the repository at this point in the history
* Add comparison operators

* ALL the operators

...uh this is a lot. This might be kinda silly.

Ternary is an operator, but that's not included because of ":".
typeof, in, void, they're operators, but they're also keywords, so i'm not changing those either.

* visual consistency [skip ci]

* Forgot bitwise not

* manual action

Co-authored-by: JenChieh <[email protected]>
  • Loading branch information
icecream17 and jcs090218 authored Feb 24, 2021
1 parent 1eee0d3 commit 37af80d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: build

on:
workflow_dispatch:
push:
pull_request:
branches:
Expand Down
27 changes: 25 additions & 2 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,24 @@
] @punctuation.delimiter

[
"--"
"-"
"--"
"-="
"&&"
"+"
"++"
"+="
"*"
"*="
"**"
"**="
"/"
"/="
"%"
"%="
"<"
"<="
"<<"
"<<="
"="
"=="
"==="
Expand All @@ -136,7 +144,22 @@
">"
">="
">>"
">>="
">>>"
">>>="
"~"
"^"
"&"
"|"
"^="
"&="
"|="
"&&"
"||"
"??"
"&&="
"||="
"??="
] @operator

[
Expand Down

0 comments on commit 37af80d

Please sign in to comment.