Skip to content

Commit d24455a

Browse files
authored
[C#] Don't stack keyword and illegal scope (#4512)
This commit removes `keyword.control.cs` from illegal usage locations of some keywords. Despite it not being very useful for highlighting it would alternatively require to create separate patterns to apply full `keyword.control.[conditional|exception]` scopes for consistency with legal usage positions.
1 parent b592fb4 commit d24455a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

C#/C#.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ contexts:
13021302
scope: keyword.control.loop.while.cs
13031303
set: [while_block, while_condition]
13041304
- match: \b(else|case|catch|finally)\b
1305-
scope: keyword.control.cs invalid.illegal.unexpected.keyword.cs
1305+
scope: invalid.illegal.unexpected.keyword.cs
13061306
- match: \b(return|yield\s+return)\b
13071307
scope: keyword.control.flow.return.cs
13081308
set: line_of_code_in

0 commit comments

Comments
 (0)