mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Changed to use linecomment for continuation comments
This commit is contained in:
parent
7b96ed2fbd
commit
4dbc07d557
1 changed files with 8 additions and 2 deletions
|
|
@ -347,16 +347,22 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
[/[ \t\r\n]+/, ''],
|
[/[ \t\r\n]+/, ''],
|
||||||
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
|
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
|
||||||
[/\/\*/, 'comment', '@comment'],
|
[/\/\*/, 'comment', '@comment'],
|
||||||
[/\/\/.*\\$/, 'comment', '@comment'],
|
[/\/\/.*\\$/, 'comment', '@linecomment'],
|
||||||
[/\/\/.*$/, 'comment']
|
[/\/\/.*$/, 'comment']
|
||||||
],
|
],
|
||||||
|
|
||||||
comment: [
|
comment: [
|
||||||
[/.*[^\\]$/, 'comment', '@pop'],
|
|
||||||
[/[^\/*]+/, 'comment'],
|
[/[^\/*]+/, 'comment'],
|
||||||
[/\*\//, 'comment', '@pop'],
|
[/\*\//, 'comment', '@pop'],
|
||||||
[/[\/*]/, 'comment']
|
[/[\/*]/, 'comment']
|
||||||
],
|
],
|
||||||
|
|
||||||
|
//For use with continuous line comments
|
||||||
|
linecomment: [
|
||||||
|
[/.*[^\\]$/, 'comment', '@pop'],
|
||||||
|
[/[^]+/, 'comment']
|
||||||
|
],
|
||||||
|
|
||||||
//Identical copy of comment above, except for the addition of .doc
|
//Identical copy of comment above, except for the addition of .doc
|
||||||
doccomment: [
|
doccomment: [
|
||||||
[/[^\/*]+/, 'comment.doc'],
|
[/[^\/*]+/, 'comment.doc'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue