summaryrefslogtreecommitdiff
path: root/rc/filetype/ruby.kak
AgeCommit message (Collapse)Author
2022-07-05Make `x` just select the full linesMaxime Coste
`x` is often criticized as hard to predict due to its slightly complex behaviour of selecting next line if the current one is fully selected. Change `x` to use the previous `<a-x>` behaviour, and change `<a-x>` to trim to fully selected lines as `<a-X>` did. Adapt existing indentation script to the new behaviour
2022-05-29rc filetype: add some missing ModeChange hooks for trim-indentJohannes Altmanninger
Some languages have a trim-indent command but don't use it (for no apparent reason). Make them trim trailing spaces when exiting insert mode, like most other languages support scripts do.
2021-06-06Rename exec->execute-keys for consistencyDmitry Matveyev
2021-06-06Better comment inserting tests and fix implementationDmitry Matveyev
2021-06-06Fix Ruby <ret> mid-commentDmitry Matveyev
Implementation is copied from Nim.
2021-06-06Remove electric behavior for end keywordDmitry Matveyev
Correctly indentint on "end" keyword seems very hard, it is simpler to remove it. And we already insert "end" in ruby-insert-on-new-line hook, so the removal shouldn't hurt too much.
2021-04-28Ruby: Add `require_relative` keywordTaupiqueur
2020-11-18Avoid recognizing remainder division as a percent stringconnor
2020-10-19Fix overzealous closing of ruby heredocsJohannes Altmanninger
Fixes #2516
2020-08-24Avoid accidentally using environment variables in sh scopesJohannes Altmanninger
On the instances with altfile this was already the case, but this makes it more obvious. Closes #3673
2020-08-02Fix auto indentation for if/case and elseJohn Isom
2020-08-02Merge remote-tracking branch 'johnisom/ruby-indentation'Maxime Coste
2020-08-01Beautify indenting in add-highlighter region for percent literalsJohn Isom
2020-08-01Improve syntax highlighting of Ruby percent literalsJohn Isom
The syntax highlighting has been broken down into 3 main categories: string: string, array of words variable: symbol, array of symbols meta: regexp, shell execution
2020-08-01Add rule for % string literals without bracket/style chars; no recurse yetJohn Isom
Becuase %Q^hello^ is a perfectly valid Ruby string literal. Strange, I know.
2020-08-01Add 'else' to auto deindent/align logic in context of 'case' statementJohn Isom
2020-08-01Add 'when' to list of keywords that signifies end for `ruby-insert-on-new-line`John Isom
2020-08-01Fix deindenting nested blocks/statementsJohn Isom
2020-08-01Add support for deindenting `rescue` statment when part of `def` (instead of ↵John Isom
just `begin`)
2020-08-01Replace ') <a-&>' with '1<a-&>'John Isom
2020-07-31Fix ruby-indent-on-charJohn Isom
2020-07-20Ruby: Better matching of divisionsAlex Leferry 2
Do not include prefix data in match.
2020-07-09Ruby: Add support for %{…} percent string literalsAlex Leferry 2
2020-03-25rc ruby: Don't recognize "keyword"-like identifiersLas
In Ruby, identifiers can end with a `!` or `?` too, which means that `class!` or `end?`are not actually keywords, but regular identifiers. This fixes that by not using `\b` but `[^0-9A-Za-z_!?]` instead in some places.
2019-10-22src: Create a <semicolon> named keyFrank LENORMAND
This commit allows using the <semicolon> expansion in commands, instead of `\;`. It makes commands look more elegant, and prevents new-comers from falling into the trap of using <a-;> without escaping the semicolon.
2019-10-08[rc] Use 'fail' when the alternative file cannot be foundOlivier Perret
This makes it possible to implement a fallback strategy using 'try .. catch', for cases where the alternative file is not stored in a subdirectory
2019-06-21Add more ending blocks for ruby "end" keyword autoinsertionDmitry Matveyev
2019-06-12Add support for autoformatting after do keyword in RubyDmitry Matveyev
2019-05-25Add test/ ruby-alternative-file implementationDmitry Matveyev
2019-04-09Fixed many of the filetype support modules to not use `BufSetOption` to loadJustin Frank
2019-04-08Modified a bunch of language support files to use modulesJustin Frank
2019-03-21Add categories in rc/Alex Leferry 2
Closes #2783