Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
junyixu opened this issue Jan 9, 2024 · 3 comments
Open

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

junyixu opened this issue Jan 9, 2024 · 3 comments

Comments

@junyixu
Copy link

junyixu commented Jan 9, 2024

image

@carlobaldassi
Copy link
Contributor

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
Copy link
Author

junyixu commented Jan 12, 2024

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
Copy link
Contributor

You can try

syntax keyword JuliaFunction containedin=@JuliaExpressions println other_functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants