Phạm Huy Hoàng
|
722617e672
|
refactor(format): drop extra indentation for field
|
2024-03-21 15:51:26 +01:00 |
|
ObserverOfTime
|
fa38f4e6f9
|
fix(highlights): improve member/property distinction
|
2024-01-19 16:58:37 +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
|
5b90ea2aba
|
feat(locals)!: switch to upstream captures
|
2024-01-19 16:58:37 +01:00 |
|
Jaehwang Jung
|
9567185621
|
feat: @spell on comments
|
2023-09-12 17:34:58 +02:00 |
|
Vadim Kazakov
|
0ae494269a
|
feat: add more support for glimmer (#4935)
* add indents, locals and folds
|
2023-06-13 00:54:30 +09:00 |
|
Amaan Qureshi
|
85330918f0
|
perf: remove match where possible
|
2023-04-21 18:24:17 -04:00 |
|
Lewis Russell
|
011ac894ec
|
Prefer lua-match over match
as string.find is much quicker than vim.regex:match*
|
2021-11-23 10:02:06 +01:00 |
|
Dundar Göc
|
6a4fdb317d
|
chore: fix typos
|
2021-11-02 23:47:48 +01:00 |
|
Joakker
|
c699cc2e47
|
Use #any-of? instead of #match? where posible
|
2021-06-25 00:22:48 +02:00 |
|
NullVoxPopuli
|
6df2368242
|
Update highlights.scm
|
2021-04-07 05:33:51 +02:00 |
|
NullVoxPopuli
|
76c1cab7ab
|
Update glimmer queries from plugin
Maybe there is a way to read this file from the plugin directly?
|
2021-03-18 04:03:53 +01:00 |
|
Stephan Seitz
|
6cd211f647
|
Mark several invalid queries
|
2021-03-16 18:52:43 +01:00 |
|
Stephan Seitz
|
e22b5ee6ef
|
highlights(glimmer): add copyright note
|
2021-03-01 01:02:09 +01:00 |
|
NullVoxPopuli
|
cb2de4e172
|
add back delimiter
|
2021-03-01 01:02:09 +01:00 |
|
NullVoxPopuli
|
90415552c0
|
Copy highlights suggestion from @theHamsta
|
2021-03-01 01:02:09 +01:00 |
|