]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow splat operator before percent literal
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 7 Mar 2016 02:02:34 +0000 (04:02 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 7 Mar 2016 03:07:34 +0000 (05:07 +0200)
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Allow splat operator before percent literal.

lisp/progmodes/ruby-mode.el

index c1001450bda388b5633a256cab33577fb85c80bd..2ecda9530aa7bb870c8d4573972db30610bdc947 100644 (file)
@@ -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)