Skip to content

Syntax highlighting inside quote block #118

@lodygaw

Description

@lodygaw

Hi,

Recently I started to explore metaprogramming in Julia thus very fast I get familiar with using quote ... end blocks. Although I think that I understand why the syntax highlighting inside quote is somewhat limited, I would be glad to have full syntax highlighting inside (especially including function call highlighting), like in begin.

Example:

begin
  foo() #highlighted
end

quote
  foo() # not highlighted
end

I am looking for some help on how to make this happen as I wasn't able to spot the right rule by myself.

The difference between scopes of foo keyword:
Inside begin:

source.julia 
meta.function-call.julia 
variable.function.julia 
meta.generic-name.julia

Inside quote:

source.julia 
meta.quote.julia 
meta.generic-name.julia

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