Riley Bruins
|
9d68e876cc
|
feat: more comment injections
|
2024-06-15 10:40:34 +02:00 |
|
Riley Bruins
|
f58cae6c22
|
feat: more @keyword.type captures
|
2024-05-01 09:59:50 +02:00 |
|
Jaehwang Jung
|
dccf31f9b1
|
feat(highlights)!: @keyword.storage → @keyword.modifier
|
2024-03-16 20:51:16 +08:00 |
|
Jaehwang Jung
|
998b230a77
|
feat(highlights)!: keyword @type.qualifier → @keyword.modifier
|
2024-03-16 20:51:16 +08:00 |
|
Pham Huy Hoang
|
57a8acf0c4
|
chore: query formatting
|
2024-01-19 16:58:37 +01:00 |
|
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 |
|
Amaan Qureshi
|
85330918f0
|
perf: remove match where possible
|
2023-04-21 18:24:17 -04:00 |
|
Amaan Qureshi
|
5a87bc98da
|
feat: add @comment.documentation where applicable
|
2023-03-05 17:15:32 -05:00 |
|
Amaan Qureshi
|
33ba346e60
|
feat!: add @keyword.coroutine capture
|
2023-03-03 07:07:52 -08:00 |
|
dundargoc
|
4612212c72
|
docs: fix typos
|
2023-02-23 11:39:43 -08:00 |
|
ObserverOfTime
|
1ba1c5c1a7
|
highlights(vala): fix captures
|
2022-11-26 13:17:51 +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 |
|
Princeton Ferro
|
f3c309db4e
|
feat(vala)!: switch to @vala-lang parser
|
2022-07-09 16:22:51 +02:00 |
|
Mateus Melchiades
|
cbfa53db22
|
highlights(vala): Reflect upstream refactor
|
2022-03-07 15:51:08 +01:00 |
|
Mateus Melchiades
|
84e4e0237f
|
highlights(vala): Re-update highlights and lockfile
|
2022-02-26 15:12:17 +01:00 |
|
Mateus B. Melchiades
|
6e29323007
|
Add missing punctuation in vala's highlight
|
2022-02-11 18:24:39 +01:00 |
|
Mateus Melchiades
|
ad1bc3577c
|
Improve Vala syntax highlight
|
2022-02-11 18:24:39 +01:00 |
|
Stephan Seitz
|
7289e801f7
|
highlights(vala): add "=" and ":" to highlights
|
2022-01-29 18:43:44 +01:00 |
|
Mateus B. Melchiades
|
461da95b7b
|
Add brackets to Vala highlights
|
2022-01-29 18:43:44 +01:00 |
|
Mateus B. Melchiades
|
cb7ea44a7b
|
Update Vala highlights
|
2022-01-29 18:43:44 +01:00 |
|
Mateus B. Melchiades
|
3f046500ae
|
Simplify vala highlights.scm
|
2022-01-29 18:43:44 +01:00 |
|
Mateus Melchiades
|
5fc4cb5d2d
|
Vala language support
|
2022-01-29 18:43:44 +01:00 |
|