Riley Bruins
|
d5a1c2b0c8
|
feat: standardize and document export keywords
Many export keywords are captured as `@keyword.import`. This commit
makes it so they are all captured like that, and mentions it in the
documentation.
|
2024-05-13 09:16:31 +02:00 |
|
Riley Bruins
|
f58cae6c22
|
feat: more @keyword.type captures
|
2024-05-01 09:59:50 +02:00 |
|
Riley Bruins
|
f0e91fd9b9
|
feat(qml): add back ecma inheritance
Fixed after the grammar dependencies were updated. This time inheritance
is given to the injections queries also.
|
2024-04-25 08:23:59 +02:00 |
|
Phạm Huy Hoàng
|
722617e672
|
refactor(format): drop extra indentation for field
|
2024-03-21 15:51:26 +01:00 |
|
Jaehwang Jung
|
998b230a77
|
feat(highlights)!: keyword @type.qualifier → @keyword.modifier
|
2024-03-16 20:51:16 +08:00 |
|
Amaan Qureshi
|
515b00598a
|
chore(qmljs): temporarily remove the ecma inherit
|
2024-01-31 22:31:50 -05: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 |
|
Jaehwang Jung
|
9567185621
|
feat: @spell on comments
|
2023-09-12 17:34:58 +02:00 |
|
Amaan Qureshi
|
85330918f0
|
perf: remove match where possible
|
2023-04-21 18:24:17 -04:00 |
|
ObserverOfTime
|
920c14c33b
|
highlights(qmljs): fix captures
|
2022-11-26 13:17:51 +02:00 |
|
ShootingStarDragons
|
73cd1f189b
|
feat(qmljs): boolean
boolean is not in the right color, so fix it
Log: fix the color of boolean for qmljs
|
2022-09-02 18:54:45 -07:00 |
|
Access
|
acd4821bc1
|
add ui_binding to fold (#3191)
|
2022-07-17 15:12:19 +02:00 |
|
Access
|
d4eadbcaf1
|
Fix and add some highlight (#3168)
|
2022-07-12 11:10:08 +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 |
|