aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov2016-03-16 04:32:59 +0200
committerDmitry Gutov2016-03-16 04:32:59 +0200
commit2036be4666becf02f4524d63595e3da55b14ff0d (patch)
tree327d28def64a3cd558d36efc55e14cb194a4be30 /test
parent1d686c2afb7c6c869c339f7c70daae969b429429 (diff)
downloademacs-2036be4666becf02f4524d63595e3da55b14ff0d.tar.gz
emacs-2036be4666becf02f4524d63595e3da55b14ff0d.zip
Fix Ruby's operator precedence
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Rearrange the smie-precs->prec2 form.
Diffstat (limited to 'test')
-rw-r--r--test/indent/ruby.rb23
1 files changed, 22 insertions, 1 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 85f2708bd98..b038512b114 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -295,10 +295,31 @@ foo > bar &&
295 tee < qux 295 tee < qux
296 296
297zux do 297zux do
298 foo == bar and 298 foo == bar &&
299 tee == qux 299 tee == qux
300
301 a = 3 and
302 b = 4
300end 303end
301 304
305foo + bar ==
306 tee + qux
307
3081 .. 2 &&
309 3
310
3113 < 4 +
312 5
313
31410 << 4 ^
315 20
316
317100 + 2 >>
318 3
319
3202 ** 10 /
321 2
322
302foo ^ 323foo ^
303 bar 324 bar
304 325