Skip to content

Commit a907126

Browse files
authored
Fix built_ins in a row
1 parent 17e1c64 commit a907126

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cshtml-razor.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function hljsDefineCshtmlRazor(hljs) {
176176
var xml_blocks = getXmlBlocks(hljs, [razor_inline_expresion, razor_parentheses_block]);
177177
var razor_directives = {
178178
begin: "^\\s*@(page|model|using|inherits|inject)[^\\r\\n{\\(]*$",
179-
end: "$",
179+
end: "$",
180180
returnBegin: true,
181181
returnEnd: true,
182182
contains: [
@@ -186,7 +186,8 @@ function hljsDefineCshtmlRazor(hljs) {
186186
},
187187
{
188188
variants: [
189-
{ begin: "\\s+", end: "$" },
189+
{ begin: "\\r|\\n", endsParent: true},
190+
{ begin: "\\s[^\\r\\n]+", end: "$" },
190191
{ begin: "$" }
191192
],
192193
className: "type",

0 commit comments

Comments
 (0)