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 triple-quoted strings and characters. #9152

Merged
merged 5 commits into from
Nov 30, 2014

Conversation

Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Nov 25, 2014

These commits improve julia-mode's string and character highlighting. We now correctly highlight all legal Julia character literals. I've also added proper support for highlighting triple quoted strings.

My refactoring also ensures we always set string delimeters as string syntax, which fixes #8714.

Previously, '\U10ffff' was not highlighted correctly.
It's an expensive function, and julia-in-string handles characters
anyway.
This is warning is harmless (I'm not aware of any plans to remove
`font-lock-syntactic-keywords`) but it has caused concern amongst users.

See JuliaLang#9042
@JeffBezanson
Copy link
Sponsor Member

Sweet!

@Wilfred
Copy link
Contributor Author

Wilfred commented Nov 28, 2014

@JeffBezanson I'd love to see this and #9024 merged. Are there any changes you'd like to me to make, or are you happy with them?

JeffBezanson added a commit that referenced this pull request Nov 30, 2014
julia-mode.el: Highlight triple-quoted strings and characters.
@JeffBezanson JeffBezanson merged commit 34cb0fd into JuliaLang:master Nov 30, 2014
@Wilfred
Copy link
Contributor Author

Wilfred commented Dec 1, 2014

Thank you! :)

@Wilfred Wilfred deleted the wh/triple_quoted_highlighting branch December 1, 2014 23:53
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

Successfully merging this pull request may close these issues.

julia-mode.el: String highlighting is confused with ...
3 participants