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

Syntax highlighting inside quote block #118

Open
lodygaw opened this issue Sep 13, 2022 · 0 comments
Open

Syntax highlighting inside quote block #118

lodygaw opened this issue Sep 13, 2022 · 0 comments

Comments

@lodygaw
Copy link

lodygaw commented Sep 13, 2022

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

1 participant