Skip to content

Commit b1d3bdc

Browse files
committed
🔧 Highlight func def with field expressions
Previously, the following function definition was not being highlighted: function Propagators.propagate!() Propagators.propagate!() = ...
1 parent a1592de commit b1d3bdc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

julia-ts-mode.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,14 @@ Otherwise, the indentation is:
165165
:feature 'definition
166166
`((function_definition
167167
name: (identifier) @font-lock-function-name-face)
168+
(function_definition
169+
name: (field_expression (identifier) "." (identifier) @font-lock-function-name-face))
168170
(macro_definition
169171
name: (identifier) @font-lock-function-name-face)
170172
(short_function_definition
171-
name: (identifier) @font-lock-function-name-face))
173+
name: (identifier) @font-lock-function-name-face)
174+
(short_function_definition
175+
name: (field_expression (identifier) "." (identifier) @font-lock-function-name-face)))
172176

173177
:language 'julia
174178
:feature 'error

0 commit comments

Comments
 (0)