]> code.delx.au - gnu-emacs/blobdiff - test/automated/ruby-mode-tests.el
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
[gnu-emacs] / test / automated / ruby-mode-tests.el
index f6fddb5ef4cfd036548bb50c038a0cb7dc95d023..0ad5650cd7719dffc93a269b780622ef91d9c2de 100644 (file)
@@ -452,6 +452,10 @@ VALUES-PLIST is a list with alternating index and value elements."
   (ruby-assert-face "%w{foo #@bar}" 8 font-lock-string-face)
   (ruby-assert-face "%s{foo #@bar}" 8 font-lock-string-face))
 
+(ert-deftest ruby-interpolation-after-dollar-sign ()
+  (ruby-assert-face "\"$#{balance}\"" 2 'font-lock-string-face)
+  (ruby-assert-face "\"$#{balance}\"" 3 'font-lock-variable-name-face))
+
 (ert-deftest ruby-no-unknown-percent-literals ()
   ;; No folding of case.
   (ruby-assert-face "%S{foo}" 4 nil)