Dennis van den Berg
|
aece106233
|
feat(angular): update highlights for template literals
|
2025-03-29 10:52:22 +01:00 |
|
ricardo.demeterko
|
98a33cc524
|
feat(angular): update highlight query
|
2024-10-02 15:37:24 +02:00 |
|
Dennis van den Berg
|
0d5e1214a5
|
feat: add indentation queries for angular
|
2024-07-17 09:52:47 +09:00 |
|
Dennis van den Berg
|
276c343b6b
|
feat!: update angular parser to new major
BREAKING CHANGE: This changes the capture groups for all Control Flow
statements.
|
2024-07-17 09:52:47 +09:00 |
|
Dennis van den Berg
|
121d0c4c67
|
feat(angular): Add support for ICU expressions. (#6288)
|
2024-04-30 19:14:54 +09:00 |
|
Dennis van den Berg
|
ef267f0c28
|
fix: add highlights for static member expression (#6393)
|
2024-04-12 14:11:01 +02:00 |
|
Phạm Huy Hoàng
|
722617e672
|
refactor(format): drop extra indentation for field
|
2024-03-21 15:51:26 +01:00 |
|
Dennis van den Berg
|
212b7a504c
|
fix(angular): typo in capture name (#6249)
|
2024-03-04 13:05:53 +00:00 |
|
Phạm Huy Hoàng
|
62b0bb4f24
|
feat(format): extra newline after modeline
|
2024-02-29 23:05:30 +09:00 |
|
Dennis van den Berg
|
3722d5d772
|
fix(angular): nullish coalescing operator in Angular templates (#6052)
|
2024-02-06 10:30:01 +01:00 |
|
Dennis van den Berg
|
2fb2100fed
|
feat(angular)!: switch to parser supporting v17 (#5779)
|
2024-01-27 12:17:25 +01: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 |
|
Christian Clason
|
274370e703
|
fixup: use any-of instead of vim-match
|
2023-11-26 15:24:26 +01:00 |
|
Christian Clason
|
1e74c34b66
|
feat: add angular parser and queries
|
2023-11-26 15:24:26 +01:00 |
|