diff options
| author | Dmitry Gutov | 2014-02-23 10:26:40 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2014-02-23 10:26:40 +0200 |
| commit | dfdb365c4ce062e3506d350e185bc71c0bcc8b10 (patch) | |
| tree | 6f79688a3bfb5d7986806e8bd00e5d2e38c015a8 /test/indent/ruby.rb | |
| parent | 62f9502226a8b910df0abe62b9f9fc7104647c62 (diff) | |
| download | emacs-dfdb365c4ce062e3506d350e185bc71c0bcc8b10.tar.gz emacs-dfdb365c4ce062e3506d350e185bc71c0bcc8b10.zip | |
* 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/ruby.rb')
| -rw-r--r-- | test/indent/ruby.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 5fd59bfb186..344f16b3d13 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -357,6 +357,13 @@ zoo | |||
| 357 | .lose( | 357 | .lose( |
| 358 | q, p) | 358 | q, p) |
| 359 | 359 | ||
| 360 | a.records().map(&:b).zip( | ||
| 361 | foo) | ||
| 362 | |||
| 363 | # FIXME: This is not consistent with the example below it, but this | ||
| 364 | # ofset only happens if the colon is at eol, which wouldn't be often. | ||
| 365 | # Tokenizing `bar:' as `:bar =>' would be better, but it's hard to | ||
| 366 | # distinguish from a variable reference inside a ternary operator. | ||
| 360 | foo(bar: | 367 | foo(bar: |
| 361 | tee) | 368 | tee) |
| 362 | 369 | ||