diff options
| author | Dmitry Gutov | 2014-03-27 08:53:13 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2014-03-27 08:53:13 +0200 |
| commit | 42ebc34ea8f93efe5b23c0124691207f32055666 (patch) | |
| tree | 5e4af15b8b2b09e19b815fbac41e39adcbdc4bb0 /test | |
| parent | 857ba6ec4622ba658788b8cd5805e8e9e8a5db16 (diff) | |
| download | emacs-42ebc34ea8f93efe5b23c0124691207f32055666.tar.gz emacs-42ebc34ea8f93efe5b23c0124691207f32055666.zip | |
Fix bug#17097
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Don't propertize `?' or `!' as symbol constituent when after
colon.
Diffstat (limited to 'test')
| -rw-r--r-- | test/indent/ruby.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 99482433145..fb341ee7ba6 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -148,6 +148,11 @@ if something == :== | |||
| 148 | ) | 148 | ) |
| 149 | end | 149 | end |
| 150 | 150 | ||
| 151 | # Bug#17097 | ||
| 152 | if x == :!= | ||
| 153 | something | ||
| 154 | end | ||
| 155 | |||
| 151 | # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html | 156 | # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html |
| 152 | d = 4 + 5 + # no '\' needed | 157 | d = 4 + 5 + # no '\' needed |
| 153 | 6 + 7 | 158 | 6 + 7 |