Commit graph

898 commits

Author SHA1 Message Date
Amaan Qureshi
cde306813d feat: add luau 2023-04-28 10:29:42 -04:00
Amaan Qureshi
fe3afeaa73 feat: add puppet 2023-04-26 19:29:01 -04:00
WindSoilder
8ec9a50965
fix: add -f to mv to avoid errors when updating 2023-04-26 18:22:53 -04:00
Amaan Qureshi
9f157094cd feat(smali): update queries from upstream parser 2023-04-25 02:37:31 -04:00
Amaan Qureshi
5887528216 docs: update readme maintainers 2023-04-21 04:38:28 -04:00
Amaan Qureshi
b0338a0565 chore(parsers): update http maintainers 2023-04-20 06:33:25 -04:00
stefan
481d1eda24
docs: update gitconfig in readme to reflect parser name (#4656) 2023-04-20 03:17:44 +00:00
Benny Powers
cdc45ac6ba
feat(markdown): configured aliases for fenced code block languages (#4659)
* feat(markdown): configured aliases for languages

* refactor: use vim.treesitter.match

* refactor: rename local vars

* fix: query syntax
2023-04-18 21:51:14 +09:00
tzachar
351e43d5ef
fix(compat): add missing get_node_text, required by playground (#4666) 2023-04-17 11:38:41 +02:00
dundargoc
21f2fb188e fix(checkhealth): use non-deprecated versions if possible 2023-04-16 05:26:14 -07:00
Pham Huy Hoang
474c59dcf1 add test 2023-04-08 09:56:06 -07:00
Pham Huy Hoang
1c7ba3ffcf fix(indent): Make indent ignore trailing spaces/comment
Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-04-08 09:56:06 -07:00
Christian Clason
584ccea56e
vim: switch to parser maintained by Neovim (#4610)
Problem: The current vimscript parser has not been maintained for a while, which was a blocker for packaging the coming Neovim release. 

Solution: Fork parser to https://github.com/neovim/tree-sitter-vim/ and maintain it there from now on.
2023-04-07 15:03:10 +02:00
Carlo Cabrera
6f5a4f6306 feat: use -bundle to build parsers on macOS
This will make the parsers align more closely to the ones bundled with
Neovim, because CMake uses the `-bundle` flag (instead of `-shared`) on
macOS when a library is compiled as a `MODULE`.

See, for example:

    10baf89712/cmake.deps/cmake/TreesitterParserCMakeLists.txt (L6-L9)
2023-04-03 03:38:54 -04:00
Christian Clason
93fa5df0a3 chore(help)!: renamed to vimdoc 2023-04-01 16:10:11 +02:00
Amaan Qureshi
eb1e599251 feat: add FIRRTL 2023-03-27 10:46:59 -04:00
Amaan Qureshi
eadf4f43c6 feat: add Pony 2023-03-27 10:46:35 -04:00
Sergey Kacheev
a072d923c7 fix: uninstall function in the install.lua
The get_ensure_installed_parsers function return a table
for the option "all" because uninstall accepts a table
2023-03-24 23:23:02 +01:00
Tom van Dijk
5c3e8dee64 fix: get_range shim for playground 2023-03-24 22:17:04 +00:00
George Harker
cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00
George Harker
b4fcc61175 split delimiter into open_delimiter and close_delimiter 2023-03-24 13:07:53 -04:00
George Harker
d1333dd7e5 refactor(indent)!: Rework indent, aligned indent
indents now use @indent.X style captures, and indent.PROP for properties to set on those captures, as documented in the help.

Captures are:

indent.auto
indent.begin
indent.end
indent.dedent
indent.branch
indent.ignore
indent.align
indent.zero

Properties are:

indent.immediate
indent.start_at_same_line
indent.open_delimiter
indent.close_delimiter
indent.increment
indent.avoid_last_matching_next

Multiple opening delims on one line and multiple closing on a line are collapsed so as not to over indent,

The final line of @indent.align blocks which must in some cases be treated specially to avoid clashing with the next line is treated the same regardless of whether the @indent.align capture actually uses aligned indentation or just normal indentation. The indent.avoid_last_matching_next property controls this.

Adjust python to use these.

List, set, dict and tuple all use @indent.align which permits both hanging and aligned styles.

Finally, try: on it’s own will indent when typing live but make no guaranteeds about whole-file formatting.

Includes lucario387:fix-align-indent
2023-03-24 13:07:53 -04:00
Lewis Russell
90ead4ed58 fix: shim 0.9 deprecations 2023-03-24 16:05:38 +01:00
kylo252
1f087c91f5
fix(health): check required neovim version (#4330)
* fix(health): check required neovim version

* fixup(health)!: require v0.8.3 for is_in_node_range

* fixup(readme)!: always prefer latest neovim
2023-03-24 03:36:30 +01:00
Turiiya
dbdbd71b41 fix(v): add vlang as filetype 2023-03-22 11:48:36 +01:00
Amaan Qureshi
40670af980 feat: add Bass 2023-03-22 06:34:30 -04:00
Benny Powers
19d9af8fb0 feat(html): injections in <script type>
refactor(html): remove superfluous injection query

fix(html): associate "module" type with "javascript"
2023-03-22 02:28:21 -04:00
ObserverOfTime
379305aa7f fix(parsers): alias sh to bash 2023-03-21 00:00:05 +02:00
Amaan Qureshi
bc23db2515 feat: add Luadoc 2023-03-20 04:20:49 -04:00
derekstride
dcb9a89ab4 Use pre-generated parser files for sql grammar 2023-03-16 21:48:28 +01:00
Amaan Qureshi
f3fbc7c9a7 fix: check if repo location exists for local paths 2023-03-16 19:18:26 +01:00
Amaan Qureshi
17c275bfff feat: add LLVM TableGen 2023-03-16 10:58:50 -04:00
Adam Wolski
273d5e9ac5 fix(windows): treat any non-cmd shell as powershell like in selector 2023-03-16 04:23:14 -04:00
Adam Wolski
677dd11c6a fix(windows): fix invalid powershell separator during install 2023-03-16 04:23:14 -04:00
George Harker
fa0644667e fix: change folding algorithm to fix Python indents 2023-03-15 22:44:59 +01:00
Ramkumar Ramachandra
5c4ea53070 parsers: add tree-sitter-mlir parser
The parser is currently in development, and 60-80% of MLIR files in the
test suite of MLIR, within the Arith, Math, SCF, Tensor, and Linalg
dialects parse successfully.
2023-03-14 01:50:12 +01:00
Amaan Qureshi
079a50f66e refactor!: remove setting the update strategy 2023-03-11 17:52:54 -05:00
Amaan Qureshi
0e266bfc29 docs: add missing fields from InstallInfo, update code docs related to installation 2023-03-11 17:05:55 -05:00
Amaan Qureshi
4b04eaa5ce chore: clean up parsers.lua 2023-03-11 17:05:55 -05:00
Amaan Qureshi
207a86e4c9 feat: add Hare 2023-03-11 03:45:31 -05:00
Amaan Qureshi
0db1cc348e feat: add gitconfig 2023-03-10 03:00:55 -05:00
Amaan Qureshi
faa4caa661 chore(gleam): update parser info 2023-03-10 02:41:45 -05:00
Amaan Qureshi
4096d010c5 fix(gleam): add scanner.c to parsers list & update lockfile 2023-03-10 02:41:45 -05:00
Amaan Qureshi
71be7c04d5 feat: add Squirrel 2023-03-07 23:45:54 -05:00
Amaan Qureshi
ba4bce9bb7 feat: add Uxn Tal 2023-03-07 12:49:04 +01:00
ObserverOfTime
1ceaceb9de docs: fix readme names 2023-03-04 20:36:57 +02:00
Amaan Qureshi
c9d7918901 feat: add luap 2023-03-04 11:32:25 -05:00
Amaan Qureshi
376d74006f feat: add cue 2023-03-04 05:08:18 -05:00
Christian Clason
07fb134752 markdown!: switch to scanner.c 2023-03-02 18:08:03 +01:00
Preston Knopp
36b1038a65
Update gdscript queries (#4405)
* locals(gdscript): update locals

* folds(gdscript): add folds

* indents(gdscript): update indents with notes

* highlights(gdscript): update highlights

* docs(gdscript): add gdscript maintainer

* indents(gdscript): add ERROR auto indent

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>

* highlights(gdscript): use text.uri for get_node and node_path

* highlights(gdscript): add "@" of annotation as attribute

* highlights(gdscript): use keyword.operator for "new", match all attribute_call

* highlights(gdscript): update (underscore) and (pattern_open_ending)

---------

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2023-03-02 07:28:13 +00:00