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

Highlight string interpolation #3

Open
yuyichao opened this issue Mar 31, 2016 · 6 comments
Open

Highlight string interpolation #3

yuyichao opened this issue Mar 31, 2016 · 6 comments

Comments

@yuyichao
Copy link
Contributor

Ref JuliaLang/julia#9025

ruby-mode does this, it would be nice to do it in julia-mode too. E.g. println("hello $user") should highlight $user differently.

Also JuliaLang/julia#9025 (comment)

This seems to require parsing arbitrary expressions. I would say not worth it just for this.

@phipsgabler
Copy link

I'm really for at least a simple variant of this. As long $ is not "escaping", it can be really confusing:

Selection_004

This actually prints the literal string , expr.head, ( (what I intended was of course $(...something...)().

@nesteiner
Copy link

why not check how vscode do that ? it highlight string interpolation

@tpapp
Copy link
Collaborator

tpapp commented Feb 15, 2023

I think VS Code uses tree sitter. That's what we aim to do here too (cf #174 for progress).

@nesteiner
Copy link

so how is the progress ?

@tpapp
Copy link
Collaborator

tpapp commented Feb 15, 2023

Try it out at https://github.com/ronisbr/julia-ts-mode.

@chriselrod
Copy link

I have been trying julia-ts-mode out. This works.

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

No branches or pull requests

5 participants