File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -182,18 +182,19 @@ function hljsDefineCshtmlRazor(hljs) {
182
182
} ;
183
183
var xml_blocks = getXmlBlocks ( hljs , [ razor_inline_expresion , razor_parentheses_block ] ) ;
184
184
var razor_directives = {
185
- begin : "^\\s*@(model|using|inherits|inject)[^\\r\\n{\\(]*$" ,
186
- end : "$" ,
185
+ begin : "^\\s*@(page| model|using|inherits|inject)[^\\r\\n{\\(]*$" ,
186
+ end : "$" ,
187
187
returnBegin : true ,
188
188
returnEnd : true ,
189
189
contains : [
190
190
{
191
- begin : "^\\s*@(model|using|inherits|inject)" ,
191
+ begin : "^\\s*@(page| model|using|inherits|inject)" ,
192
192
className : SPECIAL_SYMBOL_CLASSNAME
193
193
} ,
194
194
{
195
195
variants : [
196
- { begin : "\\s+" , end : "$" , } ,
196
+ { begin : "\\r|\\n" , endsParent : true } ,
197
+ { begin : "\\s[^\\r\\n]+" , end : "$" } ,
197
198
{ begin : "$" }
198
199
] ,
199
200
className : "type" ,
You can’t perform that action at this time.
0 commit comments