From: Dmitry Gutov Date: Mon, 7 Mar 2016 02:02:34 +0000 (+0200) Subject: Allow splat operator before percent literal X-Git-Tag: emacs-25.0.93~119 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f50bc04a6824b1164bbc9ee11420db5f625e090e;p=emacs.git Allow splat operator before percent literal * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Allow splat operator before percent literal. --- diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index c1001450bda..2ecda9530aa 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -1901,7 +1901,7 @@ It will be properly highlighted even when the call omits parens.") 'syntax-table (string-to-syntax "\"")) (ruby-syntax-propertize-heredoc end)))) ;; Handle percent literals: %w(), %q{}, etc. - ((concat "\\(?:^\\|[[ \t\n<+(,=]\\)" ruby-percent-literal-beg-re) + ((concat "\\(?:^\\|[[ \t\n<+(,=*]\\)" ruby-percent-literal-beg-re) (1 (unless (nth 8 (save-excursion (syntax-ppss (match-beginning 1)))) ;; Not inside a string, a comment, or a percent literal. (ruby-syntax-propertize-percent-literal end)