Skip to content

Commit 57e66c7

Browse files
authored
Merge pull request #298 from dotnet/jorobich/fix-statement
Replace `checked-unchecked-statement` with `expression-operator-expression`
2 parents 1933252 + d961678 commit 57e66c7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

grammars/csharp.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@
319319
</dict>
320320
<dict>
321321
<key>include</key>
322-
<string>#checked-unchecked-statement</string>
322+
<string>#expression-operator-expression</string>
323323
</dict>
324324
<dict>
325325
<key>include</key>

grammars/csharp.tmLanguage.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ repository:
223223
include: "#try-statement"
224224
}
225225
{
226-
include: "#checked-unchecked-statement"
226+
include: "#expression-operator-expression"
227227
}
228228
{
229229
include: "#context-control-statement"

src/csharp.tmLanguage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ repository:
9494
- include: '#yield-statement'
9595
- include: '#await-statement'
9696
- include: '#try-statement'
97-
- include: '#checked-unchecked-statement'
97+
- include: '#expression-operator-expression'
9898
- include: '#context-control-statement'
9999
- include: '#context-control-paren-statement'
100100
- include: '#labeled-statement'
@@ -1416,7 +1416,7 @@ repository:
14161416
patterns:
14171417
- match: (@?[_[:alpha:]][_[:alnum:]]*(?:\s*\.\s*@?[_[:alpha:]][_[:alnum:]]*)*)\s*(:)
14181418
captures:
1419-
1:
1419+
1:
14201420
patterns:
14211421
- match: \@?[_[:alpha:]][_[:alnum:]]*
14221422
name: variable.other.object.property.cs
@@ -1654,7 +1654,7 @@ repository:
16541654

16551655
context-control-statement:
16561656
match: \b(checked|unchecked|unsafe)\b(?!\s*[@_[:alpha:](])
1657-
name: keyword.control.context.$1.cs
1657+
name: keyword.control.context.$1.cs
16581658

16591659
context-control-paren-statement:
16601660
patterns:
@@ -2414,7 +2414,7 @@ repository:
24142414
patterns:
24152415
- include: '#ref-modifier'
24162416
- include: '#expression'
2417-
2417+
24182418
assignment-operators:
24192419
patterns:
24202420
- name: keyword.operator.assignment.compound.cs

0 commit comments

Comments
 (0)