Skip to content

Commit 5726c47

Browse files
authored
Merge pull request #6 from GribovAlexander/patch-1
razor comments
2 parents 3503654 + 7d74a67 commit 5726c47

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cshtml-razor.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ function hljsDefineCshtmlRazor(hljs) {
101101
end: "}",
102102
contains: [hljs.QUOTE_STRING_MODE, 'self']
103103
};
104+
var razor_comment = hljs.COMMENT(
105+
'@\\*',
106+
'\\*@',
107+
{
108+
relevance: 10
109+
}
110+
);
104111
var razor_inline_expresion = {
105112
begin: "@[a-zA-Z]+",
106113
returnBegin: true,
@@ -340,6 +347,7 @@ function hljsDefineCshtmlRazor(hljs) {
340347
razor_try_block,
341348
razor_escape_at,
342349
razor_text_block,
350+
razor_comment,
343351
razor_parentheses_block,
344352
{
345353
className: 'meta',

0 commit comments

Comments
 (0)