mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Fix the all-caps keywords that changes to words prefixed by #
This commit is contained in:
parent
e617386720
commit
c31bb1eab8
1 changed files with 23 additions and 7 deletions
|
|
@ -57,14 +57,32 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
],
|
],
|
||||||
accessmodifiers: ['public', 'private', 'fileprivate', 'internal'],
|
accessmodifiers: ['public', 'private', 'fileprivate', 'internal'],
|
||||||
keywords: [
|
keywords: [
|
||||||
'__COLUMN__',
|
'#available',
|
||||||
'__FILE__',
|
'#colorLiteral',
|
||||||
'__FUNCTION__',
|
'#column',
|
||||||
'__LINE__',
|
'#dsohandle',
|
||||||
|
'#else',
|
||||||
|
'#elseif',
|
||||||
|
'#endif',
|
||||||
|
'#error',
|
||||||
|
'#file',
|
||||||
|
'#fileID',
|
||||||
|
'#fileLiteral',
|
||||||
|
'#filePath',
|
||||||
|
'#function',
|
||||||
|
'#if',
|
||||||
|
'#imageLiteral',
|
||||||
|
'#keyPath',
|
||||||
|
'#line',
|
||||||
|
'#selector',
|
||||||
|
'#sourceLocation',
|
||||||
|
'#warning',
|
||||||
|
|
||||||
'Any',
|
'Any',
|
||||||
'Protocol',
|
'Protocol',
|
||||||
'Self',
|
'Self',
|
||||||
'Type',
|
'Type',
|
||||||
|
|
||||||
'actor',
|
'actor',
|
||||||
'as',
|
'as',
|
||||||
'assignment',
|
'assignment',
|
||||||
|
|
@ -152,9 +170,7 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
'weak',
|
'weak',
|
||||||
'where',
|
'where',
|
||||||
'while',
|
'while',
|
||||||
'willSet',
|
'willSet'
|
||||||
'FALSE',
|
|
||||||
'TRUE'
|
|
||||||
],
|
],
|
||||||
|
|
||||||
symbols: /[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,
|
symbols: /[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue