correct highlight order
; var.field
(SuffixOp (IDENTIFIER) @field)
-; var.func().func().field
-(SuffixExpr
- (SuffixOp (IDENTIFIER) @function)
- .
- (FnCallArguments)
+(ParamDecl
+ (IDENTIFIER)? @parameter
+ [
+ (ParamType (SuffixExpr (IDENTIFIER) @type))
+ (ParamType (SuffixExpr (IDENTIFIER) @variable (SuffixOp)))
+ ]
)
;; assume TitleCase is a type
(#match? @function "^[a-z]+([A-Z][a-z0-9]+)+$")
)
+; var.func().func().field
+(SuffixExpr
+ (SuffixOp (IDENTIFIER) @function)
+ .
+ (FnCallArguments)
+)
+
; functionn decl
(FnProto
(IDENTIFIER) @function
("!")? @exception
)
-(ParamDecl
- (IDENTIFIER)? @parameter
- (ParamType (SuffixExpr (IDENTIFIER) @type))?
-)
-
;struct, enum, union
+(ContainerDecl
(ContainerMembers
[
;method decl
; )
]
)
+)
;enum and tag union field is constant
(
