Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
18d801db
Commit
18d801db
authored
Jan 28, 2013
by
Dmitry Gutov
Browse files
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
nested constants, too. \_< broke that.
parent
a324b8c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/progmodes/ruby-mode.el
lisp/progmodes/ruby-mode.el
+1
-1
No files found.
lisp/ChangeLog
View file @
18d801db
...
...
@@ -4,6 +4,8 @@
checks made superfluous by the \_< operator.
* progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe
temporarily) broken indentation.
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
nested constants, too. \_< broke that.
2013-01-27 Nobuyoshi Nakada <nobu@ruby-lang.org>
...
...
lisp/progmodes/ruby-mode.el
View file @
18d801db
...
...
@@ -1613,7 +1613,7 @@ See `font-lock-syntax-table'.")
'
(
"\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+"
0
font-lock-variable-name-face
)
;; constants
'
(
"\\
_<
\\([A-Z]+\\(\\w\\|_\\)*\\)"
'
(
"\\
(?:\\_<\\|::\\)
\\([A-Z]+\\(\\w\\|_\\)*\\)"
1
font-lock-type-face
)
'
(
"\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]"
2
font-lock-constant-face
)
;; expression expansion
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment