julia-vim icon indicating copy to clipboard operation
julia-vim copied to clipboard

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

Open junyixu opened this issue 1 year ago • 3 comments

image

junyixu avatar Jan 09 '24 01:01 junyixu

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.

carlobaldassi avatar Jan 12 '24 09:01 carlobaldassi

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?

junyixu avatar Jan 12 '24 17:01 junyixu

You can try

syntax keyword JuliaFunction containedin=@JuliaExpressions println other_functions

carlobaldassi avatar Apr 23 '24 10:04 carlobaldassi