Christian Clason
|
1ae9b0e455
|
feat!: align standard captures with upstream
Problem: Sharing highlight queries with upstream tree-sitter and
Helix is difficult.
Solution: Where reasonable, use capture names in tree-sitter's standard
list or Helix's Atom-style hierarchy.
Specifically:
* tree-sitter "standard capture names"
(3f44b89685/highlight/src/lib.rs (L20-L72)):
- `@parameter` -> `@variable.parameter`
- `@field` -> `@variable.member`
- `@namespace` -> `@module`
- `@float` -> `@number.float`
- `@symbol` -> `@string.special.symbol`
- `@string.regex` -> `@string.regexp`
- `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below)
- `@text.title` -> `@markup.heading`
- `@text.literal` -> `@markup.raw`
- `@text.reference` -> `@markup.link`
- `@text.uri` -> `@markup.link.url` (in markup links)
- `@string.special` -> `@markup.link.label` (non-url links)
- `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`)
* Helix captures
(https://docs.helix-editor.com/master/themes.html#syntax-highlighting):
- `@method` -> `@function.method`
- `@method.call` -> `@function.method.call`
- `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}`
- `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}`
- `@text.uri` -> `@string.special.url` (outside markup)
- `@preproc` -> `@keyword.directive`
- `@define` -> `@keyword.directive`(`.define`?)
- `@storageclass` -> `@keyword.storage`
- `@conditional` -> `@keyword.conditional`
- `@debug` -> `@keyword.debug`
- `@exception` -> `@keyword.exception`
- `@include` -> `@keyword.import`
- `@repeat` -> `@keyword.repeat`
* cleanup
- remove some redundant `@conceal` (but still allow it for conceal-only patterns)
- remove obsolete `@error` (syntax linting is out of scope for this repo)
- sort, cleanup capture list in `CONTRIBUTING.md`
|
2024-01-19 16:58:37 +01:00 |
|
Christian Clason
|
10dd49958c
|
chore(tests): consistent captures
|
2024-01-19 16:58:37 +01:00 |
|
ObserverOfTime
|
17fae3f4a3
|
feat(injections): add printf format strings
|
2024-01-19 16:58:37 +01:00 |
|
Christian Clason
|
5b90ea2aba
|
feat(locals)!: switch to upstream captures
|
2024-01-19 16:58:37 +01:00 |
|
Christian Clason
|
f197a15b0d
|
revert "fix(config)!: always install parsers bundled with nvim"
|
2024-01-19 16:45:58 +01:00 |
|
GitHub
|
090880c0f1
|
Update parsers: scala, wing
|
2024-01-19 16:06:06 +09:00 |
|
Christian Clason
|
5037721ec5
|
fixup: proper union of tables
|
2024-01-18 17:08:20 +01:00 |
|
GitHub
|
503d0ccdee
|
Update parsers: gitcommit, markdown, markdown_inline, vimdoc, wing
|
2024-01-18 08:17:20 +01:00 |
|
Christian Clason
|
07c8c3d84f
|
fixup: empty ensure_installed
|
2024-01-17 11:07:20 +01:00 |
|
Christian Clason
|
7b326a0962
|
fixup: don't extend _with_ 'all'
|
2024-01-17 11:01:24 +01:00 |
|
GitHub
|
94cb036ba7
|
Update parsers: gleam, gomod, wing
|
2024-01-17 09:44:06 +01:00 |
|
Christian Clason
|
97ba59c6f5
|
fixup: ensure_installed can be 'all'
|
2024-01-16 19:05:28 +01:00 |
|
Christian Clason
|
fe89bf1719
|
fix(config)!: always install parsers bundled with nvim
|
2024-01-16 18:24:59 +01:00 |
|
GitHub
|
842507a578
|
Update parsers: perl, todotxt
|
2024-01-16 08:11:50 +01:00 |
|
Christian Clason
|
59d4c14a1a
|
feat!: bump minimum Nvim version to 0.9.2
required for empty injection fix
|
2024-01-15 13:02:20 +01:00 |
|
Bartek Łuka
|
295ab1da52
|
fix: link type in pattern matching correctly
|
2024-01-15 13:01:37 +01:00 |
|
GitHub
|
0746b1a13d
|
Update parsers: awk
|
2024-01-15 09:08:43 +01:00 |
|
GitHub
|
fcf843bf14
|
Update parsers: erlang, php, templ, wing
|
2024-01-14 15:27:06 +01:00 |
|
GitHub
|
8cd2b23017
|
Update parsers: templ, tlaplus
|
2024-01-07 13:28:41 +01:00 |
|
Christian Clason
|
f6483d1194
|
fix(php): adjust to parser refactor
|
2024-01-07 13:12:04 +01:00 |
|
GitHub
|
5032f9952a
|
Update parsers: ada, ruby
|
2024-01-06 11:31:09 +01:00 |
|
Calum Smith
|
49f1b9a7ef
|
highlights(html): character references (a.k.a. entities)
|
2024-01-05 16:58:46 +01:00 |
|
Christian Clason
|
9288d9b505
|
ci: bump actions to latest
|
2024-01-05 12:54:30 +01:00 |
|
GitHub
|
adf423a493
|
Update parsers: astro, php, ruby, templ, wing
|
2024-01-05 11:05:48 +01:00 |
|
Zhuofeng Wang
|
e277ca9dec
|
fix(markdown_inline): latex highlight injection (#5397)
The `injection.include-children` is needed in markdown_inline parser.
|
2024-01-05 10:58:35 +01:00 |
|
Riley Bruins
|
8ae4080c5b
|
fix(latex): highlight text functions
|
2024-01-04 20:07:31 +01:00 |
|
GitHub
|
0da349ed30
|
Update parsers: ada, ocaml, ocaml_interface, sql, wing
|
2024-01-03 18:26:58 +01:00 |
|
GitHub
|
3ef514b10b
|
Update parsers: scala, templ, v, wing
|
2024-01-03 11:31:39 +01:00 |
|
Christian Degnbol Madsen
|
65ef62092e
|
fix(julia): add missing capture of ":" in selected import
If writing a selected import, e.g. `using BSON: @load`, the colon isn't currently captured.
This change captures it as `@punctuation.delimiter`.
|
2024-01-02 11:43:08 +01:00 |
|
GitHub
|
e49f1e8ef3
|
Update parsers: nim, templ, wing
|
2023-12-30 11:08:24 +01:00 |
|
GitHub
|
362ebd3a21
|
Update parsers: perl, rst, v, wing
|
2023-12-29 11:05:47 +01:00 |
|
GitHub
|
7a2c6211d6
|
Update parsers: perl, scala, wing
|
2023-12-28 12:26:00 +01:00 |
|
GitHub
|
7d0b4756ab
|
Update parsers: nickel, nix, scala, v, wing
|
2023-12-27 11:32:57 +01:00 |
|
GitHub
|
27f68c0b6a
|
Update parsers: haskell, templ
|
2023-12-24 16:15:19 +09:00 |
|
Riley Bruins
|
374966b25c
|
fixup(luau): align @string.regex to the injections (#5829)
|
2023-12-24 14:00:32 +09:00 |
|
Riley Bruins
|
cd4de5f7b1
|
fix: cleanup luap injection queries
|
2023-12-23 22:26:02 +01:00 |
|
Riley Bruins
|
92572c0dfd
|
feat: more @string.regex highlights
|
2023-12-23 22:26:02 +01:00 |
|
GitHub
|
c4da794564
|
Update parsers: elm, wing
|
2023-12-23 11:18:04 +01:00 |
|
Riley Bruins
|
1c619f5f20
|
feat(luap): highlights more consistent with regex (#5819)
|
2023-12-23 11:40:10 +02:00 |
|
Christian Degnbol Madsen
|
454c3a9ba8
|
fix(julia): pipe function highlight (#5815)
In Julia when piping into a function the function should be highlighted as a function call, and not a variable.
|
2023-12-22 12:24:04 +02:00 |
|
GitHub
|
d5842ebca8
|
Update parsers: apex, scala, soql, sosl, tlaplus, wing
|
2023-12-22 16:11:09 +09:00 |
|
Jędrzej Boczar
|
d496c5e08e
|
fix(cpp): incorrect indent of class with opening { on new line (#5811)
|
2023-12-22 05:49:13 +09:00 |
|
Christian Clason
|
d2d3df8613
|
vimdoc: add note, warning, deprecated (#5817)
|
2023-12-21 22:29:31 +09:00 |
|
Ahnaf Rafi
|
c153019e11
|
Add @nospell annotation to label definitions and references
|
2023-12-21 10:55:50 +01:00 |
|
GitHub
|
23cc2cd85c
|
Update parsers: beancount, wing
|
2023-12-21 15:57:33 +09:00 |
|
Marc Jakobi
|
732c8cb0b4
|
highlights(haskell): add fail to exception highlights
|
2023-12-20 13:08:06 +01:00 |
|
Marc Jakobi
|
96e01877b8
|
highlights(haskell): namespaced string quasiquote
|
2023-12-20 13:07:44 +01:00 |
|
GitHub
|
cdb2ec999c
|
Update parsers: gleam, styled, v, wing
|
2023-12-20 16:36:55 +09:00 |
|
Github Actions
|
0dfbf5e48e
|
Update README
|
2023-12-19 14:04:53 +01:00 |
|
Mark Skelton
|
a0b815497b
|
feat: add tree-sitter-styled (#5735)
* Add styled parser
* Add queries
* Update highlights
* Remove unnecessary highlights
* Update injections to use the styled grammar
* Remove requires npm
|
2023-12-19 21:53:00 +09:00 |
|