This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix ruby-mode.el not to highlight capitalized symbols as constants.

  • Loading branch information...
technomancy committed Jan 12, 2009
1 parent 61618f2 commit 83963f5099f9ddea0c4a59f61629b462a8bd5ceb
Showing with 2 additions and 2 deletions.
  1. +1 −1 util/ruby-compilation.el
  2. +1 −1 util/ruby-mode.el
View
@@ -7,7 +7,7 @@
;; Version: 0.5
;; Created: 2008-08-23
;; Keywords: test convenience
-;; Package-Requires: (("ruby-mode") ("inf-ruby"))
+;; Package-Requires: ((ruby-mode "1.0") (inf-ruby "2.0"))
;;; License:
View
@@ -1391,7 +1391,7 @@ See `font-lock-syntax-table'.")
'("\\(^\\|[[ \t\n<+(,=]\\)\\(%[xrqQwW]?\\([^<[{(a-zA-Z0-9 \n]\\)[^\n\\\\]*\\(\\\\.[^\n\\\\]*\\)*\\(\\3\\)\\)"
(2 font-lock-string-face))
;; constants
- '("\\(^\\|[^_]\\)\\b\\([A-Z]+\\(\\w\\|_\\)*\\)"
+ '("\\(^\\|[^_:]\\)\\b\\([A-Z]+\\(\\w\\|_\\)*\\)"
2 font-lock-type-face)
;; symbols
'("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|\\[\\]=?\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"

0 comments on commit 83963f5

Please sign in to comment.