mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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"
|
||||
] @keyword
|
||||
|
||||
(as_expression "as" @keyword)
|
||||
|
||||
; types
|
||||
|
||||
(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