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
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
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
Amaan Qureshi
0a20d1bb63
feat(ecma): use lua-match for jsdoc injections
2023-04-03 11:13:04 -04:00
ghostbuster91
06075ecd04
fix(scala): Add missing locals definitions for scala
2023-04-01 14:29:43 -04: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
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
Amaan Qureshi
47615a947a
feat(perl): update queries from upstream changes
2023-03-27 13:49:44 -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
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
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
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
Amaan Qureshi
17a81d7b35
feat(luadoc): add more annotations
2023-03-24 08:19:13 -04:00
Amaan Qureshi
87cf2abeb6
feat(typescript): add various missing function/method captures
2023-03-22 18:03:20 -04:00
Matthias Queitsch
97a354ff44
highlights(sql): add new keywords for views and defaults
2023-03-22 22:01:21 +01:00
Amaan Qureshi
40670af980
feat: add Bass
2023-03-22 06:34:30 -04:00
Anthony Shi
9253ce66f9
fix(python): add object as @type.builtin
2023-03-22 05:27:28 -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
Stephan Seitz
8ae2c8ff49
highlights(proto): make "include"/"package" @include
2023-03-21 07:10:24 -04:00
Zhizhen He
181a580190
fix: revert for solidity
2023-03-21 02:23:52 -04:00
Zhizhen He
a1df50a79f
docs: fix typo
2023-03-21 02:23:52 -04:00
ObserverOfTime
25b656a4b7
comment(highlights): reduce user mention priority
2023-03-20 04:47:56 -04:00
Amaan Qureshi
bc23db2515
feat: add Luadoc
2023-03-20 04:20:49 -04:00
Amaan Qureshi
581fc14cea
queries(lua): add more keywords related to variable/function builtins, debug, and coroutines
2023-03-20 03:13:41 -04:00
Amaan Qureshi
2170a36416
fix(lua): properly highlight labels
2023-03-20 03:13:00 -04:00
Benny Powers
4536156f32
injections(html): input regex patterns ( #4521 )
...
* injections(html): input regex patterns
replaces regex part of #2577
2023-03-19 08:32:42 -04:00
Benny Powers
38f878a1cd
fix: svg injection in ecma tagged literals
2023-03-19 08:20:16 -04:00
Benny Powers
f15db0b652
style: alternation in template literal query
2023-03-19 08:20:16 -04:00
Benny Powers
1ba94e9f01
fix(ecma): template literal injections
...
see e3ebc8ec5d (commitcomment-104824257) for explanation
This also assigns the HTML parser for SVG tagged literals, since svg uses the HTML parser
2023-03-19 08:20:16 -04:00
Amaan Qureshi
6a269f197e
fix(cpp): nullptr should be @constant.builtin
2023-03-19 08:14:10 -04:00
Amaan Qureshi
17c275bfff
feat: add LLVM TableGen
2023-03-16 10:58:50 -04:00
Pham Huy Hoang
01e8a51451
feat(python): add "return" patterns to @indent_end
...
`return ...` is usually the last line of a
function/statement, so mark some possible patterns of `return` with
`@indent_end` to dedent the line after it
2023-03-16 13:41:19 +01:00
Pham Huy Hoang
f5ddd8f92e
fix(python): add missing @indent_end
2023-03-16 03:46:01 -04:00