Bruno BELANYI
a522aab9cd
Add class text objects
2022-06-04 22:00:08 +02:00
Bruno BELANYI
7d0ab1f40c
Add object-oriented indents
2022-06-04 21:54:44 +02:00
Bruno BELANYI
2e08482c67
Add object-oriented folds
2022-06-04 21:52:39 +02:00
Bruno BELANYI
c9efe870ab
Add class tags
2022-06-04 21:50:45 +02:00
Bruno BELANYI
746c8d27b8
Add method tags
2022-06-04 21:45:54 +02:00
Bruno BELANYI
b1c2da4cb4
Add 'self' built-in variable high-lighting
2022-06-04 21:45:54 +02:00
Bruno BELANYI
acb5765591
Make 'method' keyword more specific
2022-06-04 21:45:54 +02:00
Bruno BELANYI
065ad5f760
Make 'new' constructor keyword
2022-06-04 21:45:54 +02:00
Bruno BELANYI
9c51cbc93f
Add 'Object' built-in type
2022-06-04 21:45:54 +02:00
Bruno BELANYI
425890a6fc
Add methods high-lighting
2022-06-04 21:45:54 +02:00
Bruno BELANYI
555e10c736
Add object-oriented keywords high-lighting
2022-06-04 21:45:54 +02:00
Bruno BELANYI
869b0bf79a
Add meta-variable keywords high-lighting
2022-06-04 21:45:40 +02:00
Bruno BELANYI
79413a9624
Do not indent inside strings
2022-06-04 11:00:41 +02:00
Bruno BELANYI
6732ec0994
Add loop indents
2022-06-04 10:58:14 +02:00
Bruno BELANYI
8ffe530561
Add conditional indents
2022-06-04 10:57:27 +02:00
Bruno BELANYI
83356398f9
Add comment indents
...
Yet another un-testable query with the vanilla tooling...
2022-06-04 10:54:36 +02:00
Bruno BELANYI
e8883aaf5d
Add loop text objects
2022-06-04 10:52:47 +02:00
Bruno BELANYI
0bb177a05e
Add conditional text objects
2022-06-04 10:52:47 +02:00
Bruno BELANYI
c31f249d4a
Add function parameter text objects
2022-06-04 10:52:47 +02:00
Bruno BELANYI
221904815a
Add function call text objects
2022-06-04 10:48:19 +02:00
Bruno BELANYI
a871263996
Add function text objects
2022-06-04 10:43:35 +02:00
Bruno BELANYI
c2dcb86e78
Add comment text objects
...
Once again, something that isn't testable with 'tree-sitter' tooling...
2022-06-04 10:43:35 +02:00
Bruno BELANYI
2bd24cceb4
Add folds
...
Unfortunately it seems like this is not really testable with the
'tree-sitter' tooling.
If I want to check that this is working correctly, I should explore how
to make use of, e.g., neovim to automate testing.
2022-06-04 10:43:35 +02:00
Bruno BELANYI
545d090540
Mark 'comment' as injecting 'comment'
...
Neovim defines queries for the 'comment' language, to match 'TODO',
'FIXME', etc...
2022-06-04 10:43:35 +02:00
Bruno BELANYI
efe0a2800b
Add comment about 'locals' queries limitations
...
This is not enough of an issue to avoid using the functionality however,
for example variable declarations are thankfully not affected by this
issue, since they *must* be declared before their use.
2022-06-04 10:43:35 +02:00
Bruno BELANYI
184d3b9953
Add function tags
2022-06-04 10:43:35 +02:00
Bruno BELANYI
3e1068a336
Add built-in types
...
Not sure why it seems like the 'is-not? local' is not working.
Will investigate later
2022-06-03 22:04:30 +02:00
Bruno BELANYI
2d89ec8b20
Add built-in functions
...
continuous-integration/drone/push Build is passing
This is a good proxy test to ensure that scope queries work correctly.
2022-06-03 21:09:11 +02:00
Bruno BELANYI
073ff80adb
Add basic scoping queries
2022-06-03 21:02:40 +02:00
Bruno BELANYI
64ff9dd944
Add import path high-lighting
...
I don't think this group is supported by neovim, but 'tree-sitter-nix'
makes use of it, and I think it makes sense to add it.
2022-06-03 20:35:53 +02:00
Bruno BELANYI
bd42c2c9c1
Move 'literals' high-lighting to end of file
...
Once again, seems like order matters, and I want to be able to write more specific queries.
2022-06-03 20:30:45 +02:00
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