Skip to content

Commit fac6ca5

Browse files
committed
Fix orphaned else
Closes #3
1 parent 5d076d0 commit fac6ca5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

cshtml.sublime-syntax

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,14 @@ contexts:
167167
0: punctuation.section.embedded.end.cshtml
168168

169169
inside-block-cs:
170-
- match: '}'
170+
- match: \}
171171
scope: punctuation.section.block.end.cs
172+
push:
173+
- match: \belse\b
174+
scope: keyword.control.conditional.else.cs
175+
pop: true
176+
- match: (?=\S)
177+
pop: true
172178
- include: scope:source.cs
173179

174180
script-tag-cs:

0 commit comments

Comments
 (0)