kiyan
560e8fb450
refacto: expose a function to set custom capture for the higlighter
...
BREAKING: deprecate custom_captures from highlight config.
This allows plugin authors to extend the map. It also avoids settings
user configuration specific values during the highlighter
initialization (SOC).
Not sure how much value this brings, and might potentially break a lot
of people configurations. This is questionable.
2022-02-19 18:26:51 +01:00
Connor Lay (Clay)
0fbb268b07
Add myself as maintainer of Elixir, Gleam queries
2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
84354f991a
Add Gleam parser
2022-02-15 19:01:02 +01:00
traxys
ca64d8b028
feat: add lalrpop parser ( #2524 )
...
LALRPOP is a parser generator for Rust. This only parses the LALRPOP
side of the generator, not the nearly-rust code of the actions.
2022-02-13 16:18:41 +00:00
badhi
503c99d766
typo fix
2022-02-13 10:39:55 +01:00
badhi
738a0136dd
added doc for setup_command
2022-02-13 10:39:55 +01:00
badhi
0b10e96e0e
Fixed formatting
2022-02-13 10:39:55 +01:00
badhi
763e0e43f7
Added extra argument to setup commands so that user can change the function args types
2022-02-13 10:39:55 +01:00
github-actions[bot]
708b4e4cac
Update lockfile.json ( #2512 )
...
Co-authored-by: GitHub <noreply@github.com>
2022-02-11 09:36:01 +00:00
Stephan Seitz
5639b74db0
chore(makefile): apply fixes to original makefile
2022-02-08 23:37:59 +01:00
Stephan Seitz
81f2a5d702
fix(makefile): fallback to c++14 when parser does not have cxx_standard set
2022-02-08 23:37:59 +01:00
Stephan Seitz
2caac44720
fix: Allow re-parsing in Python, XFAIL \ indentation test
2022-02-06 19:42:57 +01:00
kiyan
a0b7cece2c
chore: expose start and stop highlighter
...
Decompose highlighter module in small functions to allow exporting a
start and stop functions without the syntax change.
Also fix linter issues in configs.lua
2022-02-06 15:12:34 +01:00
kiyan
58a4897e6d
refacto: deprecate used_by in parsers.lua
...
- remove print_warning function from utils.lua (unused)
- cleanup some functions in parsers.lua (parameters overloading
and wrong bufnr used).
- log a deprecation notice when using used_by in a parser definition
- default the filetype_to_parsername table to the list of filetypes
previously in the used_by keys
- update the README to indicate that change
2022-02-06 14:30:57 +01:00
Stephan Seitz
07e07cf303
fix(indents): ignore comment_parsers for indentation
2022-02-05 18:54:55 +01:00
Stephan Seitz
66f33ddd8b
Update lua/nvim-treesitter/indent.lua
...
Co-authored-by: Kiyan <yazdani.kiyan@protonmail.com>
2022-02-05 18:54:55 +01:00
Stephan Seitz
aa035cdf2a
workaround(indents): avoid reparsing for indent sensitive yaml/python
2022-02-05 18:54:55 +01:00
Stephan Seitz
b06961a519
fix(indents): re-parse before each indent
2022-02-05 18:54:55 +01:00
Stephan Seitz
fd5a551d7c
indents(c): add zero_indent for #if
2022-02-05 18:54:55 +01:00
Stephan Seitz
616dc885fc
indents(c): fix indentation on block comment
2022-02-05 18:54:55 +01:00
Stephan Seitz
b9c38a48ca
indents: refactor hanging indent
2022-02-05 18:54:55 +01:00
Stephan Seitz
059fbc487c
indents: allow aligned_indent for unfinished calls in C and Python
2022-02-05 18:54:55 +01:00
Stephan Seitz
62982378b8
indents(cpp): indent at field_initializer_list
2022-02-05 18:54:55 +01:00
Stephan Seitz
7654bbc04b
feat(indents): add support for language injection
2022-02-05 18:54:55 +01:00
Christian Clason
a80c8bc506
chore(latex)!: update parser and queries ( #2436 )
...
BREAKING CHANGE: queries for latex need adaptation
2022-02-04 10:29:46 +00:00
Andrew Helwer
b12c10778c
Updated TLA+ version, queries, maintainers ( #2442 )
2022-02-03 19:12:22 +01:00
Michael Lan
50cf31065c
fix(utils): adjust truncation condition
2022-02-03 08:38:50 +01:00
Michael Härtl
92ce0fc3d5
update(phpdoc) Add scanner.c ( #2426 )
2022-02-01 12:51:31 +01:00
Stephan Seitz
7049a66b54
health: check which file caused an error
2022-01-29 23:45:32 +01:00
Mateus Melchiades
5fc4cb5d2d
Vala language support
2022-01-29 18:43:44 +01:00
Clay
2532937ba1
Add tree-sitter-eex parser for (L)EEx files ( #2351 )
2022-01-25 16:52:51 +00:00
Stephan Seitz
bb33aea03c
Set CXX standard per parser and fix Norg
2022-01-23 16:27:25 +01:00
Stephan Seitz
a37c97545f
Allow compilation via makefile
2022-01-23 16:27:25 +01:00
Jozef Grajciar
045cb86d44
Add tree-sitter-norg
2022-01-23 16:27:25 +01:00
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
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
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
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
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
3f8917ac73
parsers: add hack parser
2022-01-17 10:53:35 +01:00
antosha417
317f5c7471
add hocon
2022-01-16 14:59:39 +01:00
Christian Clason
cca7d1d671
fix(swift): switch to maintained parser
...
upstream https://github.com/tree-sitter/tree-sitter-swift is abandoned.
2022-01-16 14:27:24 +01:00
Christian Clason
ca837f5218
fix(util): pass offset_encoding to apply_text_edits
...
Offset encoding is a mandatory argument to
`vim.lsp.util.apply_text_edits` since bc722c8a74
Since we are always within a Neovim context, we can just pass `"utf-8"`.
2022-01-15 14:59:24 +01:00
Sal Bakraa
f9179db8de
docs(kotlin): change Kotlin maintainer
2022-01-08 20:01:00 +01:00