Commit Graph

12 Commits (efc4865c783e86812e34fd18ac333d5215dce708)

Author SHA1 Message Date
Gammut 607b426e26
Refactor queries for ecma based languages (#7207) 2023-07-09 18:35:32 +02:00
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.
2022-08-03 14:09:44 +09:00
ChrHorn 59bf1669ec
javascript queries: fix parameters (#3280) 2022-08-01 15:15:17 -05:00
Philipp Mildenberger bf74a4652d
JS/TS highlighting improvements (#3219) 2022-07-27 13:56:58 -05:00
Jake Langford 230ba264bf
Introduce storage highlighting for typescript/javascript (#2961) 2022-07-06 08:54:07 -05:00
Terry Brash c45fb08a93
Add JavaScript control keywords (#2140) 2022-04-17 15:14:55 +09:00
Michael Davis ffdc2f1793
separate JSX queries from javascript (#1921)
It looks like a24fb17b2a (and
855e438f55) broke the typescript
highlights because typescript

    ; inherits: javascript

but it doesn't have those named nodes in its grammar.

So instead we can separate out JSX into its own language and copy
over everything from javascript and supplement it with the new
JSX highlights. Luckily there isn't too much duplication, just the
language configuration parts - we can re-use the parser with the
languages.toml `grammar` key and most of the queries with `inherits`.
2022-04-02 10:07:35 +09:00
Blaž Hrastnik 855e438f55
jsx: Add special highlighting to component names 2022-04-01 17:18:44 +09:00
Blaž Hrastnik a24fb17b2a
Add JSX highlighting queries 2022-04-01 17:14:25 +09:00
Kirawi ee889aaa85
Updated tree-sitter query scopes (#896)
* updated theme scopes

variable.property -> variable.field
property -> variable.field

* updated theme scopes

* update book and themes

updated book and themes to reflect scope changes

* wip

* update more queries

* update dark_plus.toml
2021-11-03 12:00:52 +09:00
Blaž Hrastnik 9b9c3c77f8 runtime: Query improvements 2021-09-06 15:25:46 +09:00
Blaž Hrastnik 4e31d1521b Add tree-sitter queries. 2021-04-09 18:57:46 +09:00