diff options
| author | Dmitry Gutov | 2014-05-06 03:18:18 +0400 |
|---|---|---|
| committer | Dmitry Gutov | 2014-05-06 03:18:18 +0400 |
| commit | 4dd3c4d53af81b017363cb778ac6fd5abea2d132 (patch) | |
| tree | fafb9f8f9a770822ffac65fe5f1aa9f9c20992c0 /test | |
| parent | 6da8d069757fd26ee537704a9f0dea24dc5e00b8 (diff) | |
| download | emacs-4dd3c4d53af81b017363cb778ac6fd5abea2d132.tar.gz emacs-4dd3c4d53af81b017363cb778ac6fd5abea2d132.zip | |
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Backtrack one char if the global/char-literal var matcher hits
inside a string. The next char could be the beginning of an
expression expansion.
* test/automated/ruby-mode-tests.el
(ruby-interpolation-after-dollar-sign): New test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/ruby-mode-tests.el | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index a02b8e80395..0a3e89e7385 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-05-05 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * automated/ruby-mode-tests.el | ||
| 4 | (ruby-interpolation-after-dollar-sign): New test. | ||
| 5 | |||
| 1 | 2014-05-05 Glenn Morris <rgm@gnu.org> | 6 | 2014-05-05 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * automated/help-fns.el: New file. | 8 | * automated/help-fns.el: New file. |
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el index f6fddb5ef4c..0ad5650cd77 100644 --- a/test/automated/ruby-mode-tests.el +++ b/test/automated/ruby-mode-tests.el | |||
| @@ -452,6 +452,10 @@ VALUES-PLIST is a list with alternating index and value elements." | |||
| 452 | (ruby-assert-face "%w{foo #@bar}" 8 font-lock-string-face) | 452 | (ruby-assert-face "%w{foo #@bar}" 8 font-lock-string-face) |
| 453 | (ruby-assert-face "%s{foo #@bar}" 8 font-lock-string-face)) | 453 | (ruby-assert-face "%s{foo #@bar}" 8 font-lock-string-face)) |
| 454 | 454 | ||
| 455 | (ert-deftest ruby-interpolation-after-dollar-sign () | ||
| 456 | (ruby-assert-face "\"$#{balance}\"" 2 'font-lock-string-face) | ||
| 457 | (ruby-assert-face "\"$#{balance}\"" 3 'font-lock-variable-name-face)) | ||
| 458 | |||
| 455 | (ert-deftest ruby-no-unknown-percent-literals () | 459 | (ert-deftest ruby-no-unknown-percent-literals () |
| 456 | ;; No folding of case. | 460 | ;; No folding of case. |
| 457 | (ruby-assert-face "%S{foo}" 4 nil) | 461 | (ruby-assert-face "%S{foo}" 4 nil) |