Maxime Coste
36e9e7eaf9
Change pipe diffing to work linewise
...
This should greatly improve performances as we only need to diff
lines instead of individual characters.
Closes #2678
Fixes #2037
2019-01-23 20:20:54 +11:00
Maxime Coste
370d10ccc7
Always select inserted text after piping
...
Relying on general selection update code is error prone due to
diffing.
Fixes #2394
2019-01-23 20:14:08 +11:00
Maxime Coste
c07f052de7
Default to release build
...
Fixes #2701
2019-01-22 19:41:58 +11:00
Maxime Coste
45995ad572
Update README regarding compiler compatibility
2019-01-22 19:39:45 +11:00
Maxime Coste
73023087f7
Fix travis.yml
2019-01-20 22:59:28 +11:00
Maxime Coste
eb8f785e91
Try to bypass clang crash
2019-01-20 22:59:28 +11:00
Maxime Coste
77b1216ace
Add a peephole optimization pass to the regex compiler
2019-01-20 22:59:28 +11:00
Maxime Coste
0364a99827
Refactor regex find next start not to be an instruction anymore
...
The same logic can be hard coded, avoiding one thread and 3
instructions, improving the regex matching speed.
2019-01-20 22:59:28 +11:00
Maxime Coste
fd043435e5
Split compile time regex flags from runtime ones
2019-01-20 22:59:28 +11:00
Maxime Coste
b76287ff99
Try to get g++-7 working on OSX travis-ci
2019-01-20 22:59:28 +11:00
Maxime Coste
8c2603ab3c
Support re-using the same ThreadedRegexVM for multiple iterations
...
This should reduce the number of allocations as the memory allocated
for the thread stack and the saves can be re-used between runs instead
of being cleared every time.
2019-01-20 22:59:28 +11:00
Maxime Coste
30897fd820
Fix warning on gcc 8
2019-01-20 22:59:28 +11:00
Maxime Coste
7b29192c24
Fix use of removed std::random_shuffle
2019-01-20 22:59:28 +11:00
Maxime Coste
5a8a174f81
Bump travis config to gcc-7 and xcode 10.1 to try to fix compilation
2019-01-20 22:59:28 +11:00
Maxime Coste
2afc147b2c
Refactor parsed regex children iteration to use regular range-for loops
2019-01-20 22:59:28 +11:00
Maxime Coste
566268d7bc
Refactor RegexIterator to use a Sentinel
2019-01-20 22:59:28 +11:00
Maxime Coste
3babd0685c
Switch to compilation standard to C++17
2019-01-20 22:59:28 +11:00
Maxime Coste
cb7401439b
Kakoune v2019.01.20
2019-01-20 22:52:01 +11:00
Maxime Coste
ae69759a53
Defer deletion of unsetted option to return to main loop
...
Fixes #2572
2019-01-20 22:46:40 +11:00
Maxime Coste
ca105f8cc6
Rework c-family shell expansions to speed them up slightly
2019-01-20 12:33:46 +11:00
Maxime Coste
a9ee4e8af4
Small optimization in clojure.kak awk script
2019-01-20 12:32:31 +11:00
Maxime Coste
a35a1591d0
Convert scheme.kak expensive shell scope to awk
2019-01-20 12:31:57 +11:00
Maxime Coste
8587ecaeb4
Slight simplification in c-family.kak
...
There is no need to have split types/macros into many different
variables.
2019-01-19 11:33:53 +11:00
Maxime Coste
2f7ec014b7
Use a here-document for clojure.kak awk script
2019-01-19 10:42:46 +11:00
Maxime Coste
7df7f5d38b
small code tweak
2019-01-19 10:34:12 +11:00
Maxime Coste
41ce602574
Fix some escaping issues in clojure.kak
2019-01-19 10:29:23 +11:00
Maxime Coste
4a358e0707
Merge remote-tracking branch 'eraserhd/clojure-highlighting-with-awk'
2019-01-19 10:14:05 +11:00
Jason Felice
52c0b7d6b4
Rewrite clojure highlighting to use awk
...
First, avoids the shell escaping issue mentioned in #2604 . Second,
speeds up Kakoune boot time.
2019-01-18 11:20:15 -05:00
Maxime Coste
0f9e6680e2
Support quoted here-documents in sh highlighting
2019-01-17 19:58:53 +11:00
Maxime Coste
da8058487b
Fix C++ raw strings not being checked for matching captures
2019-01-17 19:50:43 +11:00
Maxime Coste
0600724a8b
Improve some corner cases in c-family auto-indenting
2019-01-14 23:42:57 +11:00
Maxime Coste
30919b749c
Merge remote-tracking branch 'JJK96/bash'
2019-01-13 23:41:24 +11:00
Maxime Coste
445da8d7bf
Use an InvalidPolicy in utf8::dump and utf8::codepoint_size
...
Do not throw on invalid codepoints by default, ignore them.
Fixes #2686
2019-01-13 18:29:20 +11:00
Jan-Jaap Korpershoek
b306f6aa37
[Bash] Handle hashtag inside expansion ( Fix #2684 )
2019-01-11 00:02:36 +01:00
Maxime Coste
7dbd9bc1e2
Merge remote-tracking branch 'SolitudeSF/nimfix'
2019-01-10 20:28:07 +11:00
Jan-Jaap Korpershoek
c0588529c2
Merge branch 'master' into i3
2019-01-09 16:09:11 +01:00
Jan-Jaap Korpershoek
cb13fb63d3
Add new keywords
2019-01-09 16:08:14 +01:00
SolitudeSF
289b57bb67
rc: nim - properly highlight hex/oct/bin literals, refactor, fix more edgecases
2019-01-08 21:08:46 +02:00
fsub
059b086e62
c-family: Regroup C++ keywords and consider C++20
2019-01-06 19:22:48 +01:00
Maxime Coste
0e859f54da
Update changelog to document regex highlighter change
2019-01-03 22:57:15 +11:00
Maxime Coste
328c497be2
Add support for named captures to the regex impl and regex highlighter
...
ECMAScript is adding support for it, and it is a pretty isolated
change to do.
Fixes #2293
2019-01-03 22:55:50 +11:00
Maxime Coste
56ee329d79
Add Optional::value_or_compute for lazy computation of default value
2019-01-03 22:49:40 +11:00
Justin Frank
8a6a76fcd3
Added 'catch' to kakrc keywords
2019-01-02 13:30:34 -08:00
Maxime Coste
090ccafa8d
Merge remote-tracking branch 'Muffindrake/uch_stdlib'
2018-12-30 10:55:26 +11:00
SolitudeSF
d010b163fa
rc: nim - fix prefixed triplestring edgecase
2018-12-29 19:31:49 +02:00
Maxime Coste
81cef40171
Merge remote-tracking branch 'SolitudeSF/nimfix'
2018-12-29 10:34:45 +11:00
SolitudeSF
a9ef25f172
rc: add missing builtin types, fix displaying of triple string literals, float literals, character literals, type suffixes, enable raw string literals, operators highlighting in nim
2018-12-27 21:49:00 +02:00
Maxime Coste
e2f2503da4
Merge remote-tracking branch 'SolitudeSF/nimfix'
2018-12-28 06:43:24 +11:00
Maxime Coste
f54ba6d4b2
Merge remote-tracking branch 'lenormf/fix-git-notes'
2018-12-28 06:40:13 +11:00
SolitudeSF
a4e65d4706
rc: add missing builtin types, fix displaying of triple string literals, float literals, character literals, type suffixes, enable raw string literals in nim
2018-12-27 21:34:33 +02:00