Navigation Menu

Skip to content

Commit

Permalink
Fix bug where ruby keywords in comments would be highlighted.
Browse files Browse the repository at this point in the history
Not sure how this is the fix. The documentation basically said I was
doing the right thing and this seems to be the exact opposite.

Cribbed off of ruby-mode for this fix. 🤷
  • Loading branch information
zenspider committed Jun 27, 2020
1 parent b15e372 commit f2469f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enh-ruby-mode.el
Expand Up @@ -460,7 +460,7 @@ Warning: does not play well with command ‘electric-indent-mode’."
'enh-ruby-add-log-current-method)

(setq-local font-lock-keywords enh-ruby-font-lock-keywords)
(setq font-lock-defaults '((enh-ruby-font-lock-keywords) t))
(setq font-lock-defaults '((enh-ruby-font-lock-keywords) nil))
(setq indent-tabs-mode enh-ruby-indent-tabs-mode)
(setq imenu-create-index-function 'enh-ruby-imenu-create-index)

Expand Down

0 comments on commit f2469f3

Please sign in to comment.