Fix Broken Attribute Highlights (#5349)

* Update highlights.scm

* Update highlights.scm

* Update themes.md
pull/5457/head
Chickenkeeper 2 years ago committed by GitHub
parent c4b0eb8356
commit 486c3ab0d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,6 +140,8 @@ We use a similar set of scopes as
- `type` - Types - `type` - Types
- `builtin` - Primitive types provided by the language (`int`, `usize`) - `builtin` - Primitive types provided by the language (`int`, `usize`)
- `enum`
- `variant`
- `constructor` - `constructor`
- `constant` (TODO: constant.other.placeholder for %v) - `constant` (TODO: constant.other.placeholder for %v)
@ -202,6 +204,8 @@ We use a similar set of scopes as
- `namespace` - `namespace`
- `special`
- `markup` - `markup`
- `heading` - `heading`
- `marker` - `marker`

@ -231,13 +231,6 @@
((identifier) @type ((identifier) @type
(#match? @type "^[A-Z]")) (#match? @type "^[A-Z]"))
(attribute
(identifier) @_macro
arguments: (token_tree (identifier) @constant.numeric.integer)
(#eq? @_macro "derive")
)
@special
; ------- ; -------
; Functions ; Functions
; ------- ; -------
@ -269,6 +262,12 @@
; Macros ; Macros
; --- ; ---
(attribute
(identifier) @special
arguments: (token_tree (identifier) @type)
(#eq? @special "derive")
)
(attribute (attribute
(identifier) @function.macro) (identifier) @function.macro)
(attribute (attribute

Loading…
Cancel
Save