mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Separated quote-like operators from other keywords
This commit is contained in:
parent
6feaf43d1d
commit
80e9270d80
1 changed files with 1 additions and 9 deletions
|
|
@ -48,15 +48,11 @@ export const language = <ILanguage>{
|
|||
'__DATA__',
|
||||
'else',
|
||||
'lock',
|
||||
'qw',
|
||||
'__END__',
|
||||
'elsif',
|
||||
'lt',
|
||||
'qx',
|
||||
'__FILE__',
|
||||
'eq',
|
||||
'm',
|
||||
's',
|
||||
'__LINE__',
|
||||
'exp',
|
||||
'ne',
|
||||
|
|
@ -64,7 +60,6 @@ export const language = <ILanguage>{
|
|||
'__PACKAGE__',
|
||||
'for',
|
||||
'no',
|
||||
'tr',
|
||||
'and',
|
||||
'foreach',
|
||||
'or',
|
||||
|
|
@ -75,16 +70,12 @@ export const language = <ILanguage>{
|
|||
'until',
|
||||
'continue',
|
||||
'gt',
|
||||
'q',
|
||||
'while',
|
||||
'CORE',
|
||||
'if',
|
||||
'qq',
|
||||
'xor',
|
||||
'do',
|
||||
'le',
|
||||
'qr',
|
||||
'y',
|
||||
|
||||
'__DIE__',
|
||||
'__WARN__',
|
||||
|
|
@ -468,6 +459,7 @@ export const language = <ILanguage>{
|
|||
|
||||
// operators
|
||||
symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/,
|
||||
quoteLikeOps: ['qr', 'm', 's', 'q', 'qq', 'qx', 'qw', 'tr', 'y'],
|
||||
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue