mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-11 16:07:00 +03:00
Fix Broken Attribute Highlights (#5349)
* Update highlights.scm * Update highlights.scm * Update themes.md
This commit is contained in:
parent
c4b0eb8356
commit
486c3ab0d5
@ -140,6 +140,8 @@ #### Syntax highlighting
|
||||
|
||||
- `type` - Types
|
||||
- `builtin` - Primitive types provided by the language (`int`, `usize`)
|
||||
- `enum`
|
||||
- `variant`
|
||||
- `constructor`
|
||||
|
||||
- `constant` (TODO: constant.other.placeholder for %v)
|
||||
@ -202,6 +204,8 @@ #### Syntax highlighting
|
||||
|
||||
- `namespace`
|
||||
|
||||
- `special`
|
||||
|
||||
- `markup`
|
||||
- `heading`
|
||||
- `marker`
|
||||
|
@ -231,13 +231,6 @@
|
||||
((identifier) @type
|
||||
(#match? @type "^[A-Z]"))
|
||||
|
||||
(attribute
|
||||
(identifier) @_macro
|
||||
arguments: (token_tree (identifier) @constant.numeric.integer)
|
||||
(#eq? @_macro "derive")
|
||||
)
|
||||
@special
|
||||
|
||||
; -------
|
||||
; Functions
|
||||
; -------
|
||||
@ -269,6 +262,12 @@
|
||||
; Macros
|
||||
; ---
|
||||
|
||||
(attribute
|
||||
(identifier) @special
|
||||
arguments: (token_tree (identifier) @type)
|
||||
(#eq? @special "derive")
|
||||
)
|
||||
|
||||
(attribute
|
||||
(identifier) @function.macro)
|
||||
(attribute
|
||||
|
Loading…
Reference in New Issue
Block a user