aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent
diff options
context:
space:
mode:
authorDmitry Gutov <[email protected]>2014-02-23 10:26:40 +0200
committerDmitry Gutov <[email protected]>2014-02-23 10:26:40 +0200
commitdfdb365c4ce062e3506d350e185bc71c0bcc8b10 (patch)
tree6f79688a3bfb5d7986806e8bd00e5d2e38c015a8 /test/indent
parent62f9502226a8b910df0abe62b9f9fc7104647c62 (diff)
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Handle the
inconsistent second element of the list returned by `smie-indent--parent'. (ruby-font-lock-keywords): Disqualify any identifier before `=' as method call.
Diffstat (limited to 'test/indent')
-rw-r--r--test/indent/ruby.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 5fd59bfb18..344f16b3d1 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -357,6 +357,13 @@ zoo
.lose(
q, p)
+a.records().map(&:b).zip(
+ foo)
+
+# FIXME: This is not consistent with the example below it, but this
+# ofset only happens if the colon is at eol, which wouldn't be often.
+# Tokenizing `bar:' as `:bar =>' would be better, but it's hard to
+# distinguish from a variable reference inside a ternary operator.
foo(bar:
tee)