Commit graph

1275 commits

Author SHA1 Message Date
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
guijan
9832666cfa
highlights(c): highlight member-access as operator (#3096) 2022-07-01 15:47:11 +02:00
PolarMutex
b8459df74d
feat(beancount): support folding org headers (#3078)
requires beancount parser update

Co-authored-by: Brian Ryall <brian@brianryall.xyz>
Co-authored-by: Christian Clason <c.clason@uni-graz.at>
2022-06-28 10:44:38 +02:00
Matthias Deiml
002084b1be
feat(markdown)!: switch to split parser (#3048)
* switch to split markdown parser with separate block and inline parsers to improve performance
* add exclude_children! directive (useful for something like Injected markdown incorrectly highlights indented docstrings #2212)
* split markdown queries into block and inline ones and add the injection for inline into block grammar
* add include_dir option to parser configs (needed because the two grammars don't live in the repos root directory)

BREAKING CHANGE: downstream queries need to be adapted to new parser
2022-06-26 18:02:29 +02:00
kiyan
74ec4e1d5c fix(haskell): highlight exp_name as function in infix operations 2022-06-25 11:43:11 +02:00
Janfel
881b932893 highlights(lua): use #eq? instead of #match?
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2022-06-24 20:27:58 +02:00
Janfel
8d43730388 highlights(lua): highlight only self as self
Before, all identifiers containing the substring "self" were highlighted as the builtin `self`. Now, only the identifier `self` is highlighted as `self`.
2022-06-24 20:27:58 +02:00
Cameron
16abfdc11c Update highlights.scm
Adds `undef` and `redo` keywords.

https://docs.ruby-lang.org/en/2.4.0/syntax/miscellaneous_rdoc.html#label-undef
https://docs.ruby-lang.org/en/2.4.0/syntax/control_expressions_rdoc.html#label-redo+Statement
2022-06-24 17:03:41 +02:00
Jonathan Lopez
238532fe82 Simplify inline conceal 2022-06-22 13:56:11 +02:00
Jonathan Lopez
536f4294f6 Refactor markdown conceal code 2022-06-22 13:56:11 +02:00
Jonathan Lopez
778bfc337a Conceal markdown links 2022-06-22 13:56:11 +02:00
Santos Gallegos
96ee5b5382 Help: update highlights
- A hotlink on vimdoc is `|foo|`.
  Which is a reference to part of a document,
  not a URI.
- (argument) wasn't being highlighted,
  wasn't sure about the best hl group for this,
  but `@parameter` seems the obvious one?
2022-06-19 22:11:42 +02:00
Brian Albert Monroe
7075c6b63a rnoweb: Use new inline/chunk distinction 2022-06-19 21:45:19 +02:00
Brian Albert Monroe
edff301949 rnoweb: Add folding queries for renv 2022-06-19 21:45:19 +02:00
Brian Albert Monroe
8cb1fdf4bf Make rnoweb injects combined
This helps with breaking apart latex environments
2022-06-19 21:45:19 +02:00
Brian Albert Monroe
575fe65147 Add rnoweb queries 2022-06-19 21:45:19 +02:00