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
48186177
Commit
48186177
authored
Jul 13, 2013
by
Dmitry Gutov
Browse files
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Simplify the last
change.
parent
f7306b81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
lisp/progmodes/ruby-mode.el
lisp/progmodes/ruby-mode.el
+2
-5
No files found.
lisp/progmodes/ruby-mode.el
View file @
48186177
...
...
@@ -1848,11 +1848,8 @@ See `font-lock-syntax-table'.")
'
(
"\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+"
0
font-lock-variable-name-face
)
;; constants
'
(
"\\(?:\\_<\\|::\\)\\([A-Z]+\\(\\w\\|_\\)*\\)\\(?:\\_>[^\(]\\|::\\|\\'\\)"
1
(
progn
(
when
(
eq
?:
(
char-before
))
(
forward-char
-2
))
font-lock-type-face
))
'
(
"\\(?:\\_<\\|::\\)\\([A-Z]+\\(\\w\\|_\\)*\\)"
1
(
unless
(
eq
?\(
(
char-after
))
font-lock-type-face
))
'
(
"\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]"
2
font-lock-constant-face
)
;; expression expansion
'
(
ruby-match-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