Commit graph

885 commits

Author SHA1 Message Date
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
Jaehwang Jung
b145021499 fix: remove wrong/pointless tostring 2023-03-02 00:30:35 -05:00
Matthias Q
0572657d4d
feat: add prql (#4393)
* feat: add prql

* highlights(prql): null as constant.builtin

* highlights(prql): add missing kwd, update queries

* highlights(prql): remove redundant queries

* highlights(prql): make `->` a delimiter

* highlights(prql): instructions to `@method.call`
2023-03-01 15:21:11 -05:00
Amaan Qureshi
5b9339f6f4 feat: add PO 2023-03-01 02:56:14 -05:00
Amaan Qureshi
d80c99cab0 fix(qmldir): add to parsers.lua 2023-03-01 09:55:50 +02:00
Amaan Qureshi
3fe80dbecd feat: add passwd 2023-02-28 17:48:11 -05:00
Amaan Qureshi
316200f77d feat: add matlab 2023-02-28 02:51:00 -05:00
Mitchell Hanberg
f0617c31f4 fix(eex): map eelixir filetype to the eex parser 2023-02-27 23:38:18 -05:00
Amaan Qureshi
5cfb5d7768 feat(fortran): update highlight queries 2023-02-27 20:24:32 -05:00
Philipp Mildenberger
b9a7591b6c feat: add yuck 2023-02-27 17:57:04 -05:00
Christian Clason
4f8f4fe4c1 fix: do not recommend removing bundled parsers 2023-02-26 00:21:41 +01:00
Kiyoon Kim
df968afd9d goto_node select last character when in operator-pending mode 2023-02-25 02:26:31 -05:00
Philipp Mildenberger
fe80f7c2bb feat: add ungrammar 2023-02-24 18:42:35 -05:00
Nat Williams
20a8f30ace use positive option "allow_duplicates" instead of negative "dedupe" 2023-02-24 14:55:30 -08:00