Add operators

This commit is contained in:
Andrew Watson 2018-12-07 16:45:09 -08:00
parent 0d3e237e27
commit c071453275

View file

@ -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']
], ],