highlights(typescript): Fix as highlight

This commit is contained in:
Raymond Ha 2022-11-24 11:12:38 -08:00 committed by Stephan Seitz
parent d43de223c7
commit ef24c633f6
2 changed files with 10 additions and 0 deletions

View file

@ -17,6 +17,8 @@
"satisfies"
] @keyword
(as_expression "as" @keyword)
; types
(type_identifier) @type

View file

@ -0,0 +1,8 @@
import * as foo from 'foo';
// ^ include
export { foo as bar };
// ^ include
const n = 5 as number;
// ^ keyword