|
|
@ -11,7 +11,6 @@ import ILanguage = monaco.languages.IMonarchLanguage;
|
|
|
|
export const conf: IRichLanguageConfiguration = {
|
|
|
|
export const conf: IRichLanguageConfiguration = {
|
|
|
|
comments: {
|
|
|
|
comments: {
|
|
|
|
lineComment: ';;',
|
|
|
|
lineComment: ';;',
|
|
|
|
blockComment: ['(comment', ')'],
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
brackets: [['(', ')'], ['{', '}'], ['[', ']']],
|
|
|
|
brackets: [['(', ')'], ['{', '}'], ['[', ']']],
|
|
|
@ -210,18 +209,7 @@ export const language = <ILanguage>{
|
|
|
|
{ include: '@strings' },
|
|
|
|
{ include: '@strings' },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
comment: [
|
|
|
|
whitespace: [[/[ \t\r\n]+/, 'white'], [/;;.*$/, 'comment']],
|
|
|
|
[/[^comment\(\)]+/, 'comment'],
|
|
|
|
|
|
|
|
[/\(comment/, 'comment', '@push'],
|
|
|
|
|
|
|
|
[/\)/, 'comment', '@pop'],
|
|
|
|
|
|
|
|
[/[comment\(\)]/, 'comment'],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whitespace: [
|
|
|
|
|
|
|
|
[/[ \t\r\n]+/, 'white'],
|
|
|
|
|
|
|
|
[/\(comment/, 'comment', '@comment'],
|
|
|
|
|
|
|
|
[/;;.*$/, 'comment'],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
strings: [
|
|
|
|
strings: [
|
|
|
|
[/"$/, 'string', '@popall'],
|
|
|
|
[/"$/, 'string', '@popall'],
|
|
|
|