Commit graph

830 commits

Author SHA1 Message Date
Lewis Russell
801ef85f93 feat: use vim.treesitter.language.get_lang/add/register() 2023-02-24 10:09:43 +00:00
Lewis Russell
f15d3b0322 feat!: remove support for used_by in parser configs 2023-02-24 10:09:43 +00:00
Amaan Qureshi
c38646edf2 feat: add cpon 2023-02-24 01:14:47 -08:00
Amaan Qureshi
853b1ab39a style: fill in missing code docs wherever applicable 2023-02-24 01:08:23 -08:00
Amaan Qureshi
fceb4ed0ec feat: add dhall 2023-02-24 09:10:11 +02:00
Amaan Qureshi
1641c4f3b4 feat: add starlark 2023-02-23 15:28:30 -08:00
dundargoc
4612212c72 docs: fix typos 2023-02-23 11:39:43 -08:00
Amaan Qureshi
8c4a22fd50 feat(smali): improve queries 2023-02-22 14:11:22 +01:00
Amaan Qureshi
93386fc725 feat(thrift): improve queries 2023-02-18 09:37:41 -08:00
kylo252
d1d00f46ce refactor(utils): clean up deprecated code
use `vim.treesitter.is_in_node_range()` directly
2023-02-17 16:54:02 -08:00
GitHub
24f6653ffe Update parsers: gdscript, thrift
update gdscript indent queries to parser change and remove @Shatur as
maintainer
2023-02-14 11:55:08 +01:00
Kiyoon Kim
7eb5f1a2e3 properly replace deprecated tsutils functions 2023-02-12 14:26:14 -08:00
Kiyoon Kim
2c2430d42f deprecate get_node_range and is_in_node_range 2023-02-12 02:38:17 -08:00
haoxian
dd600cf1c2 fix: incremental_selection error
if some empty lines in the end of file,
would throw error messages when incremental_selection to the whole file.
2023-02-11 15:37:53 -08:00
Amaan Qureshi
c3a7dd4768 feat: improve KDL queries 2023-02-05 23:08:41 -08:00
Amaan Qureshi
720f75f988 feat: add RON 2023-02-05 02:21:49 -08:00
ObserverOfTime
bd7b4b6eff feat: add chatito 2023-02-04 04:19:40 -08:00
Amaan Qureshi
98a52ce300 feat: add gosum 2023-02-03 20:38:40 +02:00
Amaan Qureshi
a0f55ee28c chore: organize languages in parsers.lua 2023-02-03 10:30:00 +02:00
Amaan Qureshi
660a070af7 feat: add func 2023-02-02 23:28:46 +02:00
Amaan Qureshi
e00952111e
feat: add smithy (#4245) 2023-01-31 16:14:58 +02:00
Lewis Russell
adeb6e02d3 fix: better support for custom parsers
If the user changes the parser_config by modifing the table returned by
get_parser_configs(), then internally mark the config so when we install
we 1) don't use the revision pointed to by the lockfile, and 2) always
download the parser via git.
2023-01-30 12:49:57 +01:00
Amaan Qureshi
cbb43a64a3 feat: add elsa 2023-01-30 09:45:17 +02:00
Kiyoon Kim
dd94001fcb fix artefact in change mode 2023-01-28 23:52:12 +01:00
Amaan Qureshi
aad763de6b
feat: add kdl (#4227)
* feat: add kdl

* feat: comment queries

* fix(kdl): comments properly highlighted now

* feat(kdl): folds

* chore: bump revision to feature-complete parser

* fix: folds
2023-01-28 13:59:56 +01:00
ObserverOfTime
de459332e2 feat: add poe_filter 2023-01-25 23:53:04 +02:00
Amaan Qureshi
f826b7af13 refactor(capnp, thrift): improve grammar & queries to stable for the foreseeable future 2023-01-23 22:26:16 +01:00
Liad Oz
6fcb2e6a9a fix: detach behaviour on buffer reload 2023-01-23 21:56:53 +01:00
Jannik Buhr
d7aa8cd745 map quarto ft to markdown parser 2023-01-23 21:29:43 +01:00
Amaan Qureshi
6cf93175bf
feat: add capnp (#4203) 2023-01-23 10:00:32 +02:00
Amaan Qureshi
b300d903b0
feat(thrift): use better queries, namely for idents (#4197) 2023-01-22 12:29:50 +02:00
ObserverOfTime
f5f7c7e004 feat: add htmldjango 2023-01-21 17:01:45 +01:00
Amaan Qureshi
08e1adae53
feat: add thrift (#4185) 2023-01-21 14:39:15 +02:00
Stephan Seitz
0cf5135446 parsers: map ft=confini to ini
Co-authored-by: @ObserverOfTime <ObserverOfTime@users.no-reply.github.com>
2023-01-21 01:05:57 +01:00
Stephan Seitz
fde3505718 parsers: add ini (https://github.com/justinmk/tree-sitter-ini)
Addresses the following request https://github.com/nvim-treesitter/nvim-treesitter/issues/2282#issuecomment-1398856301
2023-01-21 01:05:57 +01:00
Matthew Gramigna
622baacdc1
parsers: Add FHIR Shorthand (FSH) (#4052) 2023-01-18 17:58:45 +00:00
Ananda Umamil
e4042553bd highlights(elm): fix boolean literals 2023-01-14 14:02:15 -08:00
ShootingStarDragons
0598ffad9b feat: let qml use qmljs
Someone like qml to mark qmljs, so let 'qml'
use qmljs
2023-01-10 20:11:05 +02:00
Stephan Seitz
a64b1f478d parsers(wgsl_bevy): add scanner.c 2023-01-10 10:07:08 +01:00
Stephan Seitz
ea43e0e9d3 parsers(wgsl): add scanner.c 2023-01-10 10:07:08 +01:00
Amaan Q
c657cf6b11 feat: add smali to lockfile, parser, and link to repo in README 2023-01-09 21:24:54 +01:00
Stephan Seitz
3e316204f8 ci: fix file name for cache calculation 2023-01-08 00:33:13 +01:00
Stephan Seitz
86345612b7 install: allow pure C parsers to be compiled without -lstdc++
E.g. installing C [here](https://github.com/nvim-treesitter/nvim-treesitter/issues/4056)
does not require libstdc++.

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-01-08 00:33:13 +01:00
coinator
ef0cd56e48
Remove update_selection side-effects (#4114) 2023-01-07 14:23:00 +01:00
Michael Lan
0922634d37
fix(utils): swap_nodes calculates correct char_delta (#4110)
* fix(utils): swap_nodes calculates correct char_delta

The char_delta is not calculated correctly right now when there are two
treesitter nodes being swapped, one directly following the other. This
is rare but can happen for example when attempting to swap "print" and
"(1)" in "print(1)". In this case an incorrect char_delta is calculated
because of a bug in range comparison.

* test(swap_nodes): check cursor

* add a regression test (for multiline node swap)
* add a test with adjacent swaps that fails when char_delta is not
  calculated correctly

* test(swap_nodes): check text content after swap

* test: note language for parser

* fix tests

* use same not equal for table comparison
2023-01-07 02:53:12 +01:00
Lewis Russell
27d8fdc6a6 fix: do not force syntax=ON on detach
syntax is now restored in vim.treesitter.stop() so we don't need to
force it on here.
2023-01-04 14:08:28 +00:00
Stephan Seitz
817531ce6f parsers: add wgsl_bevy
This adds an extension of tree-sitter-wgsl that understands
[Bevy's](https://bevyengine.org/) preprocessor directives.
2022-12-31 15:19:48 +01:00
Stephan Seitz
29304e16bb fix: show errors when reload after installation fails 2022-12-31 13:59:18 +01:00
Stephan Seitz
0598450eb8 feat: also reload parsers after uninstallation 2022-12-31 13:59:18 +01:00
Michael Hoffmann
ee3e9f4dc0 feat(hcl,terraform): split terraform from hcl, add specialized queries for tf
This enables us to have different queries for
terraform and general hcl. It solve the situation
where other dialects of hcl (nomad, packer, etc)
might use a terraform keyword and get highlighted
out of place.
2022-12-29 22:18:41 +01:00