Robert Horvath
6935286b4e
fix(leo): intentation fix of parenthesis
2025-01-03 19:17:21 +01:00
Robert Horvath
1087b183a7
fix(leo): indent } now properly dedents
2024-12-30 17:55:35 +01:00
Robert Horvath
f0f48e0290
feat(leo): highlights casting and record expressions added
2024-12-30 17:55:35 +01:00
nvim-treesitter-bot[bot]
9ac3931bf6
bot(lockfile): update http, ini, leo
2024-08-30 08:35:48 +00:00
r001
5071ca777c
fix(leo): update queries ( #7086 )
...
* small bugfixes of variables, records, and struct highlighting
* lockfile.json update
* fixed @constant bug, and added self.address, and network.id as builtins to highlight
* fixed associated function calls
2024-08-28 16:51:27 +09:00
r001
d0c5116fa0
feat(leo): add string literals ( #7084 )
2024-08-26 09:37:52 +02:00
r001
f9b76256c3
feat(leo): async keyword ( #7083 )
...
* async keyword added
* lockfile update
2024-08-25 21:24:54 -07:00
Omar Valdez
51bba660a8
refactor(queries): Remove quotes from properties in set! directive
2024-07-28 11:43:41 +02:00
Riley Bruins
f58cae6c22
feat: more @keyword.type captures
2024-05-01 09:59:50 +02:00
Jaehwang Jung
998b230a77
feat(highlights)!: keyword @type.qualifier → @keyword.modifier
2024-03-16 20:51:16 +08:00
Phạm Huy Hoàng
d198a75e2c
Fixup format ( #5934 )
...
* fix(format): newline between top-level field defs
* fixup: newline between node and comment
* fixup: optimize pattern
2024-01-20 18:47:56 +09: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
r001
b6b9ca448b
indents added new language highlights added ( #5777 )
2023-12-10 16:16:24 +09:00
r001
0b50cf1592
fix(leo): highlights fixes ( #5563 )
...
* make sure affine_group has priority, so parens and comma will not be miscolored; added `annotation` as @attribute
* `then` is not used as conditional, so moved to keywords
* finalize function highlight added
* differentiate between constant and variable variable identifiers
2023-10-23 19:15:49 +09:00
r001
99988f6eb7
feat: leo parser and queries ( #5542 )
2023-10-22 10:23:02 +09:00