aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2012-04-24 13:08:55 -0400
committerStefan Monnier2012-04-24 13:08:55 -0400
commit1ec00a232a98f971c7b4c46f74636d14e48990a2 (patch)
treefd11dadb7d6b2b9b18271fd53cc81f2ea6adec49 /test
parentb613912badfb9050e6310ee14fddc90e0fd16b2c (diff)
parentdfbd787fe6a5684d699926d698aaf9166812a81b (diff)
downloademacs-1ec00a232a98f971c7b4c46f74636d14e48990a2.tar.gz
emacs-1ec00a232a98f971c7b4c46f74636d14e48990a2.zip
* ruby-mode.el: Handle general delimited literals.
Fixes: debbugs:6286
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog4
-rw-r--r--test/indent/ruby.rb19
2 files changed, 23 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 66f8592c79c..ff38a8fa9e1 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
12012-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * indent/ruby.rb: New file, to test new syntax-propertize code.
4
12012-04-11 Glenn Morris <rgm@gnu.org> 52012-04-11 Glenn Morris <rgm@gnu.org>
2 6
3 * automated/vc-bzr.el (vc-bzr-test-faulty-bzr-autoloads): New test. 7 * automated/vc-bzr.el (vc-bzr-test-faulty-bzr-autoloads): New test.
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
new file mode 100644
index 00000000000..c4a747a1c78
--- /dev/null
+++ b/test/indent/ruby.rb
@@ -0,0 +1,19 @@
1# Don't mis-match "sub" at the end of words.
2a = asub / aslb + bsub / bslb;
3
4b = %Q{This is a "string"}
5c = %w(foo
6 bar
7 baz)
8d = %!hello!
9
10# A "do" after a slash means that slash is not a division, but it doesn't imply
11# it's a regexp-ender, since it can be a regexp-starter instead!
12x = toto / foo; if /do bar/ then
13 toto = 1
14 end
15
16# Some Cucumber code:
17Given /toto/ do
18 print "hello"
19end