Andrey Orst
ab09864bd5
Update c-family.kak
2018-09-25 10:23:07 +03:00
Andrey Orst
b3f817c1ff
Fix highlighting of unsigned long long in C filetype
...
Values like `0xffffffffffffffffull` were highlighted only till first `u` leaving `ll` without highlighting. This change addresses this issue. It also adds uppercase `ULL` highlighting in values.
2018-09-19 16:50:26 +03:00
Justin Frank
fa9d13700a
Added deindenting of single statements
2018-09-11 21:21:25 -07:00
Maxime Coste
2a3e3f0514
Tweak various scripts to improve the time they take to load
...
As requested in #2152 , startup time should be slightly better.
2018-07-19 18:32:29 +10:00
Maxime Coste
63d4c8c311
Change a
on end of line behaviour to be consistent
...
`a` will just jump on next line, `a` on last end of line opens a new
line beneath it.
Fixes #1164
2018-07-05 08:00:14 +10:00
Maxime Coste
2e0e206951
Make recurse regex opt-in with a -recurse switch instead of opt-out
2018-07-05 07:54:28 +10:00
Maxime Coste
e486a97ad8
Fix highlighters in rc/core post syntax refactoring
2018-07-05 07:54:28 +10:00
Maxime Coste
b0ccf97b44
Refactor RegionsHighlighters to define each region as a separate command
2018-07-05 07:54:28 +10:00
Maxime Coste
b4b335155e
Refactor add-highlighter to make naming explicit
...
The highlighter name must be given as part of the path of the
highlighter, as the last element.
Fixes #1712
2018-07-05 07:54:28 +10:00
Maxime Coste
2729042f83
Fix c-family.kak static_words definition
2018-07-05 07:54:28 +10:00
Maxime Coste
e9fc54538d
Convert some of the rc/ scripts to the new list syntax
...
Other scripts relying on lists are broken at the moment, and will
be fixed. This commit is a proof of concept of the new way to work
with lists.
2018-07-05 07:54:28 +10:00
Maxime Coste
cad5f37efd
Fix register saving post -save-regs behaviour change
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
Maxime Coste
8c6af54db3
c-family.kak: Fix comment line continuation behaviour
...
Fixes #2043
2018-05-19 14:15:16 +10:00
Maxime Coste
8e1646b702
c-family.kak: Remove unneeded itersel
...
itersel can get very expensive with many selections, it should only
be used when necessary.
2018-05-17 07:41:32 +10:00
Maxime Coste
f99f0020dc
Fix (again) C++ raw string highlighting
2018-04-25 21:19:04 +10:00
Maxime Coste
fea6bc9524
c-family.kak: Fix highlighting of raw strings
2018-04-22 09:40:45 +10:00
Maxime Coste
5c247bf1dd
c-family.kak: Do not mistake '\"' for a double quoted string start
...
Fixes #1893
2018-03-01 14:01:09 +11:00
Maxime Coste
43f50c0852
Convert bundled scripts to ModeChange hook
2018-01-21 10:35:05 +11:00
Maxime Coste
35d2b2b4bc
c-family.kak: Use regex custom text object to simplify some indent
2017-12-03 17:48:04 +08:00
Maxime Coste
1a38849086
c-family.kak: indent after parenthesis at end of line
2017-12-03 17:47:44 +08:00
Maxime Coste
2ab9f65b36
c-family.kak: Use <a-S> in various auto indent hooks
2017-11-14 13:32:46 +08:00
Maxime Coste
9c964e97f0
c-family.kak: Highlight character literals later
...
That way it overrides integer literal highlighters in the case where
they conflict.
2017-11-14 11:45:30 +08:00
fsub
ee695ecf95
c-familiy.kak: improve highlighting of C++ literals
2017-11-12 18:16:20 +01:00
Maxime Coste
add7f7e76b
Revert "c-family.kak: Remove invalid 'compl' keyword from C++ highlight"
...
This reverts commit f8dee65d6e
.
compl is actually the alternate keyword for `~`.
2017-11-11 09:54:32 +08:00
Maxime Coste
f8dee65d6e
c-family.kak: Remove invalid 'compl' keyword from C++ highlight
2017-11-09 10:43:46 +08:00
Maxime Coste
5791632a98
c-family.kak: use space separated words list
2017-11-09 10:25:03 +08:00
fsub
db15f7adc5
c-family.kak: Add missing C++ keywords, attributes, and types
2017-11-05 10:11:59 +01:00
fsub
1ad83745c2
c-family.kak: Sort keywords, attributes, values, and decorators
2017-11-05 10:11:59 +01: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
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
902724e558
c-family: auto close unions with a semicolon as well
2017-09-18 09:41:26 +09: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
Frank LENORMAND
50b635ce2d
rc c-family: Add a hook to the insert group
2017-06-29 13:29:48 +03:00
Maxime Coste
e73cd78288
Fix corner case in C family indenting
2017-06-13 10:19:38 +01:00
Maxime Coste
81118552c8
Fix missing hook removal command in c-family.kak
2017-06-07 12:44:00 +01:00
Frank LENORMAND
8794687f36
Revert "doc: Fix the documentation of the alt_dirs
option"
...
This reverts commit ef88b28392
.
2017-06-04 11:24:10 +03:00
Frank LENORMAND
ef88b28392
doc: Fix the documentation of the alt_dirs
option
2017-06-03 21:49:10 +03:00
Maxime Coste
3e4e4f6210
Add support for raw C++ strings in c-family highlighting
2017-05-25 06:51:39 +01:00
Maxime Coste
2f9b77b748
Smarter align to opening parenthesis/brace supporting multiline
2017-05-21 22:31:05 +01:00
Maxime Coste
c6508ee101
Merge remote-tracking branch 'lenormf/doc-public-options'
2017-05-21 07:09:37 +01:00
Maxime Coste
e43e44f9cc
Commit correct version of c-family indent change
2017-05-21 07:08:20 +01:00
Maxime Coste
cab0adaa53
Support aligning to opening { as well as ( in c-family indent
2017-05-20 11:08:13 +01:00
Frank LENORMAND
d59bafa2c1
rc: Simplify and optimize the alt
command
2017-05-16 18:20:19 +03:00
Frank LENORMAND
b9cdccd53a
rc: Document non-hidden options with -docstring
2017-05-16 14:35:43 +03:00
Maxime Coste
edc2a88643
Rename BufNew and BufOpen hooks to BufNewFile and BufOpenFile
...
Fixes #1225
2017-02-19 13:08:06 +00:00
Nick Mosher
e1927fa9c4
Adds faces module and function. Renames identifier face to variable.
2017-02-09 21:43:29 -05:00