Commit graph

914 commits

Author SHA1 Message Date
ObserverOfTime
70f161b1dd fix(arduino): adapt to scanner rewrite 2023-06-19 10:45:56 +02:00
Christian Clason
e3330c67f1 fix(cpp): adapt to scanner rewrite 2023-06-19 09:54:05 +02:00
Álan Crístoffer
df3f47a508 feat(matlab)!: replace parser 2023-06-19 09:43:25 +02:00
Amaan Qureshi
e2c162b09f chore: update cmake files 2023-06-17 09:59:41 +02:00
Jake Stanger
dc38ff85d9
feat: add language support for corn (#4864)
Adds queries and a parser mapping for the [Corn](https://github.com/jakestanger/corn)
configuration language.
2023-05-29 17:26:28 +09:00
Pham Huy Hoang
ad75d3c4bd fix(indent): return early if query doesn't exist 2023-05-24 13:57:08 +02:00
fab4100
8e817bebf9
feat: add Intel Implicit SPMD Program Compiler (ISPC)
* Add ISPC parser config

* Add ISPC queries

* Update queries/ispc/injections.scm

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

---------

Co-authored-by: Fabian Wermelinger <fab4100@posteo.net>
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2023-05-20 21:52:54 -04:00
Amaan Qureshi
dad1b7cd66 feat: add Objective-C 2023-05-19 12:24:38 -04:00
Christoph Sax
16cce8df58
feat(t32): add indent rules (#4782) 2023-05-18 16:40:13 +09:00
Pham Huy Hoang
102f1b2f55 fixup: use correct require syntax 2023-05-17 15:35:28 +02:00
Christian Clason
fa23ff4bd7 refactor(indent): backport improvements from main
* replace ts_utils.memoize_by_buftick by simpler implementation
* simplify construction of hash map
* prefer Neovim APIs
2023-05-17 15:25:35 +02:00
Pham Huy Hoang
d2b78324f2 fix indent/fold memleak 2023-05-16 13:25:02 +02:00
Christian Clason
95850f7964 fix: force upstreamed predicates 2023-05-15 22:31:28 +02:00
Colin Kennedy
4c35c0b75d Added USD as a language + some queries
Added USD highlight unittests

Added USD indentation

Added USD indents.scm file

Added USD indent rules

Simplified USD highlight groups

Added explicit highlight groups

Added newline

Removed after/ftdetect/usda.lua

usd/indents.scm - Added inline comments explaining the nodes

Fixed USD highlight group unittests

Added indentation unittests

Simplified USD `@identifier` highlighting

Added USD documentation highlight group tests

Simplified USD highlight groups

Moved USD `@identifier` and `@namespace` highlights into one place

Removed and simplified tests/query/highlights/usd

Simplified tests/query/highlights/usd more

Removed trailing newline

Combined USD test files

Added `set filetype=usd` to minimal_init.lua
2023-05-15 09:28:11 +02:00
Amaan Qureshi
40d373adcd feat: add Odin 2023-05-13 02:49:07 -04:00
sogaiu
93b540f917 feat: add janet_simple 2023-04-30 22:06:17 -04:00
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