diff options
| author | Dmitry Gutov | 2016-03-07 04:02:34 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2016-03-07 05:07:34 +0200 |
| commit | f50bc04a6824b1164bbc9ee11420db5f625e090e (patch) | |
| tree | ded1eec228963c03380d990fc347905b2c16212c | |
| parent | 991c801cd6b6b323fb4510de9e295b3fea2fb12f (diff) | |
| download | emacs-f50bc04a6824b1164bbc9ee11420db5f625e090e.tar.gz emacs-f50bc04a6824b1164bbc9ee11420db5f625e090e.zip | |
Allow splat operator before percent literal
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Allow splat operator before percent literal.
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
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.") | |||
| 1901 | 'syntax-table (string-to-syntax "\"")) | 1901 | 'syntax-table (string-to-syntax "\"")) |
| 1902 | (ruby-syntax-propertize-heredoc end)))) | 1902 | (ruby-syntax-propertize-heredoc end)))) |
| 1903 | ;; Handle percent literals: %w(), %q{}, etc. | 1903 | ;; Handle percent literals: %w(), %q{}, etc. |
| 1904 | ((concat "\\(?:^\\|[[ \t\n<+(,=]\\)" ruby-percent-literal-beg-re) | 1904 | ((concat "\\(?:^\\|[[ \t\n<+(,=*]\\)" ruby-percent-literal-beg-re) |
| 1905 | (1 (unless (nth 8 (save-excursion (syntax-ppss (match-beginning 1)))) | 1905 | (1 (unless (nth 8 (save-excursion (syntax-ppss (match-beginning 1)))) |
| 1906 | ;; Not inside a string, a comment, or a percent literal. | 1906 | ;; Not inside a string, a comment, or a percent literal. |
| 1907 | (ruby-syntax-propertize-percent-literal end) | 1907 | (ruby-syntax-propertize-percent-literal end) |