Commit graph

2155 commits

Author SHA1 Message Date
Christian Clason
bb319daf5f feat: specify abi version for generate on newer ts cli
Check tree-sitter CLI version and if > 0.20.3 and generating a parser
from grammar, use `--abi=vim.treesitter.language_version`.

Besides being able to opt-in to newer ABI benefits, this is a necessary
workaround for an upstream bug with 0.20.3, where `parser.h` is not
generated if the (optional) `--abi` flag is omitted.
2022-01-22 22:56:50 +01:00
Munif Tanjim
020905ff26 ci: fix cache path for rust cargo 2022-01-22 20:54:53 +01:00
Christian Clason
b71d7cbd60 ci: drop windows+clang
takes significantly longer than other combinations
2022-01-22 19:32:24 +01:00
Ryan Roden-Corrent
59ddebd75c fix: Don't require node for gdscript.
The upstream repo has pre-generated bindings at:
https://github.com/PrestonKnopp/tree-sitter-gdscript/tree/master/src
2022-01-22 17:22:53 +01:00
GitHub
6039e4782a Update lockfile.json 2022-01-22 14:55:01 +01:00
Stephan Seitz
9c63cfe72f ci: remove ccache
ccache did take too long to install on MacOS
2022-01-22 13:20:20 +01:00
Pedro Castro
6a958eccef highlights(r): change groups priority 2022-01-22 11:31:58 +01:00
monkoose
500f58f5ac docs: add missing vim table in the example 2022-01-22 11:09:39 +01:00
Christian Clason
00736412a3 ci: bump tree-sitter to v0.20.3 2022-01-22 10:29:27 +01:00
Stephan Seitz
3c462d362f ci: Avoid rust-cache (failures and current git dependency) 2022-01-21 22:06:17 +01:00
Stephan Seitz
5f30cec075 ci: stop uploading artifacts (binary release archives soonish?) 2022-01-21 22:06:17 +01:00
Stephan Seitz
77fe45968c ci: fix cache path on Windows 2022-01-21 22:06:17 +01:00
Stephan Seitz
3372bfbcf2 ci: use curl on Windows CI 2022-01-21 22:06:17 +01:00
Stephan Seitz
8b0398c5e3 ci: cache using ccache 2022-01-21 22:06:17 +01:00
Stephan Seitz
ff97dfac7f ci: add cache for Rust dependency 2022-01-21 22:06:17 +01:00
Christian Clason
2fa395f01d ci: use stable tag for latest nvim release 2022-01-21 22:06:17 +01:00
Christian Clason
16c773c0f8 ci: use stable tag for latest nvim release 2022-01-21 19:38:01 +01:00
Christian Clason
4e4b58f8e9 ci: only run one compiler each on macos, ubuntu 2022-01-21 18:58:40 +01:00
Christian Clason
b7d4d8a55d ci: avoid duplicate CI runs
* run CI on push to master or synchronize PR
* cancel in-progress workflows for updated PR
2022-01-21 18:58:40 +01:00
Christian Clason
bf59e0a3fb ci: bump neovim and tree-sitter cli to latest version 2022-01-21 18:58:40 +01:00
Munif Tanjim
2c7c87570b ci: cache parsers for workflows/tests 2022-01-21 17:52:06 +01:00
GitHub
e7875c025b Update lockfile.json 2022-01-21 17:47:08 +01:00
Munif Tanjim
fb7b6a266e test(indent): rust - add test for indented comment 2022-01-21 16:40:36 +01:00
Munif Tanjim
c2e3938510 fix(indent): rust - support newline after closing brace 2022-01-21 16:40:36 +01:00
Munif Tanjim
7a6d93ca5b feat(indent): ecma - support common use-cases 2022-01-21 16:40:36 +01:00
Munif Tanjim
782e299cd6 fix(indent): c/cpp - support newline after closing brace 2022-01-21 16:40:36 +01:00
Munif Tanjim
8f9d4ada35 feat(indent): ecma - support try_catch and if_else 2022-01-21 16:40:36 +01:00
Munif Tanjim
bb60706433 feat(indent): support @aligned_indent for python 2022-01-21 10:51:51 +01:00
Munif Tanjim
46438064ac refactor(indent): extract functions and support metadata 2022-01-21 10:51:51 +01:00
Munif Tanjim
85140a7a47 feat(indent): use native Query:iter_captures 2022-01-21 10:51:51 +01:00
Munif Tanjim
c0110e34aa feat: rewrite indent module 2022-01-21 10:51:51 +01:00
Munif Tanjim
baf94219aa feat: improve indent module
get_node_at_line should return appropriate child if available
2022-01-21 10:51:51 +01:00
Github Actions
f048886f82 Update README 2022-01-20 19:22:27 +01:00
Christian Clason
4bc6de390b
Update Lua parser to fix infinite recursion (#2308)
fixes #2305
2022-01-20 19:21:07 +01:00
Michael Härtl
04a48e317e
Add phpdoc maintainer (#2311) 2022-01-20 17:32:01 +00:00
Michael Härtl
d7c4ae886d parsers: add phpdoc parser (experimental) 2022-01-20 15:37:44 +01:00
John Drouhard
d0158c053d highlights(c): don't highlight type qualifiers in declarations as types 2022-01-20 08:40:51 +01:00
Michael Härtl
983c46d55c fix(php) match magic and single letter constants 2022-01-19 19:17:01 +01:00
Stephan Seitz
45d384eb3b
docs(CONTRIBUTING.md): mention Neovim's tree-sitter Matrix channel (#2294)
As suggested here:
https://github.com/nvim-treesitter/nvim-treesitter/pull/2288#issuecomment-1015163267
2022-01-19 12:57:55 +01:00
Github Actions
4581400e44 Update README 2022-01-18 22:54:18 +01:00
Christian Clason
c80715f883
feat(lua)!: switch from our fork to MunifTanjim's (#2272)
also take queries from https://github.com/MunifTanjim/nvim-treesitter-lua/tree/main/queries/lua

BREAKING CHANGE: queries are not compatible; modules will have to update
2022-01-18 22:15:26 +01:00
Stephan Seitz
668de0951a chore: remove swift tests for now (cause CI failure)
Will try to add them again in a follow up.
2022-01-18 22:09:21 +01:00
Stephan Seitz
cc1890528f highlights(swift): add more @operators and implicit keyword 2022-01-18 22:09:21 +01:00
Stephan Seitz
8025b90329 highlights(swift): highlight "->" as @operator 2022-01-18 22:09:21 +01:00
Stephan Seitz
a3c86fe843 highlights(swift): highlight punctuation
"?" is still missing:
https://github.com/tree-sitter/tree-sitter-swift/issues/38
2022-01-18 22:09:21 +01:00
captainko
b42de97339 feat(java)(highlights): add missing highlights for @type 2022-01-18 21:59:36 +01:00
GitHub
8b1d390619 Update lockfile.json 2022-01-18 10:09:50 +01:00
Thomas Vigouroux
82916a9d57 docs: refresh CONTRIBUTING.md
- Mention Zulip instead of Gitter
- Use query filetype instead of scheme
2022-01-18 09:22:10 +01:00
Michael Härtl
723d91e821 highlights(php): detect constructor calls on instantiation 2022-01-17 21:38:40 +01:00
GitHub
976659761d Update lockfile.json 2022-01-17 16:53:00 +01:00