mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Add operators
This commit is contained in:
parent
0d3e237e27
commit
c071453275
1 changed files with 4 additions and 7 deletions
|
|
@ -60,11 +60,10 @@ export const language = <ILanguage>{
|
|||
],
|
||||
|
||||
operators: [
|
||||
'=', '>', '<', '!', '~', '?', ':',
|
||||
'==', '<=', '>=', '!=', '&&', '||', '++', '--',
|
||||
'+', '-', '*', '/', '&', '|', '^', '%', '<<',
|
||||
'>>', '>>>', '+=', '-=', '*=', '/=', '&=', '|=',
|
||||
'^=', '%=', '<<=', '>>=', '>>>='
|
||||
'+', '-', '*', '/', '%', '=', '+=', '-=', '*=', '/=',
|
||||
'%=', '++', '--', '&&', '||', '!', '==', '!=', '===',
|
||||
'!==', '>', '<', '<=', '>=', '[', ']', '!!', '?.', '?:',
|
||||
'::', '..', ':', '?', '->', '@', ';', '$', '_'
|
||||
],
|
||||
|
||||
// we include these common regular expressions
|
||||
|
|
@ -133,8 +132,6 @@ export const language = <ILanguage>{
|
|||
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
// [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
||||
// [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue