mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 01:46:18 +04:00
08b442f4cc
JavaScript queries now contain a few lines that prevent them from being used whole-sale in typescript with `; inherits: javascript`. Here we follow nvim-treesitter's way of using a fake 'ecma' language as a common base for JavaScript and TypeScript to share as much as we can.
20 lines
210 B
Scheme
20 lines
210 B
Scheme
; inherits: ecma
|
|
|
|
[
|
|
(element)
|
|
(if_statement)
|
|
(each_statement)
|
|
(await_statement)
|
|
] @indent
|
|
|
|
[
|
|
(end_tag)
|
|
(else_statement)
|
|
(if_end_expr)
|
|
(each_end_expr)
|
|
(await_end_expr)
|
|
">"
|
|
"/>"
|
|
] @outdent
|
|
|