Commit graph

61 commits

Author SHA1 Message Date
Alan Russell
e805476f0a
Remove operator and keyword assignments duplicated by simpler tokens 2025-07-18 16:35:27 +01:00
Alan Russell
86d9c663a5
Group boolean and builtin const highlights 2025-07-18 16:24:40 +01:00
Alan Russell
701af786f2
Add folds 2025-07-18 09:31:53 +01:00
Alan Russell
05faf4ad7a
Remove projection and object highlights
These are just pairs of curly braces, covered by punctuation.brackets
higher up
2025-07-18 09:25:20 +01:00
Alan Russell
ce032b88c7
Delete comment from top of highlights
This was copied from the parser repo, but is pointless in this context.
The folder structure denotes what the file is.
2025-07-18 09:15:46 +01:00
Alan Russell
8f1040cc3a
Add indents query 2025-07-18 09:13:40 +01:00
Alan Russell
cc63a93600
Add comment injection 2025-07-18 09:02:21 +01:00
Alan Russell
0c1f579202
Format function.builtin query 2025-07-18 08:53:23 +01:00
Alan Russell
1bffee8dbb
Group function.builtin patterns 2025-07-18 08:16:47 +01:00
Alan Russell
a94f00603e
Group keywords operators and punctuation 2025-07-18 07:57:40 +01:00
Alan Russell
af278ca8c1
Add JavaScript defineQuery injection 2025-07-17 22:10:12 +01:00
Alan Russell
3b1ca8ef7a
Run format-queries script 2025-07-17 21:10:37 +01:00
Alan Russell
68af92e8cd
Remove ERROR highlighting 2025-07-17 18:08:26 +01:00
Alan Russell
104bbc3633
Add highlights.scm from ajrussellaudio/tree-sitter-groq 2025-07-17 18:07:35 +01:00
Riley Bruins
96f51adf71
fix(c_sharp): "<", ">" in type param lists are brackets (#8003) 2025-07-15 00:55:29 +00:00
Riley Bruins
6c2234f7ba
feat(c_sharp): highlight :: (#8002) 2025-07-14 17:48:23 -07:00
Caleb White
c9e4edc127 feat(blade): update blade parser and queries 2025-07-11 17:34:30 +02:00
Christian Clason
4eb12d7a1f feat(ziggy,ziggy-schema): update parser and queries
Breaking change: ziggy-schema removed "map" node
2025-07-09 10:30:54 +02:00
Christian Clason
4400990e73 feat(vim): highlight "trim" in script heredocs
Allow the optional "trim", as documented in ":help :lua-heredoc".
2025-07-07 12:22:10 +02:00
Christian Clason
0d32ec3c3e feat(latex)!: update parser and queries
Breaking change: `label_definition`, `label_text` patterns
2025-07-05 17:46:07 +02:00
Igor
dafb3cb3cb fix(http): prefer folding requests 2025-07-04 08:56:45 +02:00
Riley Bruins
04935dec42 fix: remove import references to jsx/locals.scm
There are no JSX locals (yet...?)
2025-07-03 18:33:31 +02:00
Baruch Even
1f069f1bc6
feat(D): highlight (string) etc. as @keyword.type (#7978)
Co-authored-by: Baruch Even <baruch@weka.io>
2025-06-29 16:10:29 +00:00
przepompownia
dbb63c8b7a feat(php): fold match_expression 2025-06-29 15:59:54 +02:00
przepompownia
4b2e9b049c feat(php): fold array_creation_expression 2025-06-29 15:17:01 +02:00
Eric Mrak
7110df63e1
feat(fish): more builtin commands and variables (#7972)
builtin commands:
* abbr
* path

builtin variables:
* fish_cursor_*
2025-06-26 09:04:48 +02:00
Christian Clason
1181cd9a25 feat(verilog)!: rename to systemverilog
Grammar name was changed to coincide with repository name
2025-06-24 10:07:36 +02:00
Christian Clason
13ddd4d752 feat(swift)!: update parser and queries 2025-06-24 10:07:24 +02:00
Christian Clason
8867a9d6bf feat(powershell)!: update parser and queries
removed nodes: `"class"`, `"enum"`
2025-06-22 15:51:32 +02:00
guilhas07
2a677dede2 feat(vue): add template commentstring metadata 2025-06-18 18:34:40 +02:00
Christian Clason
7e6fbcaa20 feat(purescript)!: update parser and queries
removed note: `(constructor_operator)`
2025-06-17 15:55:21 +02:00
uncenter
a64ef334be
fix(css): universal selector "*" has precedence over operator (#7948) 2025-06-14 11:01:04 +02:00
Igor
c29969e8ef feat(dot): fold queries 2025-06-13 09:24:28 +02:00
Éric NICOLAS
9c03c835fb fix(bash): highlight shebang also when spaced
This commit aligns the shebang highlighting in bash syntax to what the
Linux kernel will recognise as a valid shebang construct.

In summary, the kernel will accept both headers:

    #!/usr/bin/env lua
    #! /usr/bin/env lua

The second one is quite prominently used throughout documentation
online, such as on Wikipedia's page for Shebang (Unix) [1].

Some sources are adamant it wouldn't be supported at a kernel level, but
it looks to me, upon closer inspection of the current kernel code [2],
that it is indeed quite evidently valid.  It'll simply skip over to the
first character that's neither a space 0x20 nor a tab 0x09.

[1] https://en.wikipedia.org/wiki/Shebang_(Unix)
[2] ec7714e494/fs/binfmt_script.c (L44-L71)
2025-06-09 10:43:31 +02:00
Jaehwang Jung
c48b37a3c9 feat(cpp): highlight template method call 2025-06-07 10:28:49 +02:00
Christian Clason
faf63903ff fix(ipkg)!: remove parser and queries
grammar repo is 404 (user removed) and no forks exist
2025-06-06 16:59:44 +02:00
Omar Valdez
27d0bef81e feat(desktop): update parser and queries 2025-06-06 09:07:06 +02:00
Christian Clason
27b0bd487c feat(nickel)!: update parser and queries
Breaking change: `(record_field)` -> `field_decl`
2025-06-02 13:30:07 +02:00
Éric NICOLAS
9a51f860c1 fix(git_config): match lowercase Git config vars
Git config's sections, variable names, and (sometimes) subsections are
case-insensitive.  This commit proposes to match the full lowercase
variants in addition to the non-normalised, lowerCamelCase ones.

See `git help config`
2025-05-31 10:12:23 +02:00
Christian Buttner
c59004f1e0
feat: add c3 (#7891) 2025-05-28 23:04:10 +02:00
Noah Bogart
71d2fd1bd4
fix(just): do not restrict @function.call to explicit list (#7905) 2025-05-28 22:44:34 +02:00
Christian Clason
024e6c5e46 fix(queries): fix rebase errors on main 2025-05-28 14:35:36 +02:00
Marc Jakobi
dd63d7141f fix(haskell): properly set inline-python injection language 2025-05-27 14:17:05 +02:00
Christian Clason
0d60a09252 fix(typst): restore missing injections 2025-05-25 10:51:44 +02:00
Omar Valdez
652831b231 feat(bash): highlight variable argument for printf -v 2025-05-24 11:39:59 +02:00
Yorick Peterse
d08cf75e1b feat(inko): add scoping to the locals queries
This way tooling that makes use of these queries (e.g. snacks.nvim) is
aware of the scoping of Inko types and methods.
2025-05-22 07:47:03 +02:00
Riley Bruins
168fe16cdd fix: tidy up some query mistakes
Revealed by the capture-less patterns lint
2025-05-18 09:46:27 +02:00
Christian Clason
864e75a85d fix(c,cpp,fsharp,idl,powershell,sql,systemtap): remove unneeded escapes 2025-05-13 18:12:58 +02:00
Christian Clason
25f08b82af fix(hcl): remove unnecessary escapes 2025-05-13 18:12:58 +02:00
Christian Clason
a83f2d1417 feat(vim): update parser and queries
* add support for `:substitute` command
* add support for `=` lua chunks
2025-05-12 18:43:40 +02:00