GitHub
cc360a9beb
Update parsers: devicetree, hcl, terraform, vim, zig
2023-04-10 12:07:16 +02:00
Robert Brunhage
2fe7f969c1
fix(dart): try statement wouldn't indent ( #4623 )
2023-04-10 06:52:50 +00:00
Jaehwang Jung
fa9fe9a95b
fix(rust): highlight SNAKE_CASE scoped identifier name as @constant
2023-04-09 08:12:17 -07:00
Jaehwang Jung
a57d2a599b
feat(markdown_inline): add @nospell where appropriate
2023-04-08 15:34:06 -07:00
Pham Huy Hoang
9161093fc7
fix(c_indents): fix expression leaking indents
2023-04-08 09:59:21 -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
Jaehwang Jung
e482c9b4e2
feat(cpp): more distinction between function/method declaration and call
2023-04-08 09:40:30 -07:00
Pham Huy Hoang
ab39fe6c86
refactor(html_inject): Use lua-match instead of match
2023-04-08 12:34:08 -04: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
github-actions[bot]
226c1475a4
Update parsers: sql ( #4615 )
...
Co-authored-by: GitHub <noreply@github.com>
2023-04-07 07:29:32 +00:00
GitHub
c85d059c46
Update parsers: c_sharp, gitcommit
2023-04-06 15:05:12 +02:00
Saleh Bakra'a
153818c29b
kotlin: update parser and queries
...
Update `queries/kotlin/locals.scm` to use the the newly exposed `function_value_parameters` node.
2023-04-06 14:50:38 +02:00
GitHub
411e771d51
Update parsers: sql
2023-04-05 09:04:50 +02:00
GitHub
871f5665d9
Update parsers: svelte, swift, vimdoc
2023-04-04 09:33:54 +02:00
Amaan Qureshi
0a20d1bb63
feat(ecma): use lua-match for jsdoc injections
2023-04-03 11:13:04 -04:00
Chris Kipp
9711139326
docs: add a small note about local queries
...
This just adds a small note in the CONTRIBUTING section about local
queries and how they differ from those listed upstream.
2023-04-03 01:54:02 -07: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
GitHub
cbfa7cae1b
Update parsers: awk, tiger
2023-04-02 11:17:07 +02:00
ghostbuster91
06075ecd04
fix(scala): Add missing locals definitions for scala
2023-04-01 14:29:43 -04:00
GitHub
ee1d618280
Update parsers: vhs
2023-04-01 16:26:57 +02:00
Christian Clason
93fa5df0a3
chore(help)!: renamed to vimdoc
2023-04-01 16:10:11 +02:00
Trey Wood
2f3113ff6d
fix(ruby): then blocks should not be @conditional, just "then"
2023-03-31 11:43:55 -04:00
Matthias Queitsch
d546bcd1f1
highlights(sql): add full, any and some keywords
2023-03-31 06:13:45 -04:00
GitHub
09275650b8
Update parsers: cue, sql
2023-03-30 09:16:10 +02:00
Trey Wood
5d85bdd883
update sql parser and highlights
2023-03-29 18:29:40 -04:00
dundargoc
1727f63976
docs: fix typos
2023-03-29 18:28:56 -04:00
kawas44
c07c1c5b98
feat(spell): support lisp like languages
...
Add spell to commonlisp, scheme, racket, clojure and fennel.
2023-03-29 17:48:30 -04:00
GitHub
9850baa958
Update parsers: help, tlaplus, v, vhs
2023-03-29 09:42:02 +02:00
GitHub
5a7a2ad172
Update parsers: erlang, pony, v
2023-03-28 09:37:39 +02:00
GitHub
63e4a3a40a
Update parsers: awk, cpp, cuda, glimmer, haskell, hlsl, perl, swift, v
2023-03-27 22:41:54 +02:00
Amaan Qureshi
47615a947a
feat(perl): update queries from upstream changes
2023-03-27 13:49:44 -04:00
Github Actions
0a907316fa
Update README
2023-03-27 11:04:29 -04: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
ObserverOfTime
ac13230ddd
chore(lockfile): bump arduino
2023-03-27 10:20:38 -04:00
Amaan Qureshi
a9df886c2e
chore(lockfile): bump cuda & hlsl
2023-03-27 10:20:38 -04:00
John Drouhard
300ba8d5a5
feat(cpp): simplify namespace query rules now that parser is a bit more consistent
2023-03-27 10:20:38 -04:00
Chris Kipp
25dd24ed0e
feat(scala): add in local variables queries
...
This syncs the queries that were updated in https://github.com/tree-sitter/tree-sitter-scala/pull/196 .
Co-authored-by: ghostbuster91 <ghostbuster91@users.noreply.github.com>
2023-03-27 06:48:21 -04:00
Amaan Qureshi
e559b6fb3f
feat(kotlin): update queries from upstream changes
2023-03-26 23:17:24 +02:00
Leix b
981f88a0c2
fix(rockspec): add doc folder to rockspec ( #4562 )
2023-03-26 19:12:51 +02:00
Pham Huy Hoang
c9ef5e58f7
feat(python): add break/continue dedent
2023-03-25 00:31:57 -04:00
Pham Huy Hoang
1ffa019856
feat(python): add match-case indents
2023-03-25 00:31:57 -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
Lucario387
c7b9f68d03
feat(vue): add tsx/jsx injection queries ( #4550 )
...
* feat(vue): add tsx/jsx injection queries
- add a test
- style: format vue/injections.scm
2023-03-24 14:38:19 +00:00