Missing context.scm
and folds.scm
#7
Replies: 8 comments 17 replies
-
Also I see there is a reference to a file called e5fecf9#diff-3bd6f6646d0ce51e37b9c71eb325ce2036b821b5061c8983257e0fdc5413646e |
Beta Was this translation helpful? Give feedback.
-
@superzanti is on it: ref: #2 |
Beta Was this translation helpful? Give feedback.
-
Thank you for the prompt reply. I just created this new version of
(entity_declaration) @context
(generic_clause) @context
(port_clause) @context
; (architecture_body) @context
; Replaces the above:
(architecture_definition) @context
; Added:
(BEGIN) @context
; Added:
(concurrent_block) @context
; (function_body) @context
; Replaces the above:
(subprogram_definition) @context
; Added:
(function_specification) @context
; Added:
(subprogram_head) @context
; Added:
(subprogram_declaration) @context
; Added:
(sequential_block) @context
; Added:
(loop_statement) @context
; (full_type_declaration) @context
; Replaces the above:
(type_declaration) @context
(if_statement) @context
; (if) @context
; Replaces the above:
(IF) @context
; Added:
(else_statements) @context
; (else) @context
; Replaces the above:
(ELSE) @context
; Added:
(elsif_statements) @context
; (elsif) @context
; Replaces the above:
(ELSIF) @context
(process_statement) @context
(case_statement) @context
(case_statement_alternative) @context
; Added:
(when_element) @context
; (entity_instantiation) @context
; Replaces the above:
(component_instantiation_statement) @context
(port_map_aspect) @context
(generic_map_aspect) @context
(if_generate_statement) @context
(for_generate_statement) @context
Please note that the schema could be further improved, but for now, it meets my needs. |
Beta Was this translation helpful? Give feedback.
-
If anyone is interested in the old SCM files I have them here: context.scm I should be finished with the updates for the new parser tomorrow. |
Beta Was this translation helpful? Give feedback.
-
I see that you haven't forked the repo yet... Is it possible to share a link to your work-in-progress? Maybe we can help out - you don't have to go at it alone... Alternatively, you can open up a draft PR so long, then we can have a central place where we can iterate towards a solution. |
Beta Was this translation helpful? Give feedback.
-
Yeah, with the latest updates these all need to be updated: textobjects.scm.txt But if people are itching to get started - here you go. |
Beta Was this translation helpful? Give feedback.
-
Okay, I just updated it to the latest commit. It's got a bit to go, but expect a pull request on Monday or Tuesday. |
Beta Was this translation helpful? Give feedback.
-
See PR #18 |
Beta Was this translation helpful? Give feedback.
-
I think the following files:
context.scm
folds.scm
are missing from here:
https://github.com/jpt13653903/tree-sitter-vhdl/tree/master/queries/Neovim
I have some obsolete files which I paste here:
context.scm
:folds.scm
:Beta Was this translation helpful? Give feedback.
All reactions