diff options
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 912736707ef..74edf7a680f 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -1804,9 +1804,10 @@ It will be properly highlighted even when the call omits parens.") | |||
| 1804 | ;; $' $" $` .... are variables. | 1804 | ;; $' $" $` .... are variables. |
| 1805 | ;; ?' ?" ?` are character literals (one-char strings in 1.9+). | 1805 | ;; ?' ?" ?` are character literals (one-char strings in 1.9+). |
| 1806 | ("\\([?$]\\)[#\"'`]" | 1806 | ("\\([?$]\\)[#\"'`]" |
| 1807 | (1 (unless (save-excursion | 1807 | (1 (if (save-excursion |
| 1808 | ;; Not within a string. | 1808 | (nth 3 (syntax-ppss (match-beginning 0)))) |
| 1809 | (nth 3 (syntax-ppss (match-beginning 0)))) | 1809 | ;; Within a string, skip. |
| 1810 | (goto-char (match-end 1)) | ||
| 1810 | (string-to-syntax "\\")))) | 1811 | (string-to-syntax "\\")))) |
| 1811 | ;; Part of symbol when at the end of a method name. | 1812 | ;; Part of symbol when at the end of a method name. |
| 1812 | ("[!?]" | 1813 | ("[!?]" |