aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/ruby.rb
diff options
context:
space:
mode:
authorDmitry Gutov2014-03-02 00:04:59 +0200
committerDmitry Gutov2014-03-02 00:04:59 +0200
commit1850913d96126ca52c8dc5beadc82b004477b0cf (patch)
treea58960a79f1af8ba2ad6148a6212cee8e3097405 /test/indent/ruby.rb
parent2907acd464d055256efb84afb0a8c978befa8bc6 (diff)
downloademacs-1850913d96126ca52c8dc5beadc82b004477b0cf.tar.gz
emacs-1850913d96126ca52c8dc5beadc82b004477b0cf.zip
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
regexp options. Fixes: debbugs:16914
Diffstat (limited to 'test/indent/ruby.rb')
-rw-r--r--test/indent/ruby.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index daec1c30c69..2ca0e482797 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -29,6 +29,10 @@ a = asub / aslb + bsub / bslb;
29# Highlight the regexp after "if". 29# Highlight the regexp after "if".
30x = toto / foo if /do bar/ =~ "dobar" 30x = toto / foo if /do bar/ =~ "dobar"
31 31
32# Regexp options are highlighted.
33
34/foo/xi != %r{bar}mo.tee
35
32bar(class: XXX) do # ruby-indent-keyword-label 36bar(class: XXX) do # ruby-indent-keyword-label
33 foo 37 foo
34end 38end