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

Fontification issues for lines containing double colons #37

Closed
josteink opened this issue Mar 10, 2016 · 0 comments
Closed

Fontification issues for lines containing double colons #37

josteink opened this issue Mar 10, 2016 · 0 comments
Labels

Comments

@josteink
Copy link
Owner

Take the following example:

pc->pc: This line highlight's "pc" just fine
pc->pc: This line doesn't, because of a double : sign.
pc->pc: But next line is just fine again.

This is caused by the following fontification rule not being greedy enough:

"^[[:space:]]*\\([^
-]+\\)\\(-\\(?:->-?\\|>[*+-]?\\)\\)\\(.+\\):.*$"
  (3 font-lock-variable-name-face)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant