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-mode.el: Highlight string interpolation #9025

Closed
Wilfred opened this issue Nov 15, 2014 · 4 comments
Closed

julia-mode.el: Highlight string interpolation #9025

Wilfred opened this issue Nov 15, 2014 · 4 comments

Comments

@Wilfred
Copy link
Contributor

Wilfred commented Nov 15, 2014

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

@PythonNut
Copy link
Contributor

Will this extend to arbitrary expressions, or just simple substitutions?

@JeffBezanson
Copy link
Member

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

@Wilfred
Copy link
Contributor Author

Wilfred commented Nov 18, 2014

Some useful notes in this ticket: #164

I'm game to try this unless there are any objections. However, we have bigger string highlighting problems at the moment (triple-quoted strings don't work).

A related easy win would be to highlight regexp metacharacters, something like this:

emacs_regexp_metachars

This doesn't require any parsing sophistication. Julia's syntax is nice here because r".*" is a proper Regex type, whereas in Python it's just a string with different lexing rules.

@yuyichao
Copy link
Contributor

Moved to JuliaEditorSupport/julia-emacs#3

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

5 participants