summaryrefslogtreecommitdiff
path: root/rc/base/lua.kak
AgeCommit message (Collapse)Author
2019-03-21Add categories in rc/Alex Leferry 2
Closes #2783
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-12Give lua block comments higher match precedencelePerdu
2018-09-19Use remove-hooks regex in rcDelapouite
2018-07-05Make recurse regex opt-in with a -recurse switch instead of opt-outMaxime Coste
2018-07-05Parse unknown switches as positional for region highlightersMaxime Coste
2018-07-05Fix tests and required scripts to get back to green make testMaxime Coste
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-03-25Fix uses of rotate selection in rc/ filesMaxime Coste
2018-03-04lua.kak: Rework 'end' auto insertion logicMaxime Coste
Fixes #1525
2018-02-18lua.kak: Fix string highlighting with -match-capture regionsMaxime Coste
With the introduction of -match-capture for the lua region highlighter, the string closing regex had spurious captures that were not going to match. Fixes #1850
2018-02-11Highlight nested == comments/strings in lua.Jacob Dufault
For example, [==[ string ]==]
2018-02-10Fixed Lua block comment highlightingMilan Vaško
Block comments in Lua were broken, apparently due to the opening sequence being interpreted as a line comment. Changing the order in the highlighter seems to fix this issue.
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-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-09-23Fix Lua comment delimiter insertion (see #1584)exitium
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-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-11Copy comments *before* copying indentationMaxime Coste
Fixes #1118
2017-01-04update command namesAlex Leferry 2
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-11-15fix lua.kakOlivier Perret
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-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-04-23Pass a generic pattern to `printf` calls, use `echo` when possibleFrank LENORMAND
2016-04-23Replace non POSIX calls to `echo` with `printf %s`Frank LENORMAND
2016-04-21Remove uses of \< and \>, always use std regex compatible \bMaxime Coste
2016-03-08code cleanup: remove optional sed optionAlex Leferry 2
2016-03-03add :alt command to jump to the alternate file (implementation ↔ test)Alex Leferry 2
2016-03-03Fix MIME type detectionAlex Leferry 2
2016-01-29Reorganise rc/ into subdirectoriesMaxime Coste
* core: set of tools to work on kakoune source code * base: very common languages and tools * extra: less common languages and tools