JuliaEditorSupport / julia-vim

Vim support for Julia.
http://julialang.org/
Other
756 stars 94 forks source link

julia-vim-extra-colors doesn't work in begin ... end #313

Open junyixu opened 10 months ago

junyixu commented 10 months ago

image

carlobaldassi commented 10 months ago

I'm not sure how the first "println" in your example is highlighted, the syntax specifications in julia-vim do not highlight it in any way. The extra-colors are only supposed to support parentheses, semicolons, commas, function calls (which are things like println("hello"), where there is a parenthesis after an identifier, the pipe syntax is not recognized). In my tests they seem to work just fine within begin...end blocks.

junyixu commented 10 months ago

I'm not sure how the first "println" in your example is highlighted

hi link juliaParDelim Delimiter
hi link juliaSemicolon Operator
hi link juliaFunctionCall Function
syntax keyword juliaFunction println other_functions

So is it possible to highlight function in pipe syntax within begin...end blocks?

carlobaldassi commented 7 months ago

You can try

syntax keyword JuliaFunction containedin=@JuliaExpressions println other_functions