Commit graph

22 commits

Author SHA1 Message Date
Phạm Huy Hoàng
722617e672 refactor(format): drop extra indentation for field 2024-03-21 15:51:26 +01:00
Phạm Huy Hoàng
62b0bb4f24 feat(format): extra newline after modeline 2024-02-29 23:05:30 +09:00
Phạm Huy Hoàng
77e298e4de chore: format queries 2024-01-21 23:55:02 +09:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
Christian Clason
5b90ea2aba feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
William Mathewson
e7808349a5 Expand locals to include properties and methods
The previous locals were lacking a few locals related to JS classes.
This expands the locals to include properties defined on classes (e.g.
`this.foo = "bar"` or `static #targets`) as both vars & references, as
well as private methods on classes (e.g. `#bar(x) { x }` and `#bar(y)`).
2022-11-25 18:24:11 +01:00
Stephan Seitz
788d212ab3
locals(js,ts): Add parameters again (#1231) 2021-04-28 07:39:14 -05:00
kiyan
3b8c2ea492 chore: create ecma base for use in js and ts which fixes jsx issues 2021-03-10 17:34:11 +01:00
Thomas Vigouroux
c055899dc0 feat(queries): modeline mechanism for base langs
This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189

This behaves like modelines and remove the use of the base_language map.
Also, this allows to fine-tune what we actually want to include per
query, which is better IMO.
2020-10-11 19:09:22 +02:00
Steven Sojka
fd356a2670 fix(locals): js add arrow function parameter as definition 2020-09-02 17:26:17 +02:00
Steven Sojka
a8ec43da64 fix(locals): add js namespace import as definition 2020-08-26 14:14:20 +02:00
Steven Sojka
4a747aa30c
Merge pull request #296 from steelsojka/feat-is-predicate
feat(highlights): add is predicate
2020-08-16 11:27:15 -05:00
Steven Sojka
7f7219b379 feat(definitions): allow setting of scope 2020-08-16 09:10:09 -05:00
Steven Sojka
579c9936d6 feat(highlights): add is predicate 2020-08-16 09:04:07 -05:00
Steven Sojka
e5434fc21e fix(locals): add shorthand identifiers as references and definitions 2020-08-14 14:22:05 +02:00
Shirasaka
f372e2ab87 Add PHP, TOML, and update HTML, javascript queries
- PHP         : Add highlights and locals query
- TOML        : Add highlights and locals query
- HTML        : Add scope
- javascript  : Add some scopes
2020-08-04 08:05:51 +02:00
Steven Sojka
6157981113 add rest_parameters as definition in javascript 2020-07-22 07:04:06 -05:00
Stephan Seitz
b6df2329bd Introduce @definition.import for Python/Javascript 2020-07-08 18:00:35 +02:00
Steven Sojka
e4cd88baa4 feat(javascript): add import specifier as definition 2020-07-01 22:12:15 +02:00
Steven Sojka
d73500eaa6 refactor(refactor): use higher local apis and some cleanup 2020-06-30 08:21:01 +02:00
Steven Sojka
058e8d2296 feat(refactor): highlight usages module 2020-06-30 08:21:01 +02:00
Steven Sojka
ac8ae3b1c7 feat(queries): add typescript and javascript queries 2020-06-14 13:41:23 -05:00