Stephan Seitz
f68a1b16ce
injections(go): avoid running queries on all comments
...
Fixes #3187
Fixes #3263
2022-08-06 05:37:14 -07:00
ray-x
373b15ecee
go folds.scm composit_literal
2022-08-05 13:36:57 -07:00
Stephan Seitz
27424a2040
indents(go): improve @branch rules
...
- Don't branch at `case`
- Let `import_spec_list`/`var_declaration` behave like
`const_declaration`
Fixes #2166
2022-08-05 12:32:20 -07:00
derekstride
3832fde3ee
SQL highlight queries rely on latest parser AST
2022-08-05 21:20:11 +02:00
lfenzo
c784720917
Split func/method definition from calls in several programming language queries
2022-08-03 12:05:30 -07:00
lfenzo
0014e52e2d
Split func/method definition from calls in lotlin highlighting queries
2022-08-03 12:05:30 -07:00
lfenzo
2f9ae24ffa
Split func/method definition from calls in Go highlighting queries
2022-08-03 12:05:30 -07:00
lfenzo
576287ac84
Split func/method definition from calls in C++ highlighting queries
2022-08-03 12:05:30 -07:00
lfenzo
04e62a2027
Split func/method definition from calls in C highlighting queries
2022-08-03 12:05:30 -07:00
lfenzo
140393cfff
Split func/method definition from calls in julia highlighting query
2022-08-03 12:05:30 -07:00
lfenzo
ae87408513
Split func/method definition from calls in python highlighting query
2022-08-03 12:05:30 -07:00
6cdh
d642de92f7
Add racket support
2022-08-03 00:25:14 +02:00
ShootingStarDragons
3d476b3edb
other folds added
2022-08-03 00:19:02 +02:00
ShootingStarDragons
d4786db62e
change tab to space
2022-08-03 00:19:02 +02:00
ShootingStarDragons
a919ea79e5
add folds.scm
2022-08-03 00:19:02 +02:00
Stephan Seitz
f9176e560c
highlights(c/cpp): move attributes to C (again)
...
Let's hope that this time the C tests pass, also for the built-in C
parser.
2022-07-28 08:24:51 +02:00
Matty Patatty
36ee4890c4
highlights(php): highlight more string types and escapes ( #3226 )
2022-07-27 07:48:01 +00:00
Andy Freeland
0d0949683d
Support TOML metadata in Markdown injections
...
Hugo, Zola, and likely other static site generators use `+++` for TOML,
not YAML.
2022-07-25 21:28:40 +02:00
Kiyan
d7f06bfb13
fix(indents): indents for error block (css, lua) ( #3207 )
2022-07-21 13:48:03 +02:00
mliszcz
71395d90c0
highlights(c): Lower the priority of @variable
...
Lower the priority of @variable to prefer @parameter
highlight when identifier appears in parameter_declaration.
Fixes #3061
2022-07-20 17:10:51 +02:00
Oliver Marshall
78c8c9a255
Change to using an explicit list of "def-likes" for clojure ( #3202 )
2022-07-20 10:42:30 +00:00
Access
acd4821bc1
add ui_binding to fold ( #3191 )
2022-07-17 15:12:19 +02:00
Stephan Seitz
aabae39294
highlights(julia): add "mutable" keyword
2022-07-16 13:37:59 +02:00
kiyan
3bd228781b
fix: disable elm parser in markdown to avoid segfault
...
the Elm parser segfaults when injected in markdown. Disable it for now.
See https://github.com/elm-tooling/tree-sitter-elm/issues/124
2022-07-15 12:08:58 +02:00
Robert Liebowitz
97a0322c63
Highlight sql comments ( #3178 )
2022-07-14 14:07:10 +00:00
Andrew Helwer
b46cb0389d
Updated queries and parser version
2022-07-13 21:33:45 +02:00
Access
d4eadbcaf1
Fix and add some highlight ( #3168 )
2022-07-12 11:10:08 +02:00
Viorel Craescu
6f1bf2feec
add go1.18 any type
2022-07-10 14:53:27 +02:00
Viorel Craescu
2f340af135
remove type definition
2022-07-09 21:18:03 +02:00
Viorel Craescu
eb3f263bfe
add type def highlight, add field declaration highlight and remove constant highlight
2022-07-09 21:18:03 +02:00
Princeton Ferro
f3c309db4e
feat(vala)!: switch to @vala-lang parser
2022-07-09 16:22:51 +02:00
Viorel Craescu
32e033a8f5
add method spec highlight and block folds ( #3151 )
2022-07-09 11:35:10 +00:00
Access
e5995d3643
fix(exception): erlang exception ( #3150 )
2022-07-09 13:33:01 +02:00
Access
9a87c20ce9
add (module_export) to folds ( #3148 )
2022-07-09 11:35:47 +02:00
Eric Zheng (PiaoDan)
9587db3d07
fix: add more indentations for ruby ( #3139 )
2022-07-09 10:58:25 +02:00
Access
ab3183107a
feat(erlang highlight): support erlang highlight ( #3141 )
2022-07-09 10:55:48 +02:00
Roberto Pommella Alegro
599fd416c8
remove accidental text
2022-07-08 21:58:42 +02:00
Roberto Pommella Alegro
aac4f027c5
Add heredoc language injection for HCL
...
Add a heredoc language injection similar to Ruby for HCL. This allows terraform resources like this to be properly highlighted
```hcl
resource "aws_iam_role" "sample" {
name = "sample"
assume_role_policy = <<JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"AWS": "*"
},
"Effect": "Allow",
"Sid": ""
}
]
}
JSON
}
```
2022-07-08 21:58:42 +02:00
ShootingStarDragons
f0e710793f
support the fold of haskell
2022-07-08 21:58:10 +02:00
guijan
8f13ef1563
highlights(c): highlight , operator as operator ( #3107 )
2022-07-08 09:00:56 +02:00
kiyan
8bc4d046e7
fix(rust): remove if_let from indent captures
...
fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3073
2022-07-08 00:27:51 +02:00
derekstride
1b6debcf69
Update lockfile and highlight queries
2022-07-08 00:15:40 +02:00
derekstride
8927588e47
Initial SQL support
2022-07-08 00:15:40 +02:00
kiyan
6eb35103d0
fix(go): indent const declaration
...
https://github.com/nvim-treesitter/nvim-treesitter/issues/3104
2022-07-08 00:14:29 +02:00
Pieter van Loon
dcc5895e7c
Highlight named fields in struct literals
2022-07-08 00:13:46 +02:00
Access
bafa20df2b
add fold support to qml ( #3132 )
2022-07-07 18:16:34 +02:00
Access
4b5966c81a
add qmljs ( #3126 )
2022-07-07 16:33:47 +02:00
Kiyan
6f3fbb2622
fix(ecma): indent end for bracket ( #3121 )
2022-07-07 14:35:12 +02:00
MDeiml
f75e27c217
Use markdown metadata blocks for injection
2022-07-03 11:25:50 +02:00
Kiyan
372b007231
fix(haskell): priority 101 for infix function precedence over variable ( #3085 )
2022-07-01 15:47:28 +02:00