Commit graph

20 commits

Author SHA1 Message Date
Riley Bruins
2a5f6c9eb7 fix(css): tweak operator keyword highlights 2023-11-22 19:11:45 -05:00
Pham Huy Hoang
107e61afb7 refactor: Remove all (ERROR) @error captures
As discussed in PR#5421, capturing `@error` is inconsistent, requiring
deep nesting (or priority) in order to correctly have red backgrounds to
it.

Some queries has this capture, some don't. For consistency purposes,
removing all of them is more preferable.

For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)`
to your custom queries.
2023-10-25 18:18:50 +02:00
Pham Huy Hoang
78b54eb7f6 chore(injections)!: update injection syntax to 0.9
Since 0.9, @lang syntax is still available as fallback but will soon be deprecated.
Because of that, new syntax should be adopted once 0.9 becomes the
baseline requirements for nvim-treesitter

- update health check
- update doc
2023-08-12 17:34:15 +02:00
Amaan Qureshi
85330918f0 perf: remove match where possible 2023-04-21 18:24:17 -04:00
George Harker
cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00
ObserverOfTime
c2d9cf9926 highlights(css): use more specific groups 2022-11-26 13:17:51 +02:00
Lewis Russell
37398c7d68 feat(spell): support more languages 2022-09-26 13:47:12 +01:00
Stephan Seitz
7a3ecabf56 highlights(css): fix property highlighting
Apply fix as suggested by https://github.com/binhtran432k

Fixes #3395

Co-authored-by: Trần Đức Bình <binhtran432k@users.noreply.github.com>
2022-09-10 13:02:07 -07:00
Daniel Woznicki
b1380560a0 Added fix for incorrect CSS indent after closing bracket
Added a failing test for possible broken CSS syntax tree
2022-03-19 12:29:36 +01:00
Santos Gallegos
67f0857015 Revert "Comment: use @combined to create just one tree per buffer (#1252)"
This reverts commit 4a7a713c52.
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer (#1252)
* Comment: use `@combined` to create just one tree per buffer

There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251

* Add injections for scss

* Fix jsonc

* Combine jsdoc
2021-04-28 07:19:07 -05:00
Stephan Seitz
c7e8f76f3c Fix invalid node type in CSS queries 2021-03-16 18:52:43 +01:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags (#893)
Closes #236
2021-03-12 11:21:46 -05:00
elianiva
0bf8f58cd2 feat: use @ignore for comments and multiline strings 2021-03-01 23:28:53 +01:00
elianiva
842077acf7 feat: added more fold queries 2021-01-04 11:51:23 +01:00
Thanabodee Charoenpiriyakij
37da1c0a30 css: add indent support 2020-12-03 14:32:59 +01:00
Steven Sojka
ce43dbf54c fix(queries): use vim-match for non lua regexes 2020-08-16 18:31:56 +02:00
TravonteD
0f836e0602 refactor: use newly introduced consolidated syntax 2020-06-20 09:03:39 -04:00
TravonteD
37f9866f66 - #76 update the predicate syntax for ruby and css 2020-06-11 10:38:19 -04:00
TravonteD
58f5bdbe01 Add css highlight queries 2020-06-02 15:11:35 -04:00