mirror of https://github.com/helix-editor/helix
fix: highlight `floor` in `|> float.floor` as function in Gleam (#13813)
parent
250af462cd
commit
171dfc60e5
|
@ -40,6 +40,7 @@
|
||||||
((function_call
|
((function_call
|
||||||
function: (identifier) @function)
|
function: (identifier) @function)
|
||||||
(#is-not? local))
|
(#is-not? local))
|
||||||
|
; highlights `a` in `|> a` as function
|
||||||
((binary_expression
|
((binary_expression
|
||||||
operator: "|>"
|
operator: "|>"
|
||||||
right: (identifier) @function)
|
right: (identifier) @function)
|
||||||
|
@ -186,3 +187,10 @@
|
||||||
; affects e.g. `replace` in `string.replace("+", "-")`
|
; affects e.g. `replace` in `string.replace("+", "-")`
|
||||||
; without this, it would be highlighted as a field instead of function
|
; without this, it would be highlighted as a field instead of function
|
||||||
(function_call (field_access (label) @function))
|
(function_call (field_access (label) @function))
|
||||||
|
|
||||||
|
; highlights `floor` in `|> float.floor` as function
|
||||||
|
(binary_expression
|
||||||
|
left: (_) "|>"
|
||||||
|
right: (field_access
|
||||||
|
record: (identifier) "."
|
||||||
|
field: (label) @function))
|
||||||
|
|
Loading…
Reference in New Issue