diff --git a/src/kotlin/kotlin.ts b/src/kotlin/kotlin.ts index c21a2a95..bfe00319 100644 --- a/src/kotlin/kotlin.ts +++ b/src/kotlin/kotlin.ts @@ -60,11 +60,10 @@ export const language = { ], operators: [ - '=', '>', '<', '!', '~', '?', ':', - '==', '<=', '>=', '!=', '&&', '||', '++', '--', - '+', '-', '*', '/', '&', '|', '^', '%', '<<', - '>>', '>>>', '+=', '-=', '*=', '/=', '&=', '|=', - '^=', '%=', '<<=', '>>=', '>>>=' + '+', '-', '*', '/', '%', '=', '+=', '-=', '*=', '/=', + '%=', '++', '--', '&&', '||', '!', '==', '!=', '===', + '!==', '>', '<', '<=', '>=', '[', ']', '!!', '?.', '?:', + '::', '..', ':', '?', '->', '@', ';', '$', '_' ], // we include these common regular expressions @@ -133,8 +132,6 @@ export const language = { comment: [ [/[^\/*]+/, 'comment'], - // [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-( - // [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/ [/\*\//, 'comment', '@pop'], [/[\/*]/, 'comment'] ],