diff options
| author | Dmitry Gutov | 2014-03-02 00:04:59 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2014-03-02 00:04:59 +0200 |
| commit | 1850913d96126ca52c8dc5beadc82b004477b0cf (patch) | |
| tree | a58960a79f1af8ba2ad6148a6212cee8e3097405 /test/indent/ruby.rb | |
| parent | 2907acd464d055256efb84afb0a8c978befa8bc6 (diff) | |
| download | emacs-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.rb | 4 |
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". |
| 30 | x = toto / foo if /do bar/ =~ "dobar" | 30 | x = toto / foo if /do bar/ =~ "dobar" |
| 31 | 31 | ||
| 32 | # Regexp options are highlighted. | ||
| 33 | |||
| 34 | /foo/xi != %r{bar}mo.tee | ||
| 35 | |||
| 32 | bar(class: XXX) do # ruby-indent-keyword-label | 36 | bar(class: XXX) do # ruby-indent-keyword-label |
| 33 | foo | 37 | foo |
| 34 | end | 38 | end |