1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 08:51:45 -08:00
emacs/test
Stefan Monnier 34d1a1337d Get Ruby's SMIE code to pass the test suite.
* lisp/progmodes/ruby-mode.el (ruby-use-smie): Change default.
(ruby-comment-column): Follow the global default, by default.
(ruby-smie-grammar): Add assignment syntax.
(ruby-smie--implicit-semi-p): No implicit semi-colon after an
open-paren, a comma, or a \.
(ruby-smie--forward-token, ruby-smie--backward-token): Handle heredocs,
and line continuations.
(ruby-smie-rules): Adjust handling of open-paren, now that it's never
followed by implicit semi-colons.  Add rule for string concatenation
and for indentation at BOB.
(ruby-forward-sexp, ruby-backward-sexp): Adjust for when smie is in use.

* lisp/emacs-lisp/smie.el (smie-next-sexp): Don't go back to pos before
calling next-sexp, since next-token may have skipped chars which
next-sexp doesn't know should be skipped!

* test/indent/ruby.rb: Port a few cases from automated/ruby-mode-tests.el.
Adjust indentation of continued line to the new SMIE behavior.
2013-10-05 14:37:08 -04:00
..
automated * lisp/textmodes/css-mode.el (css-smie-rules): Toplevel's a list. 2013-10-04 17:45:37 -04:00
cedet Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
indent Get Ruby's SMIE code to pass the test suite. 2013-10-05 14:37:08 -04:00
ChangeLog Get Ruby's SMIE code to pass the test suite. 2013-10-05 14:37:08 -04:00
README Mention etc/compilation.txt 2009-07-26 15:59:37 +00:00
redisplay-testsuite.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
rmailmm.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00

This directory contains files intended to test various aspects of
Emacs's functionality.  Please help add tests!

(Also, see etc/compilation.txt for compilation mode font lock tests.)