mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Small tweaks
This commit is contained in:
parent
36b879e624
commit
da418eb8d9
3 changed files with 6 additions and 6 deletions
|
|
@ -282,16 +282,12 @@ export var language = <ILanguage> {
|
||||||
|
|
||||||
comment: [
|
comment: [
|
||||||
[/[^\/*]+/, 'comment' ],
|
[/[^\/*]+/, 'comment' ],
|
||||||
// [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
|
||||||
// [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/
|
|
||||||
[/\*\//, 'comment', '@pop' ],
|
[/\*\//, 'comment', '@pop' ],
|
||||||
[/[\/*]/, 'comment' ]
|
[/[\/*]/, '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' ],
|
||||||
// [/\/\*/, 'comment.doc', '@push' ], // nested comment not allowed :-(
|
|
||||||
[/\/\*/, 'comment.doc.invalid' ],
|
|
||||||
[/\*\//, 'comment.doc', '@pop' ],
|
[/\*\//, 'comment.doc', '@pop' ],
|
||||||
[/[\/*]/, 'comment.doc' ]
|
[/[\/*]/, 'comment.doc' ]
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -184,12 +184,14 @@ export var language = <IMonarchLanguage> {
|
||||||
stringenddoublequote: [
|
stringenddoublequote: [
|
||||||
['\\\\.', 'string'],
|
['\\\\.', 'string'],
|
||||||
['"', { token: 'string', next: '@pop' }],
|
['"', { token: 'string', next: '@pop' }],
|
||||||
|
[/[^\\"]+/, 'string'],
|
||||||
['.', 'string']
|
['.', 'string']
|
||||||
],
|
],
|
||||||
|
|
||||||
stringendquote: [
|
stringendquote: [
|
||||||
['\\\\.', 'string'],
|
['\\\\.', 'string'],
|
||||||
['\'', { token: 'string', next: '@pop' }],
|
['\'', { token: 'string', next: '@pop' }],
|
||||||
|
[/[^\\']+/, 'string'],
|
||||||
['.', 'string']
|
['.', 'string']
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,8 @@ export var language = <ILanguage> {
|
||||||
],
|
],
|
||||||
|
|
||||||
scriptEmbedded: [
|
scriptEmbedded: [
|
||||||
[/<\/script/, { token: '@rematch', next: '@pop', nextEmbedded: '@pop' }]
|
[/<\/script/, { token: '@rematch', next: '@pop', nextEmbedded: '@pop' }],
|
||||||
|
[/[^<]+/, '']
|
||||||
],
|
],
|
||||||
|
|
||||||
// -- END <script> tags handling
|
// -- END <script> tags handling
|
||||||
|
|
@ -191,7 +192,8 @@ export var language = <ILanguage> {
|
||||||
],
|
],
|
||||||
|
|
||||||
styleEmbedded: [
|
styleEmbedded: [
|
||||||
[/<\/style/, { token: '@rematch', next: '@pop', nextEmbedded: '@pop' }]
|
[/<\/style/, { token: '@rematch', next: '@pop', nextEmbedded: '@pop' }],
|
||||||
|
[/[^<]+/, '']
|
||||||
],
|
],
|
||||||
|
|
||||||
// -- END <style> tags handling
|
// -- END <style> tags handling
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue