Skip to content

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

Open

Description

@junyixu

image

Activity

  1. carlobaldassi commented on Jan 12, 2024

    @carlobaldassi
    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.

  2. junyixu commented on Jan 12, 2024

    @junyixu
    Author

    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?

  3. carlobaldassi commented on Apr 23, 2024

    @carlobaldassi
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions