Alyssa Ross
7c0d10f458
ruby.kak: support squiggly heredocs
...
Squiggly heredocs were introduced in Ruby 2.3.
They work like `<<-` but strip indentation.
2018-03-23 13:42:48 +00:00
Maxime Coste
f8861734cf
rc/: Replace simple uses of sed with tr
2018-02-18 15:00:30 +11:00
Alex Leferry 2
04b57539e8
Recognize .gemspec files as Ruby
2018-02-18 00:49:09 +01:00
Alex Leferry 2
39c0c03351
Highlight Ruby control access keywords
2018-02-08 13:34:40 +01:00
Jimmy Thrasher
7bf235b0ee
Add heredoc support for ruby.kak
2018-01-26 07:56:36 -05: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
0fa59e5fd2
rc/: Tweak some regexes to be compatible with our impl limitations
...
The upcoming custom implementation does not support arbitrary lookarounds,
and other advanced regex features. Simplify the regexes to avoid those.
2017-10-25 10:27:39 +08:00
Maxime Coste
bf6e5daa08
Use stricter regex syntax
...
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-25 10:27:39 +08:00
Maxime Coste
80d661e6a7
rc/: More consistent uses of regex syntax
...
Always use \A \z for subject start/end, always \b for word boundaries
2017-10-25 10:27:25 +08:00
Maxime Coste
9c4448ac41
Remove echo -color
support, superseeded by echo -markup
...
`echo -color Error "blah"` is the same as `echo -markup '{Error}blah'`
Fixes #1512
2017-07-19 17:18:52 +02:00
Alex Leferry 2
63f9f9bbc9
highlight hash access symbols
2017-02-28 09:48:17 +01:00
Nick Mosher
e1927fa9c4
Adds faces module and function. Renames identifier face to variable.
2017-02-09 21:43:29 -05:00
Maxime Coste
5ad4499503
Fix naming conventions in bundled scripts
...
Do not use _ prefix for hidden commands, use - as a word separator
in command names.
2017-01-13 01:00:43 +00: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
Maxime Coste
faa18b3a8f
Merge git://github.com/knubie/kakoune
2017-01-10 13:51:57 +00:00
Alex Leferry 2
671b50bb52
update command names
2017-01-04 13:04:27 +01:00
Dan Rosén
5ddc28eaad
Fix comment-leader auto-insertion
...
Fixes #1074
2016-12-29 01:39:02 +01:00
Matthew Steedman
bedf0c77ae
add 'extend' to ruby grammar
...
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-25 14:01:56 -05: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
5db1d1beef
Move the commenting variables back to commenting.kak
...
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-14 22:12:01 +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
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
Alex Leferry 2
e18d145f96
highlight :: operator
2016-09-16 11:12:02 +02:00
Alex Leferry 2
bb911cc229
fixes symbol highlighting
2016-09-16 10:54:53 +02:00
Alex Leferry 2
6e634c680a
fixes 'end' insertion
2016-09-09 15:36:45 +02:00
Alex Leferry 2
5b99ef3197
disable hooks
2016-09-09 15:35:23 +02:00
Alex Leferry 2
dc05497e8f
fixes hooks removing
2016-05-24 19:37:51 +02: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
Maxime Coste
a49685d996
Merge remote-tracking branch 'lenormf/fix-static-completion'
2016-04-09 10:08:19 +01:00
Frank LENORMAND
4bb5658206
Replace non-POSIX here-strings and calls to echo
2016-03-17 15:32:32 +02:00
Alex Leferry 2
1a3d7e58ab
Help Kakoune to better detect /…/ literals
2016-03-17 12:25:40 +01:00
Alex Leferry 2
13e6c34c35
add :alt command to jump to the alternate file (implementation ↔ test)
2016-03-16 15:05:13 +01: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
Frank LENORMAND
8da2e2a7a8
Restore the filter_around_selections
functions to balance indentation copies
2016-03-10 15:48:12 +02:00
Frank LENORMAND
a31d947e1d
Give commands that do not indent their own insert
hook
2016-03-10 15:12:08 +02:00
Frank LENORMAND
ad06f3f92c
Remove hooks that trim trailing whitespaces
2016-03-10 15:08:01 +02:00
Frank LENORMAND
326421c810
Add rubocop
as default ruby formatter
2016-03-10 15:07:08 +02:00
Alex Leferry 2
88cf7a216c
Fix highlighting of single letter identifiers
2016-02-27 17:53:16 +01:00
Alex Leferry 2
6ec14030ad
Fix escaping of ' in single quote strings
2016-02-27 14:18:16 +01: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