1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00
emacs/test/automated
Dmitry Gutov 1a0a0a8a6a * lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to
start at point, so that expansion starting right after opening
slash in a regexp is recognized.
(ruby-syntax-before-regexp-re): New defvar, extracted from
ruby-syntax-propertize-function.  Since the value of this regexp
is looked up at runtime now, we should be able to turn
`ruby-syntax-methods-before-regexp' into a defcustom later.
(ruby-syntax-propertize-function): Split regexp matching into two
parts, for opening and closing slashes.  That allows us to skip
over string interpolations and support multiline regexps.
Don't call `ruby-syntax-propertize-expansions', instead use another rule
for them, which calls `ruby-syntax-propertize-expansion'.
(ruby-syntax-propertize-expansions): Move `remove-text-properties'
call to `ruby-syntax-propertize-function'.
(ruby-syntax-propertize-expansion): Extracted from
`ruby-syntax-propertize-expansions'.  Handles one expansion.
(ruby-syntax-propertize-heredoc): Explicitly call
`ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-percent-literal): Leave point right after
the percent symbol, so that the expression expansion rule can
propertize the contents.

* test/automated/ruby-mode-tests.el (ruby-heredoc-highlights-interpolations)
(ruby-regexp-skips-over-interpolation)
(ruby-regexp-continues-till-end-when-unclosed)
(ruby-regexp-can-be-multiline)
(ruby-interpolation-inside-percent-literal): New tests.

* test/indent/ruby.rb: Add multiline regexp example.
2013-05-19 10:01:23 +04:00
..
add-log-tests.el Spelling fixes. 2013-04-14 14:57:21 -07:00
advice-tests.el * lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to 2013-01-15 01:05:22 -05:00
bytecomp-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
comint-testsuite.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
compile-tests.el Fix interpretation of gnu line.col1-col2 error message format 2013-01-13 17:08:13 -08:00
ert-tests.el Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
ert-x-tests.el Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
f90.el Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
files.el Fix byte compilation warning in files testsuite. 2013-02-03 16:55:45 +08:00
font-parse-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
gnus-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
icalendar-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
imenu-test.el * automated/imenu-tests.el: New file. 2013-04-20 04:02:55 +09:00
inotify-test.el Update copyright dates to 2013. 2013-01-02 08:30:50 -08:00
lexbind-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
Makefile.in Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
man-tests.el * lisp/man.el: Handle different "man -k" behaviors. Use utf-8. 2013-01-10 10:01:35 -05:00
newsticker-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
occur-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
python-tests.el New faster Imenu implementation. 2013-04-18 23:31:09 -03:00
ruby-mode-tests.el * lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to 2013-05-19 10:01:23 +04:00
thingatpt.el Merge FFAP's URI-detection code into thingatpt.el. 2013-02-04 20:02:25 +08:00
undo-tests.el * test/automated/undo-tests.el (undo-test0): Adjust error to code change. 2013-01-09 16:29:27 -05:00
url-future-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
url-util-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
vc-bzr.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
xml-parse-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00