mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
highlights(typescript): Fix as highlight
This commit is contained in:
parent
d43de223c7
commit
ef24c633f6
2 changed files with 10 additions and 0 deletions
|
|
@ -17,6 +17,8 @@
|
||||||
"satisfies"
|
"satisfies"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
(as_expression "as" @keyword)
|
||||||
|
|
||||||
; types
|
; types
|
||||||
|
|
||||||
(type_identifier) @type
|
(type_identifier) @type
|
||||||
|
|
|
||||||
8
tests/query/highlights/typescript/as.ts
Normal file
8
tests/query/highlights/typescript/as.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
import * as foo from 'foo';
|
||||||
|
// ^ include
|
||||||
|
|
||||||
|
export { foo as bar };
|
||||||
|
// ^ include
|
||||||
|
|
||||||
|
const n = 5 as number;
|
||||||
|
// ^ keyword
|
||||||
Loading…
Add table
Add a link
Reference in a new issue