aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/ruby-mode-resources/ruby.rb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix Ruby indentation with double splat as first block paramDmitry Gutov2022-04-261-0/+9
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie--forward-token) (ruby-smie--backward-token): Tokenize "**" separately from "|". Problem reported at https://github.com/dgutov/robe/issues/136.
* Support indentation of Ruby pattern matching expressionsDmitry Gutov2022-03-211-0/+8
| | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie-grammar, ruby-smie-rules) (ruby-block-mid-keywords): Treat 'in' token similarly to 'when'. * test/lisp/progmodes/ruby-mode-resources/ruby.rb: Add indentation example.
* ruby-syntax-propertize: Fix certain cases following ::Dmitry Gutov2021-02-021-1/+1
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Make sure to backtrack if the "symbols with special characters" rule is aborted because of preceding colon.
* ruby-mode: Recognize setter symbolsDmitry Gutov2020-12-311-0/+8
| | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Add a rule for setter symbols (bug#42846). (ruby-font-lock-keywords): Remove dead code, left over from before commit 26f9c507. * lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Handle '=' being part of a symbol (bug#42846). * test/lisp/progmodes/ruby-mode-resources/ruby.rb: Add corresponding indentation examples.
* ; Prefer https to http in more URLsStefan Kangas2020-10-241-1/+1
| | | | These were all tested and confirmed working.
* Convert manual indent test for ruby-mode into unit testStefan Kangas2020-09-211-0/+477
* test/manual/indent/ruby.rb: Move from here... * test/lisp/progmodes/ruby-mode-resources/ruby.rb: ...to here. * test/lisp/progmodes/ruby-mode-tests.el (ruby-mode-tests-data-dir): New variable. (ruby--indent/converted-from-manual-test): New test.