summaryrefslogtreecommitdiff
path: root/rc/base/ruby.kak
AgeCommit message (Collapse)Author
2019-03-21Add categories in rc/Alex Leferry 2
Closes #2783
2019-03-15Highlight all default Ruby symbols correctlyAlyssa Ross
2019-03-15Recognize Ruby identifiers beginning with _Alyssa Ross
:_foo, @_foo, $_foo, and { _foo: 1 } are all valid Ruby syntax, but were not recognized by the highlighter.
2018-12-19Unify auto-indent trimming hooksOlivier Perret
* ModeChange hooks that remove indent now belong to *-trim-indent groups, instead of just -indent * *-filter-around-selections hooks and commands have been renamed to trim-indent for clarity
2018-12-11Execute cleanup hooks on any filetype changeOlivier Perret
2018-12-11Change cleanup of base/ languages to use a simpler hook -onceOlivier Perret
2018-11-21Don't highlight Ruby eigenclass definitions as here docsJimmy Thrasher
E.g. for the following code snippet, the code was highlighted as a string ```ruby class Bob class <<self def hello end end end ```
2018-09-19Use remove-hooks regex in rcDelapouite
2018-09-17Homebrew Brewfile is rubyJason Felice
2018-07-05Make recurse regex opt-in with a -recurse switch instead of opt-outMaxime Coste
2018-07-05Fix tests and required scripts to get back to green make testMaxime Coste
2018-07-05Fix remaining static_words and spell.kak for the new list syntaxShachaf Ben-Kiki
2018-07-05Do not reparse %sh{...} stringsMaxime Coste
Automatic reparsing of %sh{...}, while convenient in many cases, can be surprising as well, and can lead to security problems: 'echo %sh{ printf "foo\necho bar" }' runs 'echo foo', then 'echo bar'. we make this danger explicit, and we fix the 'nop %sh{...}' pattern. To reparse %sh{...} strings, they can be passed to evaluate-commands, which has been fixed to work in every cases where %sh{...} reparsing was used..
2018-04-14ruby.kak: Refactor end autoinsertion logic to be more robustMaxime Coste
Fixes the bug described by PR #1994
2018-03-25Fix uses of rotate selection in rc/ filesMaxime Coste
2018-03-23ruby.kak: support squiggly heredocsAlyssa Ross
Squiggly heredocs were introduced in Ruby 2.3. They work like `<<-` but strip indentation.
2018-02-18rc/: Replace simple uses of sed with trMaxime Coste
2018-02-18Recognize .gemspec files as RubyAlex Leferry 2
2018-02-08Highlight Ruby control access keywordsAlex Leferry 2
2018-01-26Add heredoc support for ruby.kakJimmy Thrasher
2017-11-03src rc: Rename `exec`/`eval` into `execute-keys`/`evaluate-commands`Frank LENORMAND
2017-11-03rc: Don't use command aliases to highlight keywords properlyFrank LENORMAND
2017-10-28Move highlighters into ScopesMaxime Coste
That means we can now have highlighters active at global, buffer, and window scope. The add-highlighter and remove-highlighter syntax changed to take the parent path (scope/group/...) as a mandatory argument, superseeding the previous -group switch.
2017-10-25rc/: Tweak some regexes to be compatible with our impl limitationsMaxime Coste
The upcoming custom implementation does not support arbitrary lookarounds, and other advanced regex features. Simplify the regexes to avoid those.
2017-10-25Use stricter regex syntaxMaxime Coste
boost regex tolerates non-escaped special characters, and escaped non-special characters. Standardize on stricter syntax, where special characters must be escaped, and non-special characters must not.
2017-10-25rc/: More consistent uses of regex syntaxMaxime Coste
Always use \A \z for subject start/end, always \b for word boundaries
2017-07-19Remove `echo -color` support, superseeded by `echo -markup`Maxime Coste
`echo -color Error "blah"` is the same as `echo -markup '{Error}blah'` Fixes #1512
2017-02-28highlight hash access symbolsAlex Leferry 2
2017-02-09Adds faces module and function. Renames identifier face to variable.Nick Mosher
2017-01-13Fix naming conventions in bundled scriptsMaxime Coste
Do not use _ prefix for hidden commands, use - as a word separator in command names.
2017-01-13Various auto indent fixes regarding wrong use of x instead of <a-x>Maxime Coste
2017-01-11Copy comments *before* copying indentationMaxime Coste
Fixes #1118
2017-01-10Merge git://github.com/knubie/kakouneMaxime Coste
2017-01-04update command namesAlex Leferry 2
2016-12-29Fix comment-leader auto-insertionDan Rosén
Fixes #1074
2016-12-25add 'extend' to ruby grammarMatthew Steedman
Technically `include` and `extend` are both just methods on `Module` and `Object`, respectively, but it I think we should have both or neither.
2016-12-06transform mimetype to a fallback optionMartin Chaine
The option is now used as a fallback when detection by extension fails. Some scripts like `base/mail.kak` and `base/html.kak` still rely heavily on it.
2016-10-14Move the commenting variables back to `commenting.kak`Frank LENORMAND
Initialising the `comment_line_chars` and `comment_selection_chars` variables in language support scripts created a hard dependency of those scripts to `commenting.kak`, which would create errors when this script was not loaded, e.g. when running tests.
2016-10-14Remove all references to `formatcmd`Frank LENORMAND
Initializing the `formatcmd` variable in the default language support scripts created a dependency to the `formatter.kak` script, which we do not want. Examples of such cases are when users haven't loaded the `formatter.kak` script, or when Kakoune runs its test suite and selectively loads some language scripts for testing purposes.
2016-10-01Fix hool -> hook in rc filesMaxime Coste
2016-09-28Add highlight group to highlighters rmhl hooksgreduan
2016-09-28Add highlight group to highlighters addhl hooksgreduan
2016-09-16highlight :: operatorAlex Leferry 2
2016-09-16fixes symbol highlightingAlex Leferry 2
2016-09-09fixes 'end' insertionAlex Leferry 2
2016-09-09disable hooksAlex Leferry 2
2016-05-24fixes hooks removingAlex Leferry 2
2016-04-23Pass a generic pattern to `printf` calls, use `echo` when possibleFrank LENORMAND
2016-04-21Remove uses of \< and \>, always use std regex compatible \bMaxime Coste
2016-04-09style tweak in the static words definitionsMaxime Coste