mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
highlights(ecma): distinguish between "default" in export and switch statements
This commit is contained in:
parent
37767540e5
commit
cc2268e1c7
1 changed files with 5 additions and 1 deletions
|
|
@ -207,7 +207,6 @@
|
||||||
"else"
|
"else"
|
||||||
"switch"
|
"switch"
|
||||||
"case"
|
"case"
|
||||||
"default"
|
|
||||||
] @conditional
|
] @conditional
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -266,3 +265,8 @@
|
||||||
"catch"
|
"catch"
|
||||||
"finally"
|
"finally"
|
||||||
] @exception
|
] @exception
|
||||||
|
|
||||||
|
(export_statement
|
||||||
|
"default" @keyword)
|
||||||
|
(switch_default
|
||||||
|
"default" @conditional)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue