Commit graph

12 commits

Author SHA1 Message Date
Bruno BELANYI aff11eefce More specific loop keyword high-lighting 2022-06-03 20:28:28 +02:00
Bruno BELANYI b22ca8cd67 More specific function keyword high-lighting
I learnt about this group by reading the nvim-treesitter source [1].

[1]: see 'lua/nvim-treesitter/highlight.lua'
2022-06-03 20:15:09 +02:00
Bruno BELANYI 62a601469e Add functions high-lighting 2022-06-03 19:59:56 +02:00
Bruno BELANYI 67b555c381 Move 'misc' high-lighting to end of file
Turns out that order *matters* for queries.

Tree-sitter will stop at the first match it seems. So I want the
hyper-general 'identifier' matching right at the end to avoid overriding
more specific rules.
2022-06-03 19:58:19 +02:00
Bruno BELANYI c48624c0f3 Add string escape high-lighting 2022-06-03 12:58:34 +02:00
Bruno BELANYI 558e45aeed Add ':' as delimiter 2022-06-03 11:43:43 +02:00
Bruno BELANYI 0b549493a2 Add identifiers high-lighting
We now make use of the more specific '_type_identifier' and
'_field_identifier' rules!
2022-06-03 10:44:10 +02:00
Bruno BELANYI abe5b2e366 Add 'misc' grouping 2022-06-03 10:16:44 +02:00
Bruno BELANYI 6e40691a35 Add operators highlighting 2022-06-03 10:08:58 +02:00
Bruno BELANYI d83fa3acb7 Add keywords highlighting 2022-06-02 22:27:58 +02:00
Bruno BELANYI b836117a21 Add literals highlighting 2022-06-02 22:20:37 +02:00
Bruno BELANYI b9376ccd35 Add comment syntax highlighting 2022-06-02 22:20:37 +02:00