-
Notifications
You must be signed in to change notification settings - Fork 93
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
Module name isn't highlighted in some cases #224
Comments
Thanks for reporting |
@syohex I guess you have a solution for this one? ;-) |
I suppose diff --git a/elixir-mode.el b/elixir-mode.el
index 77a0f6b..d4c0a3c 100644
--- a/elixir-mode.el
+++ b/elixir-mode.el
@@ -496,6 +496,10 @@ just return nil."
#'elixir-syntax-propertize-function)
(set (make-local-variable 'imenu-generic-expression)
elixir-imenu-generic-expression)
+
+ (modify-syntax-entry ?| "." elixir-mode-syntax-table)
+ (modify-syntax-entry ?& "." elixir-mode-syntax-table)
+
(smie-setup elixir-smie-grammar 'verbose-elixir-smie-rules
:forward-token 'elixir-smie-forward-token
:backward-token 'elixir-smie-backward-token)) Sreenshot with above patch is here. |
That sounds like a good idea, would you like to make a PR? Syohei YOSHIDA notifications@github.com schrieb am Mo., 19. Okt. 2015
|
👍 |
Thanks again for your help 👍 |
Module names aren't highlighted if preceded by a pipe
|
character. This is the minimal example to reproduce the behaviour:and this is a screenshot of the behaviour in action:
The text was updated successfully, but these errors were encountered: