|
@@ -347,6 +347,7 @@ export const language = <languages.IMonarchLanguage>{
|
|
[/[ \t\r\n]+/, ''],
|
|
[/[ \t\r\n]+/, ''],
|
|
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
|
|
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
|
|
[/\/\*/, 'comment', '@comment'],
|
|
[/\/\*/, 'comment', '@comment'],
|
|
|
|
+ [/\/\/.*\\$/, 'comment', '@linecomment'],
|
|
[/\/\/.*$/, 'comment']
|
|
[/\/\/.*$/, 'comment']
|
|
],
|
|
],
|
|
|
|
|
|
@@ -355,6 +356,13 @@ export const language = <languages.IMonarchLanguage>{
|
|
[/\*\//, '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'],
|