mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Code formatting
This commit is contained in:
parent
128d4befd8
commit
8589ee2ccd
2 changed files with 20 additions and 17 deletions
|
|
@ -78,11 +78,14 @@ export const language = <ILanguage> {
|
||||||
[':', { token: 'delimiter', bracket: '@open', next: '@identifier_until_period' }],
|
[':', { token: 'delimiter', bracket: '@open', next: '@identifier_until_period' }],
|
||||||
|
|
||||||
// identifiers and keywords
|
// identifiers and keywords
|
||||||
[/[a-z_$][\w$]*/, { cases: {
|
[/[a-z_$][\w$]*/, {
|
||||||
|
cases: {
|
||||||
'@operators': 'operator',
|
'@operators': 'operator',
|
||||||
'@typeKeywords': 'keyword.type',
|
'@typeKeywords': 'keyword.type',
|
||||||
'@keywords': 'keyword',
|
'@keywords': 'keyword',
|
||||||
'@default': 'identifier' } }],
|
'@default': 'identifier'
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
|
||||||
// whitespace
|
// whitespace
|
||||||
{ include: '@whitespace' },
|
{ include: '@whitespace' },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue