mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +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: [
|
operators: [
|
||||||
'=', '>', '<', '!', '~', '?', ':',
|
'+', '-', '*', '/', '%', '=', '+=', '-=', '*=', '/=',
|
||||||
'==', '<=', '>=', '!=', '&&', '||', '++', '--',
|
'%=', '++', '--', '&&', '||', '!', '==', '!=', '===',
|
||||||
'+', '-', '*', '/', '&', '|', '^', '%', '<<',
|
'!==', '>', '<', '<=', '>=', '[', ']', '!!', '?.', '?:',
|
||||||
'>>', '>>>', '+=', '-=', '*=', '/=', '&=', '|=',
|
'::', '..', ':', '?', '->', '@', ';', '$', '_'
|
||||||
'^=', '%=', '<<=', '>>=', '>>>='
|
|
||||||
],
|
],
|
||||||
|
|
||||||
// we include these common regular expressions
|
// we include these common regular expressions
|
||||||
|
|
@ -133,8 +132,6 @@ export const 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']
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue