nvim-treesitter/lua/nvim-treesitter
aMOPel aeb5ad8ae1
feat(nim): added nim parser and queries (#5556)
* feat(nim): added nim parser and queries

* correct scanner.cc to scanner.c

Co-authored-by: Christian Clason <c.clason@uni-graz.at>

* fix(nim): corrected capture for @function.macro

* feat(nim highlights): added @field capture for discriminator field in
object variant

* bumped parser version, adapted highlights.scm and condensed
injections.scm

* improved nim_format_string highlights.scm

* bump nim parser version again

* removed overlap between queries for generalized strings in
injections.scm

* improved formattin] in nim_format_string/injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* corrected asm parser name in injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* improved formatting in highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* removed @error capture from highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* improved wording in comment in highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* removed priority from (dot_expression left: @none) capture, since it's
at the end of the file anyways

* removed comments listing unused captures

* reverted @error capture in nim_format_string/highlights.scm back to
@none

* condensed string alternatives in injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* condensed string alternatives in injections.scm (second part)

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* added comment to explain reasoning behind priority use

* swapped order of @punctuation.delimiter and @operator to get rid of
superfluous comment

* moved macro and template keywords to @preproc capture

* removed priorities in highlights.scm and shifted @parameter capture
behind @type capture

* improved formatting in locals.scm

* added queries for missing cases of @definition.namespace capture in
locals.scm

* removed some trailing whitespace

* added @namespace queries for highlights.scm

* bumped parser version again

* removed superfluous @type capture

* removed `@type`s `has-ancestor` and removed `(_ (_ ...` structures,
but added priorities

* added missing @constant capture to some queries in highlights.scm

* fixed priority numbers so they work when injecting nim (in markdown)

* added @none captures back to injection targets

* added (assembly_statement) injection query

* added indent queries

* removed indents.scm again

* added some missing queries for dot_generic_call, concept_declaration and
pragma_statement

---------

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-10-30 20:35:51 +09:00
..
caching.lua fix: remove wrong/pointless tostring 2023-03-02 00:30:35 -05:00
compat.lua fix(compat): add missing get_node_text, required by playground (#4666) 2023-04-17 11:38:41 +02:00
configs.lua fix: uninstall function in the install.lua 2023-03-24 23:23:02 +01:00
fold.lua style: fill in missing code docs wherever applicable 2023-02-24 01:08:23 -08:00
health.lua feat!: bump required Nvim version to 0.9.1 2023-08-12 17:34:15 +02:00
highlight.lua style: fill in missing code docs wherever applicable 2023-02-24 01:08:23 -08:00
incremental_selection.lua style: fill in missing code docs wherever applicable 2023-02-24 01:08:23 -08:00
indent.lua fix!: backport ac9e755 from main 2023-09-11 10:00:25 +02:00
info.lua style: fill in missing code docs wherever applicable 2023-02-24 01:08:23 -08:00
install.lua fix: uninstall function in the install.lua 2023-03-24 23:23:02 +01:00
locals.lua fix: get_range shim for playground 2023-03-24 22:17:04 +00:00
parsers.lua feat(nim): added nim parser and queries (#5556) 2023-10-30 20:35:51 +09:00
query.lua use indent.X syntax for captures and properties of set directives 2023-03-24 13:07:53 -04:00
query_predicates.lua fix(directive): make downcase work on captures 2023-08-12 17:34:15 +02:00
shell_command_selectors.lua fix: add -f to mv to avoid errors when updating 2023-04-26 18:22:53 -04:00
statusline.lua use positive option "allow_duplicates" instead of negative "dedupe" 2023-02-24 14:55:30 -08:00
ts_utils.lua fix: trees() may not be list-like 2023-09-17 11:11:15 +02:00
tsrange.lua Fix bugs in TSRange 2021-11-01 14:51:53 +01:00
utils.lua style: fill in missing code docs wherever applicable 2023-02-24 01:08:23 -08:00