1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 05:30:45 -08:00
emacs/test/indent
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
..
latex-mode.tex * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not only 2012-07-17 04:11:31 -04:00
Makefile
modula2.mod * lisp/progmodes/modula2.el: Use SMIE and skeleton. 2010-11-11 16:06:15 -05:00
octave.m * indent/octave.m: Fix encoding error in comment. Add coding tag. 2013-03-05 00:06:54 -08:00
pascal.pas * lisp/progmodes/pascal.el (pascal--syntax-propertize): New const. 2013-05-04 22:26:38 -04:00
perl.perl * lisp/progmodes/perl-mode.el: Add support for here documents. 2013-05-06 15:33:56 -04:00
prolog.prolog Spelling fixes. 2011-12-18 22:21:24 -08:00
ruby.rb * lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to 2013-05-19 10:01:23 +04:00
shell.rc Add some shell indentation test cases. 2012-04-28 16:04:34 -04:00
shell.sh * lisp/view.el (view--enable, view--disable): Rename from view-mode-enable 2013-01-03 21:53:48 -05:00