Skip to content

Commit 2d8ea91

Browse files
committed
Correctly classify '@=' operator
1 parent afc4a27 commit 2d8ea91

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

MagicPython.YAML-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ repository:
130130
match: |
131131
(?x)
132132
<<= | >>= | //= | \*\*=
133-
| \+= | -= | /=
133+
| \+= | -= | /= | @=
134134
| \*= | %= | ~= | \^= | &= | \|=
135135
| =
136136
@@ -143,7 +143,7 @@ repository:
143143
and | or | not | in | is | for | if | else | yield | await
144144
)(?!\s*:)\b
145145
146-
| != | == | >= | <= | << | >> | @=
146+
| != | == | >= | <= | << | >>
147147
| && | \|\| | \*\* | //
148148
| > | < | \+ | - | \* | % | \| | & | \^
149149
| ~ | / | @

MagicPython.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<key>match</key>
8484
<string>(?x)
8585
&lt;&lt;= | &gt;&gt;= | //= | \*\*=
86-
| \+= | -= | /=
86+
| \+= | -= | /= | @=
8787
| \*= | %= | ~= | \^= | &amp;= | \|=
8888
| =
8989
</string>
@@ -1489,7 +1489,7 @@ indirectly through syntactic constructs
14891489
and | or | not | in | is | for | if | else | yield | await
14901490
)(?!\s*:)\b
14911491
1492-
| != | == | &gt;= | &lt;= | &lt;&lt; | &gt;&gt; | @=
1492+
| != | == | &gt;= | &lt;= | &lt;&lt; | &gt;&gt;
14931493
| &amp;&amp; | \|\| | \*\* | //
14941494
| &gt; | &lt; | \+ | - | \* | % | \| | &amp; | \^
14951495
| ~ | / | @

test/expressions/expr2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
a : source.python
8-
@= : keyword.operator.python, source.python
8+
@= : keyword.operator.assignment.python, source.python
99
b : source.python
1010
a : source.python
1111
-= : keyword.operator.assignment.python, source.python

0 commit comments

Comments
 (0)