Shachaf Ben-Kiki
1b9474cd44
Fix remaining static_words and spell.kak for the new list syntax
2018-07-05 07:54:28 +10:00
Maxime Coste
ec16969609
Do not reparse %sh{...} strings
...
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-07-05 07:54:28 +10:00
Maxim Baz
44f0230fe1
Add missing python3 keyword: nonlocal
2018-07-02 23:28:25 +02:00
Maxime Coste
f8861734cf
rc/: Replace simple uses of sed with tr
2018-02-18 15:00:30 +11:00
Maxime Coste
43f50c0852
Convert bundled scripts to ModeChange hook
2018-01-21 10:35:05 +11:00
Dan Rosén
a612432c8d
Highlight python operators
2018-01-07 23:36:41 +01:00
Dan Rosén
40aaf63338
Highlight python doctests in docstrings
2018-01-07 23:36:41 +01:00
Frank LENORMAND
58ccf6b295
rc python: Highlight built-in exceptions
2017-11-18 11:56:47 +03:00
Frank LENORMAND
105d7a1276
rc python: Extend highlighted keywords and numbers
2017-11-14 12:50:20 +03:00
Frank LENORMAND
9127ed0d55
src rc: Rename exec
/eval
into execute-keys
/evaluate-commands
2017-11-03 11:09:45 +03:00
Frank LENORMAND
c9b280b712
rc: Don't use command aliases to highlight keywords properly
2017-11-03 10:34:41 +03:00
Maxime Coste
d49555fc75
Move highlighters into Scopes
...
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-28 13:43:04 +08:00
Maxime Coste
91a56c11fe
Various auto indent fixes regarding wrong use of x instead of <a-x>
2017-01-13 00:50:03 +00:00
Maxime Coste
5989903e7c
Copy comments *before* copying indentation
...
Fixes #1118
2017-01-11 13:56:48 +00:00
Alex Leferry 2
671b50bb52
update command names
2017-01-04 13:04:27 +01:00
Maxime Coste
5ab60cde51
Rename python indentation command to be more consistent
...
We use `-` as word separator, and there is no need for leading
underscore.
2017-01-02 04:20:05 +00:00
Martin Chaine
7384288e07
transform mimetype to a fallback option
...
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-12-06 17:48:46 +01:00
Frank LENORMAND
94971e0e8a
Introduce the builtin
face, modify scripts accordingly
2016-11-24 17:06:45 +03:00
Frank LENORMAND
67a8e8ca3c
Remove all references to formatcmd
...
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-14 19:16:45 +03:00
Maxime Coste
5af29b0254
Fix python comment copy logic in python.kak
...
And introduce the first unit test that sources bundled support
scripts.
Fixes #860
2016-10-13 20:13:05 +01:00
Maxime Coste
1b9c8b9cf2
Fix hool -> hook in rc files
2016-10-01 14:09:59 +01:00
greduan
a68f5f20a1
Add highlight group to highlighters rmhl hooks
2016-09-28 08:45:01 +02:00
greduan
6c6359de93
Add highlight group to highlighters addhl hooks
2016-09-28 08:25:02 +02:00
Maxime Coste
9298efd19b
Restore whitespace cleanup on InsertEnd in python.kak
2016-05-05 13:59:06 +01:00
Maxime Coste
13ab721f64
python.kak: restore cleaning up trailing whitespaces on newline
2016-05-05 13:50:49 +01:00
Frank LENORMAND
a20f5fc6a2
Pass a generic pattern to printf
calls, use echo
when possible
2016-04-23 10:00:36 +03:00
Maxime Coste
3f74dd2924
Remove uses of \< and \>, always use std regex compatible \b
2016-04-21 20:43:17 +01:00
Maxime Coste
a026ebf298
style tweak in the static words definitions
2016-04-09 10:20:13 +01:00
Frank LENORMAND
4bb5658206
Replace non-POSIX here-strings and calls to echo
2016-03-17 15:32:32 +02:00
Frank LENORMAND
3079d2a7e3
Replace non-POSIX inline character replacement in shell scripts
2016-03-14 18:29:11 +02:00
Frank LENORMAND
98594cf6df
Add static completion suggestions to several languages, set autopep8
as default python formatter
2016-03-14 14:10:49 +02:00
Maxime Coste
fef0277998
Reorganise rc/ into subdirectories
...
* core: set of tools to work on kakoune source code
* base: very common languages and tools
* extra: less common languages and tools
2016-01-29 09:03:23 +00:00