Skip to content

Commit 9f1343e

Browse files
committed
[JS] Fix ligatures and missing operator
1 parent 2f74946 commit 9f1343e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

syntaxes/fjsx15/operator/arithmetic.sublime-syntax

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,25 @@ contexts:
2626
# | += | |
2727
# | * | Multiplication. |
2828
# | *= | |
29+
# | ** | Exponentiation. |
30+
# | **= | |
2931
# | / | Division. |
3032
# | /= | |
3133
# | % | Modulus. |
3234
# | %= | |
3335
main:
3436
- match: |
3537
(?x)
36-
(?> \-\-
38+
(?> --
3739
| \+\+
3840
)
3941
scope: keyword.operator.arithmetic.js.fjsx15
4042
pop: true
4143
- match: |
4244
(?x)
43-
(?> \-=?
45+
(?> -=?
4446
| \+=?
45-
| \*=?
47+
| \*\*?=?
4648
| /=?
4749
| %=?
4850
)

syntaxes/fjsx15/operator/bitwise.sublime-syntax

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ contexts:
3737
- match: |
3838
(?x)
3939
(?> ~=?
40-
| &=?
41-
| \|=?
40+
| &(?!&)=?
41+
| \|(?!\|)=?
4242
| \^=?
4343
| <<=?
4444
| >>>=?

syntaxes/fjsx15/operator/logical.sublime-syntax

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ contexts:
2727
(?x)
2828
(?> &&
2929
| \|\|
30-
| !
30+
| !!?
3131
)
3232
scope: keyword.operator.logical.js.fjsx15
3333
set: optional-expression

0 commit comments

Comments
 (0)