Commit Graph

5 Commits (65c3cca3cc0d0956f4ce8d40ce9e72ba5c9c8e87)

Author SHA1 Message Date
woojiq 7cda5b8592
build(tree-sitter): update javascript, typescript and tsx (#7852)
* build(tree-sitter): update javascript, typescript and tsx

* update revision of tree-sitter parsers for these languages.
* rename `?.` to `optional_chain`, introduced in tree-sitter/tree-sitter-javascript@186f2adbf7.

* fix(highlight): change jsx queries to match latest tree-sitter

Latest tree-sitter/tree-sitter-javascript@bb1f97b643 added some breaking changes that broke highlighting.
* Remove some queries with `nested_identifier`.
* Remove deprecated `jsx_fragment` from indent query.
* Count `</` and `/>` as a single token.
11 months ago
Gammut 607b426e26
Refactor queries for ecma based languages (#7207) 12 months ago
Thor Adam 346ddd4735
Add `switch_statement` to ecma indents (#6369) 1 year ago
Erasin Wang bc50502b1e
Update highlight for ecma/js/ts (#6205) 1 year ago
Michael Davis 08b442f4cc
Inherit javascript/typescript from common 'ecma' queries (#3301)
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.
2 years ago