mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 05:27:07 +04:00
parent
53b70d821e
commit
e232333d4a
@ -271,9 +271,9 @@
|
||||
; ---
|
||||
; Macros
|
||||
; ---
|
||||
(meta_item
|
||||
(attribute
|
||||
(identifier) @function.macro)
|
||||
(attr_item
|
||||
(attribute
|
||||
[
|
||||
(identifier) @function.macro
|
||||
(scoped_identifier
|
||||
|
@ -51,13 +51,14 @@
|
||||
.
|
||||
(_) @expr-start
|
||||
value: (_) @indent
|
||||
alternative: (_)? @indent
|
||||
(#not-same-line? @indent @expr-start)
|
||||
(#set! "scope" "all")
|
||||
)
|
||||
(if_let_expression
|
||||
(if_expression
|
||||
.
|
||||
(_) @expr-start
|
||||
value: (_) @indent
|
||||
condition: (_) @indent
|
||||
(#not-same-line? @indent @expr-start)
|
||||
(#set! "scope" "all")
|
||||
)
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
(; #[test]
|
||||
(attribute_item
|
||||
(meta_item
|
||||
(attribute
|
||||
(identifier) @_test_attribute))
|
||||
; allow other attributes like #[should_panic] and comments
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user