Created
January 30, 2012 17:44
-
-
Save svs/1705618 to your computer and use it in GitHub Desktop.
ruby-mode.el differentiate symbols from ordinary variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff | |
diff --git a/ruby-mode.el b/ruby-mode.el | |
index b556e95..838d811 100644 | |
--- a/ruby-mode.el | |
+++ b/ruby-mode.el | |
@@ -1169,7 +1169,7 @@ balanced expression is found." | |
2 font-lock-type-face) | |
;; symbols | |
'("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|\\[\\]=?\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\ | |
- 2 font-lock-reference-face) | |
+ 2 font-lock-string-face) | |
;; expression expansion | |
'("#\\({[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\|\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+\\)" | |
0 font-lock-variable-name-face t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment