Commit Graph

14 Commits

Author SHA1 Message Date
Emmanuel Briot
f67bc6622a Synchronize queries with nvim-treesitter repository 2023-08-22 08:24:31 +02:00
Emmanuel Briot
42cc2eb141 (package_specification): now hidden in trees
Instead, package_declaration replaces it.  This provides
 better folding in nvim: otherwise, the final ';' was not
 part of the tree node, and thus the last line "end P;" was
 not folded.
2023-02-13 13:51:44 +01:00
Emmanuel Briot
e9e2ec9d3b Also highlight tagged and limited in type declarations. 2022-12-15 09:58:32 +01:00
Emmanuel Briot
0210164cce Replace type.definition with keyword.type
The former is meant for the actual identifier, not the keywords around
it.
2022-12-15 09:35:25 +01:00
Emmanuel Briot
7fe1b1edb4 Add support for gnatprep directives
They can be folded
2022-12-14 13:29:59 +01:00
Emmanuel Briot
c25792f45c Add support for slices 2022-12-13 12:29:02 +01:00
Emmanuel Briot
4557f68292 Inline "statement" 2022-12-12 11:35:04 +01:00
Emmanuel Briot
d52ba823fa Add support for "or terminate" in select statements 2022-12-12 11:27:49 +01:00
Emmanuel Briot
d6ea15a3e0 Add support for double-quotes inside strings 2022-12-12 10:58:36 +01:00
Emmanuel Briot
ec82f7b2cf Fix support for Func(...).Value
Need to set associativity on selected_component
2022-12-12 10:50:59 +01:00
Emmanuel Briot
7bd8543b71 Fix error for access parameters and untyped constants 2022-12-09 14:38:08 +01:00
Emmanuel Briot
3b5200c14c Inline all rules that do not consume any character directly
This simplifies the trees significantly.
2022-12-09 12:32:06 +01:00
Emmanuel Briot
a41588c541 Various inlining of rules to simplify tree 2022-12-09 11:02:26 +01:00
Emmanuel Briot
1eafd432d7 Add queries for neovim 2022-12-08 11:53:03 +01:00