support nested comments in rust mode
This commit is contained in:
parent
fd4be8535f
commit
671a8d6543
1 changed files with 6 additions and 2 deletions
|
|
@ -127,10 +127,14 @@ var RustHighlightRules = function() {
|
||||||
regex: '$',
|
regex: '$',
|
||||||
next: 'pop' },
|
next: 'pop' },
|
||||||
{ defaultToken: 'comment.line.double-dash.source.rust' } ] },
|
{ defaultToken: 'comment.line.double-dash.source.rust' } ] },
|
||||||
{ token: 'comment.block.source.rust',
|
{ token: 'comment.start.block.source.rust',
|
||||||
regex: '/\\*',
|
regex: '/\\*',
|
||||||
|
stateName: 'comment',
|
||||||
push:
|
push:
|
||||||
[ { token: 'comment.block.source.rust',
|
[ { token: 'comment.start.block.source.rust',
|
||||||
|
regex: '/\\*',
|
||||||
|
push: 'comment' },
|
||||||
|
{ token: 'comment.end.block.source.rust',
|
||||||
regex: '\\*/',
|
regex: '\\*/',
|
||||||
next: 'pop' },
|
next: 'pop' },
|
||||||
{ defaultToken: 'comment.block.source.rust' } ] } ],
|
{ defaultToken: 'comment.block.source.rust' } ] } ],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue