Andrey Orst
44483e06f7
Simplifed regex variant by mawww
2018-10-03 15:16:16 +03:00
Andrey Orst
5dce923785
use more complex regex to handle all suffix combinations
2018-10-02 19:01:53 +03:00
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
f6d5b23122
fixed hooks running when entered character was not alone on the line
2018-09-16 20:53:23 -07:00
Justin Frank
391e58625f
fixed mistakenly indenting matching characters
2018-09-16 17:05:32 -07:00
Maxime Coste
c8fd1e1cf6
Merge remote-tracking branch 'laelath/c-indent-edits'
2018-09-13 20:42:04 +10:00
Justin Frank
22bda7a7d2
removed unnecessary gi in matching deindent hook
2018-09-12 00:04:05 -07:00
Justin Frank
852d22a543
changed opening matching regexes to be simpler
2018-09-12 00:04:05 -07:00
Justin Frank
2f0b0d468c
added auto deindent to kak files
2018-09-12 00:04:05 -07:00
Justin Frank
fa9d13700a
Added deindenting of single statements
2018-09-11 21:21:25 -07:00
Maxime Coste
a8dce6abcd
Merge remote-tracking branch 'aver-d/dart_comment'
2018-08-19 08:05:25 +10:00
Maxime Coste
1485150b68
Use -once hooks to remove fifo directories
2018-08-19 08:04:31 +10:00
aver-d
d2f48b1942
Add dart to comment.kak
2018-08-17 23:23:59 +01: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
Maxim Baz
26bc173631
Fix python indent for lines ending with colon
2018-07-08 18:21:01 +02:00
Maxime Coste
79ec8d0010
Rename highlighters that used an underscore to use a dash
...
For example `show_matching` is now `show-matching`.
2018-07-08 19:14:15 +10:00
Maxime Coste
677ae610f4
Merge remote-tracking branch 'occivink/comment-regs'
2018-07-08 15:59:43 +10:00
Maxime Coste
f0b3925ba7
Merge remote-tracking branch 'maximbaz/improve-comment-line'
2018-07-07 09:39:46 +10:00
Maxim Baz
4b18a15a9f
kak_selections_desc is now space-separated
2018-07-05 23:46:21 +02:00
Maxim Baz
89280d0f20
Update according to bbtu
2018-07-05 23:29:53 +02:00
Olivier Perret
efcd94820c
comment.kak: don't modify registers as side effect
2018-07-05 20:49:51 +02:00
Maxime Coste
b06ad06507
Fix man.kak add-highlighter commands
2018-07-05 18:00:37 +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
43223fba8c
Fix various scripts highlighter commands
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
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
7abf04babd
Improve highlighting of Kakrc string regions
...
Unfortunately Strings that start with a quoted quote (like '''str')
are still incorrectly highlighted, a deeper refactoring of the regions
highlighter will be necessary.
2018-07-05 07:54:28 +10:00
Maxime Coste
759a253923
Change kakrc string highlighting to follow the new string syntax
2018-07-05 07:54:28 +10:00
Maxime Coste
27163106c7
Make register expansions expand to the full register content
...
Now that we have a nice standard way to express lists of strings,
registers can be fully exposed. An new $kak_main_reg_... env var
was added to provide the previous behaviour which is relied on by
doc.kak.
2018-07-05 07:54:28 +10:00
Maxime Coste
a6ba65c121
doc.kak: Fix post list syntax refactoring
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
86616c207d
Merge remote-tracking branch 'lenormf/synchronized-write'
2018-07-04 19:46:40 +10:00
Frank LENORMAND
ab2eade28d
rc: Synchronize important file writes
...
Fixes #2178
2018-07-04 09:55:05 +03:00
Maxim Baz
44f0230fe1
Add missing python3 keyword: nonlocal
2018-07-02 23:28:25 +02:00
Maxim Baz
7cfd0d1b39
trigger travis
2018-06-29 01:37:56 +02:00
Maxim Baz
d8a2588e9c
another attempt to fix macOS issue
2018-06-29 01:22:17 +02:00
Maxim Baz
c683b09287
Rename align-cursors-left to align-selections-left
2018-06-29 00:56:37 +02:00
Maxim Baz
5d689858df
Improve comment-line command
2018-06-28 23:47:48 +02:00
Tim Allen
3d0c19f8fb
Prevent the :format command from triggering hooks.
...
The :format command is often called from a BufWritePre hook to format the
current buffer, however the :format command itself calls `:write` to store the
buffer in a temporary location, potentially causing an infinite recursion.
If we disable hooks while running :format, there's no danger of that occurring.
2018-06-20 21:11:58 +10:00
Delapouite
5305c6b1ff
Add 'nop' keyword highlighting in .kak files
2018-06-01 10:46:05 +02:00
Delapouite
bbf484c596
Limit highlighter to line in grep buffers
2018-05-30 14:40:29 +02:00
Alyssa Ross
08c948f52b
Insert spaces after line comment markers
...
Every other text editor I've ever used does this, and this makes Kakoune
consistent with how comments work in e.g. its own source code.
2018-05-22 12:24:54 +01:00
Maxime Coste
8c6af54db3
c-family.kak: Fix comment line continuation behaviour
...
Fixes #2043
2018-05-19 14:15:16 +10:00