Allow splat operator before percent literal
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Allow splat operator before percent literal.
This commit is contained in:
parent
991c801cd6
commit
f50bc04a68
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue