Skip to content

Commit 2435b14

Browse files
authored
Remove syntax highlighting for 'as' (#1382)
* Remove syntax highlighting for 'as' * Remove syntax highlighting for 'as' in Source Typed
1 parent b1c4b4c commit 2435b14

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/editors/ace/modes/source.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function HighlightRulesSelector(
8585
const ChapterKeywordSelector = () => {
8686
const output = []
8787
if (id >= 1) {
88-
output.push('import', 'as', 'const', 'else', 'if', 'return', 'function', 'debugger')
88+
output.push('import', 'const', 'else', 'if', 'return', 'function', 'debugger')
8989
}
9090
if (id >= 2) {
9191
output.push('export')
@@ -577,10 +577,6 @@ export function HighlightRulesSelector(
577577
token: ['storage.type', 'text', 'entity.name.function.ts'],
578578
regex: '(function)(\\s+)([a-zA-Z0-9$_\u00a1-\uffff][a-zA-Z0-9d$_\u00a1-\uffff]*)'
579579
},
580-
{
581-
token: 'keyword',
582-
regex: '(?:\\b(as|AS)\\b)'
583-
},
584580
{
585581
token: ['keyword', 'storage.type.variable.ts'],
586582
regex: '(type)(\\s+[a-zA-Z0-9_?.$][\\w?.$]*)'

0 commit comments

Comments
 (0)