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) {
182182 } ;
183183 var xml_blocks = getXmlBlocks ( hljs , [ razor_inline_expresion , razor_parentheses_block ] ) ;
184184 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 : "$" ,
187187 returnBegin : true ,
188188 returnEnd : true ,
189189 contains : [
190190 {
191- begin : "^\\s*@(model|using|inherits|inject)" ,
191+ begin : "^\\s*@(page| model|using|inherits|inject)" ,
192192 className : SPECIAL_SYMBOL_CLASSNAME
193193 } ,
194194 {
195195 variants : [
196- { begin : "\\s+" , end : "$" , } ,
196+ { begin : "\\r|\\n" , endsParent : true } ,
197+ { begin : "\\s[^\\r\\n]+" , end : "$" } ,
197198 { begin : "$" }
198199 ] ,
199200 className : "type" ,
You can’t perform that action at this time.
0 commit comments