Skip to content

Commit 9e6b2b0

Browse files
committed
Merged PR 472925: Update Razor textmate grammar
Pulled from dotnet/razor main to bring across a recent fix
2 parents 4bf9714 + 37a18b1 commit 9e6b2b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/razor/syntaxes/aspnetcorerazor.tmLanguage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@
529529
]
530530
},
531531
"code-directive": {
532-
"begin": "(@)(code)\\s*",
532+
"begin": "(@)(code)((?=\\{)|\\s+)",
533533
"beginCaptures": {
534534
"1": {
535535
"patterns": [
@@ -550,7 +550,7 @@
550550
"end": "(?<=})|\\s"
551551
},
552552
"functions-directive": {
553-
"begin": "(@)(functions)\\s*",
553+
"begin": "(@)(functions)((?=\\{)|\\s+)",
554554
"beginCaptures": {
555555
"1": {
556556
"patterns": [
@@ -1809,4 +1809,4 @@
18091809
}
18101810
}
18111811
}
1812-
}
1812+
}

0 commit comments

Comments
 (0)