Commit graph

2279 commits

Author SHA1 Message Date
Anthony Shi
5973b617a9
fix(kotlin): remove slow highlight and local pattern (#5954)
This is a parser bug that needs to be fixed; temporary workaround to
remove the ~0.5s delay on opening highlight and locals queries.
2024-02-06 13:51:50 +01:00
Dennis van den Berg
3722d5d772
fix(angular): nullish coalescing operator in Angular templates (#6052) 2024-02-06 10:30:01 +01:00
Riley Bruins
127cf25737 feat(latex): pre-compiled header highlights, tests
Also moves comment highlights to the very end to make them more
future-proof.
2024-02-06 10:29:09 +01:00
Riley Bruins
8d6192baa9 fix(latex): give comments higher precedence
This commit also moves things around to give text better precedence in
the case of `textit` and `textbf`.
2024-02-06 10:29:09 +01:00
Calum Smith
0d14299a9d highlight(jsx,tsx): character references (a.k.a. entities) 2024-02-05 18:37:12 +01:00
Ilia Ilinykh
1cda98132a
feat(java): inject printf in String.formatted (#6045)
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html#formatted(java.lang.Object...)
2024-02-02 20:00:03 +01:00
Michael Strobel
a536ecad57 fix(php): add missing spaceship operator <=> 2024-02-02 19:59:00 +02:00
Amaan Qureshi
8b99311ca1 chore(bicep): update queries and add scanner 2024-02-02 08:24:59 +01:00
Amaan Qureshi
d2b4563230 chore(kconfig): update highlights 2024-02-02 00:39:01 -05:00
Ilya Ilyinykh
e7ea07e42c fix(go): fix eq to any-of 2024-02-01 19:21:09 +01:00
Ilya Ilyinykh
f2119df35c feat(go): printf injections
https://pkg.go.dev/fmt#pkg-index
https://pkg.go.dev/fmt#Fscanf
https://pkg.go.dev/fmt#Appendf
https://pkg.go.dev/fmt#Sscanf
https://pkg.go.dev/testing#T.Skipf
https://pkg.go.dev/testing#F.Logf

The problem covered here:
https://github.com/nvim-treesitter/nvim-treesitter/issues/2917
2024-02-01 19:21:09 +01:00
Levi Frandsen
7e4e92432d fix(svelte): correct formatting 2024-02-01 23:35:57 +07:00
Levi Frandsen
129f8b9742 fix(svelte): correct indents, add key block
resolves #6028
2024-02-01 23:35:57 +07:00
Amaan Qureshi
5fca7ae496 chore(bicep): update highlights 2024-02-01 04:10:16 -05:00
Amaan Qureshi
515b00598a chore(qmljs): temporarily remove the ecma inherit 2024-01-31 22:31:50 -05:00
Amaan Qureshi
90327d9e73 chore(typescript,tsx): update parser and queries 2024-01-31 22:31:50 -05:00
Amaan Qureshi
6da205148f chore(ecma,jsx): update parser and queries 2024-01-31 22:31:50 -05:00
Phạm Huy Hoàng
5f950cdcb8 fix(format): handle list with 300 nodes 2024-01-30 22:59:27 +07:00
Murtaza
d4dac523d2
feat(groovy)!: switch to more complete parser (#5957)
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2024-01-28 22:17:50 +01:00
Dennis van den Berg
2fb2100fed
feat(angular)!: switch to parser supporting v17 (#5779) 2024-01-27 12:17:25 +01:00
Riley Bruins
e0edcbb1d2 fix(make): highlight order-only prerequisite pipe 2024-01-26 19:07:19 -05:00
Amaan Qureshi
ed82d82b77 chore(Odin): update highlights 2024-01-26 12:52:24 -05:00
Dai López
ffb19d5dee
feat(gnuplot): added gnuplot parser and queries (#5594)
* feat(gnuplot): added gnuplot parser and queries

---------

Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2024-01-26 13:30:43 +02:00
Amaan Qureshi
4bc1f9a4eb feat(kconfig): add new operator 2024-01-26 03:15:41 -05:00
Amaan Qureshi
b7fd3d1db4 fix(lua): inject luadoc into comments immediately beginning with a | 2024-01-26 02:14:15 -05:00
Riley Bruins
0b697429c9 fix(git_config): highlight parent relative path 2024-01-26 00:58:05 -05:00
Jongwook Choi
cb79d24461 feat(python): allow comments before module docstring
Example:

  ```python
  #!/usr/bin/env/python
  # some comment before module docstring
  # Copyright (c) LICENSE foo bar

  """module docstring."""
  ```

Python indeed recognizes it:

  ```
  $ python -c 'import testfile; print(testfile.__doc__)'
  module docstring.
  ```
2024-01-25 23:28:11 +01:00
Christian Clason
cc908cfcd7 fix(dart): replace slow indent with simpler strategy
Pattern for dedenting else blocks is painfully slow (~20% of total test
time), so replace with `@indent.auto` for the whole `if_statement` for
now.
2024-01-25 13:12:53 +01:00
Christian Clason
22025469b5 fix: bump phpdoc parser and query 2024-01-25 09:47:20 +01:00
Riley Bruins
314fe31dc7 fix(jsx): proper tag and builtin tag distinction 2024-01-25 09:11:48 +01:00
Amaan Qureshi
1d83fc08d4 fix: format disassembly 2024-01-25 10:00:01 +09:00
Colin Kennedy
4362b04a29
feat: add tree-sitter-disassembly 2024-01-24 19:25:40 -05:00
Miles Frain
2c1eb02e92 feat(bash) Highlight concatenated words as strings 2024-01-25 00:15:02 +01:00
Amaan Qureshi
10903b13d8 chore(luau): update highlights and parser 2024-01-24 18:14:03 -05:00
ObserverOfTime
1bee80469d feat(vim): highlight keycodes 2024-01-24 20:19:55 +01:00
ObserverOfTime
8166080035 feat(yuck): add missing injections
And builtin variable highlights
2024-01-24 13:47:19 +01:00
ObserverOfTime
d23192fb17 fix(godot_resource): improve highlights
And add a comment injection
2024-01-24 13:47:19 +01:00
ObserverOfTime
aa0c60ca5a fix(highlights): clean up tag highlights 2024-01-24 13:47:19 +01:00
Riley Bruins
c62874656e feat(latex): operator highlights for _ and ^ 2024-01-24 13:25:42 +01:00
Riley Bruins
f72d9169f2 fix(latex): better environment precedence 2024-01-24 13:25:42 +01:00
Amaan Qureshi
ae7ceaadad chore(c_sharp): highlight tweaks 2024-01-24 01:45:42 -05:00
Amaan Qureshi
a938e98cb4 chore(luadoc): update parser & highlights 2024-01-24 01:30:11 -05:00
Amaan Qureshi
527eb602ff chore(rust): update highlights 2024-01-24 01:29:48 -05:00
Amaan Qureshi
55562407b6 chore(python): update member lua pattern 2024-01-24 15:21:39 +09:00
Jędrzej Boczar
37c808b8ce
fix(devicetree): Adapt to upstream node changes (#5961) 2024-01-24 13:33:52 +09:00
Phạm Huy Hoàng
41128a7724 fix(rust): Follow upstream injections
tree-sitter-rust and helix both have `injection.include-children` for
the pattern in this PR. So it's best to changed to match the intended
results
2024-01-24 12:18:32 +09:00
Riley Bruins
177a775fd8 feat(git_config): shell command alias injections 2024-01-23 12:10:49 +02:00
wzy
94bd4bcc5b
feat: add the zathurarc parser (#5948) 2024-01-21 19:42:30 +02:00
Phạm Huy Hoàng
e0420e73c9 fix(wgsl_bevy): Correct formatter mistake
Old version of `format-queries` incorrectly took away a space, creating
a wrong capture.

This is a fixup for that.
2024-01-22 00:49:31 +09:00
Phạm Huy Hoàng
77e298e4de chore: format queries 2024-01-21 23:55:02 +09:00