Johannes Altmanninger
1f4362d0ba
rc perl.kak: highlight multiple regex modifiers
2020-11-08 06:16:27 +01:00
Maxime Coste
ba02c1d822
Merge remote-tracking branch 'eraserhd/nix-dash-in-word' into master
2020-11-08 15:19:20 +11:00
Maxime Coste
06b082da54
Merge remote-tracking branch 'krobelus/extra-hook-for-fish-insert' into master
2020-11-08 15:18:23 +11:00
Maxime Coste
2e7d93b2f4
Merge remote-tracking branch 'krobelus/ruby-heredoc' into master
2020-11-08 15:17:37 +11:00
Maxime Coste
086771593c
Fix regex error in perl highlighting
2020-11-08 15:14:07 +11:00
Maxime Coste
7832632d02
Merge remote-tracking branch 'krobelus/perl-quoted-heredocs' into master
2020-11-08 15:07:58 +11:00
Maxime Coste
04bd899959
Merge remote-tracking branch 'krobelus/git-indented-comment' into master
2020-11-08 15:07:15 +11:00
Maxime Coste
ba015a2263
Merge remote-tracking branch 'lenormf/kakrc-highlight-numbers' into master
2020-11-08 15:05:12 +11:00
Maxime Coste
1a64a0d601
Merge remote-tracking branch 'lenormf/kakrc-highlight-str-maps' into master
2020-11-08 15:04:45 +11:00
Maxime Coste
920d1333bd
Merge branch 'master' of http://github.com/tgirod/kakoune into master
2020-11-08 15:00:26 +11:00
Maxime Coste
fdd6411e69
Merge remote-tracking branch 'lenormf/fix-markdown_inline_code_blocks' into master
2020-11-08 14:57:50 +11:00
Maxime Coste
6cf3c13d97
Merge remote-tracking branch 'listentolist/tmux-repl' into master
2020-11-08 14:53:38 +11:00
Maxime Coste
19c0054e60
Merge remote-tracking branch 'npatsakula/spell_fix' into master
2020-11-08 14:50:25 +11:00
Maxime Coste
d1c27ad126
Merge remote-tracking branch 'occivink/c-alt-absolute' into master
2020-11-08 14:48:42 +11:00
Maxime Coste
e17f348a84
Merge remote-tracking branch 'Carsenal/javascript_regex_parsing' into master
2020-11-08 14:47:10 +11:00
Maxime Coste
2a5628659a
Merge remote-tracking branch 'pickfire/profile' into master
2020-11-08 14:33:02 +11:00
Patsakula Nikita
ff8d4d6567
[-] spell.kak: undocumented aspell buggy-behavior avoided.
2020-11-06 15:41:12 +03:00
Olivier Perret
7e736289ce
c-family: allow specifying absolute alt directory paths
...
alt-dirs which start with a / are considered to be absolute
2020-11-05 16:56:41 +01:00
Carson Riker
366d6fe759
Check for division before we check for regexes
2020-11-04 10:01:56 -05:00
Michał Kruszewski
f4f97835f9
VHDL filetype: fix auto inserting when indentation is mixed.
2020-11-03 19:35:05 +01:00
Maxime Coste
42301f32ca
doc.kak: Render links and other elements with a single ranges highlighter
2020-11-02 08:51:44 +11:00
Ivan Tham
1e2458772d
Highlight ~/.profile too
2020-11-01 17:00:12 +08:00
Maxime Coste
5d6136483c
Merge remote-tracking branch 'listentolist/x11-repl' into master
2020-11-01 10:10:39 +11:00
Jan-Jaap Korpershoek
bbdcc5fdec
Add very basic svelte support
2020-10-30 16:29:32 +01:00
Tilman List
d545d2c181
if the $WINDOWID is not set, use xdotool to get the window id
2020-10-30 14:35:20 +01:00
Tilman List
a5dbeeb5ee
simplify x11-repl by using x11-terminal
2020-10-30 12:19:53 +01:00
tgirod
f21867d2ac
fix comment highlighting
...
`#` will be considered a comment only if it is the first character of the line, including blank characters.
2020-10-28 09:36:28 +01:00
Tilman List
9955cfdd8d
changed scope of tmux_repl_id
from global
to current
...
By setting the tmux_repl_id in the `current` scope it is possible to have
different REPLs for different buffers or windows.
2020-10-27 17:20:33 +01:00
Tilman List
de6e86da46
changed the way the x11 REPL interaction works
...
Now it uses the window id to identify the REPL window. It is stored in
the option x11_repl_id. That way it is possible to have different REPLs
for different buffers or windows.
2020-10-27 14:26:27 +01:00
Cedric Sodhi
221fc38bd9
Disabled backtick escaping
...
Fixes issue #2377 by removing the ability to escape backticks in backticks in compliance with asciidoc's behaviour. Adjusted hooks.asciidoc, keys.asciidoc, and command-parsing.asciidoc to match accordingly.
2020-10-27 12:36:33 +01:00
Maxime Coste
90043e7df0
Replace write -atomic
with write -method <method>
...
`-atomic` becomes `-method replace` and `-method overwrite` is now
supported explicitely instead of only available through the
writemethod option.
Fixes #3827
2020-10-27 20:20:18 +11:00
Frank LENORMAND
f8a2176ed1
rc markdown: Highlight inline code blocks properly
...
This commit allows code blocks to be prefixed with tabulation
characters to be picked up and highlighted by the editor.
Indenting caused by the inclusion of an inline code block into a
list item is also taken into account. However, that might cause false
positives, for example with a hard wrapped list item indented with
an amount of spaces congruent to 4.
2020-10-23 16:35:01 +03:00
Frank LENORMAND
b36f7b8440
rc kakrc: Highlight numbers
2020-10-23 14:31:38 +03:00
Frank LENORMAND
72e2b4a9be
rc kakrc: Highlight str-to-str-map
types
2020-10-23 14:28:43 +03:00
Johannes Altmanninger
637153270f
rc git: indented # is not a comment in commit message
...
Git includes them in commit messages and notes, which is sometimes useful
when adding shell script snippets:
# this is included in the commit message!
Also, in rebase buffers, # only marks a comment if it is the first nonblank
character in a line.
2020-10-21 22:08:35 +02:00
Johannes Altmanninger
816bdc91f6
rc fish.kak: split fish-insert hook out from fish-indent
...
Same as in sh.kak; this allows to only disable the insert hook using
%opt{disabled_hooks}.
2020-10-19 19:01:17 +02:00
Johannes Altmanninger
335ee743a4
Fix overzealous closing of ruby heredocs
...
Fixes #2516
2020-10-19 19:01:17 +02:00
Johannes Altmanninger
19391f8c02
rc perl: quoted heredocs can be empty
...
Also the closing line cannot have any trailing characters.
Leading tabs are allowed if <<~ is used.
2020-10-19 19:01:17 +02:00
Jason Felice
b6df40c586
rc nix: dash in extra_word_chars
2020-10-19 11:53:08 -04:00
Maxime Coste
296937a2a2
Merge remote-tracking branch 'Carsenal/perl_regex_highlighters' into master
2020-10-19 20:23:57 +11:00
Maxime Coste
a716923546
Merge remote-tracking branch 'SeerLite/markdown-raw-attributes' into master
2020-10-19 20:23:11 +11:00
Maxime Coste
8153f34a04
Merge remote-tracking branch 'voroskoi/gopls-fix' into master
2020-10-19 20:09:31 +11:00
Maxime Coste
2f8e8e542a
Merge remote-tracking branch 'johnisom/sql-highlighting' into master
2020-10-19 20:08:50 +11:00
Maxime Coste
61f08e84f8
Merge remote-tracking branch 'eraserhd/nix-dash-fix' into master
2020-10-19 20:08:18 +11:00
voroskoi
dd6a275c3e
gopls.kak: use nop for removing temp dir
...
Co-authored-by: Frank LENORMAND <1379068+lenormf@users.noreply.github.com>
2020-10-17 09:47:07 +02:00
VÖRÖSKŐI András
cbbab07aab
gopls: Fix format/imports error reporting
...
Remove unnecessary single quotes and whitespaces in %file{}
Do not delete error file before sending to debug buffer
Fix gopls definition error handling and empty sting check
Silence shellcheck warnings
2020-10-16 22:40:58 +02:00
Michał Kruszewski
4aabe33a24
Add support for VHDL filetype.
2020-10-15 09:21:04 +02:00
John Isom
860e8d55eb
Fix function highlighting by adding lazy instead of greedy regexp quantifier
2020-10-14 14:54:43 -06:00
Jason Felice
c1f67972e4
rc nix: handle dashes embedded in identifiers
...
Some experimentation at the REPL showed that any number of leading dashes
are operators, while embedded dashes are identifier characters.
Closes #3803 .
2020-10-14 07:55:06 -04:00
Maxime Coste
1de058cdf8
Fix rust highlighting after regions highlighter behaviour change
2020-10-12 13:04:08 +11:00
SeerLite
a06dcf8c10
markdown.kak: Support pandoc's raw_attribute
2020-10-11 20:53:39 -03:00
Carson Riker
21fbda7c68
Fixed ending of region, as per @krobelus
2020-10-09 13:25:26 -04:00
Carson Riker
30d5aa203d
Added highlighted for curly-brace based sregexes
2020-10-09 10:45:42 -04:00
Maxime Coste
600be827b3
Merge remote-tracking branch 'pickfire/indent-yaml' into master
2020-10-08 19:51:05 +11:00
Maxime Coste
7fefb206dc
Merge remote-tracking branch 'SeerLite/lua-fixes' into master
2020-10-08 19:50:41 +11:00
Ivan Tham
c148fdbe9a
Rust always indent after {
2020-10-04 23:40:49 +08:00
Ivan Tham
b0ae30a443
Add missing rust indent after function {
2020-10-04 14:19:33 +08:00
SeerLite
3c3a4ec985
lua.kak: Correct -trim-indent hook and fix indent
2020-10-03 16:38:43 -03:00
Ivan Tham
1809035c15
Yaml indent after -
2020-10-02 14:24:04 +08:00
Maxime Coste
9401a9fd25
Merge remote-tracking branch 'Screwtapello/extensible-docs' into master
2020-10-01 22:16:23 +10:00
Maxime Coste
fcabffefe1
Merge remote-tracking branch 'pickfire/rust-indent' into master
2020-10-01 19:07:05 +10:00
Maxime Coste
88f6b65f35
Merge remote-tracking branch 'lboklin/master' into master
2020-09-30 21:29:38 +10:00
Maxime Coste
c9b4b0e355
Merge remote-tracking branch 'tototest99/ninjafile-upd' into master
2020-09-30 19:43:11 +10:00
Ivan Tham
bfca07da4d
Rust not to indent on hash
2020-09-30 00:37:35 +08:00
Ivan Tham
56e12013c8
Rust indent keyword check boundary
2020-09-28 00:09:12 +08:00
Ivan Tham
df68a77ed2
Rust reindent where to match block
2020-09-28 00:03:53 +08:00
Ivan Tham
785cbaeaed
Add rust test for empty line indent
2020-09-27 23:34:08 +08:00
Ivan Tham
5c8dfcdfa9
Rust improve align after partial statement
2020-09-27 15:53:15 +08:00
Ivan Tham
11d98a07dc
Rust align open paren for if and for
2020-09-27 15:52:42 +08:00
Simon Fowler
83277d5545
Improve shell indentation implementation.
...
Use the custom object match command for copying indentation of blocks,
rather than simply increasing/decreasing indentation when start and end
statements are encountered.
This fixes an issue where a newline added after an already correctly
placed `else` or `fi` would trigger an unnecessary deindent. Tests have
been added to ensure no regression in this behaviour.
2020-09-26 22:10:31 +10:00
antab
737134b993
fix: improve regex for build region
2020-09-22 13:49:11 +02:00
Maxime Coste
dd1a582b30
Merge branch 'patch-3' of http://github.com/blaggacao/kakoune into master
2020-09-22 21:28:41 +10:00
Maxime Coste
c6bfce0350
Merge remote-tracking branch 'Screwtapello/spell-replace-prompt' into master
2020-09-22 21:26:22 +10:00
Maxime Coste
fa375d1c46
Merge remote-tracking branch 'krobelus/dont-highlight-escaped-expansion' into master
2020-09-22 21:23:00 +10:00
Maxime Coste
154e11181f
Merge remote-tracking branch 'krobelus/perl-quoting' into master
2020-09-22 21:20:14 +10:00
Maxime Coste
57208a5481
Merge remote-tracking branch 'm-kru/go_kak_fix' into master
2020-09-22 21:18:52 +10:00
David Arnold
0d476aaa95
just: highlight function expressions
2020-09-22 00:24:29 -05:00
Tim Allen
93e5a3b51f
spell.kak: Replace "kak -f" with "sed" for efficiency.
2020-09-22 01:29:03 +10:00
antab
d0ee3dfe94
fix: add subninja and include to static_words
2020-09-21 13:41:19 +02:00
antab
d5ccdcfed4
fix(ninja filetype): add subninja and include declarations and fix builddir highlights
2020-09-21 13:34:27 +02:00
Tim Allen
f75f484b84
spell.kak: Present spelling suggestions with :prompt
...
Previously, spelling suggestions were presented with the :menu command,
requiring the user to cycle through wild and fanciful alternatives to get to the
one they wanted. Now, we present suggestions with the :prompt command, which
allows the user to type to filter down the list, and also to customise the
replacement after they've chose it (perhaps to fix capitalisation or add
apostrophe-S).
We also use the mispelled word as the initial content of the prompt. That
filters out the wildest alternatives by default, and allows the user to edit the
original word instead of forcing them to choose from among the suggestions. To
get the full list of suggestions, it's easy enough to just backspace until the
word you want appears in the list.
2020-09-21 21:07:35 +10:00
Michał Kruszewski
f78cd6daf8
Improve '}' auto inserting for go language.
...
Adding "} else if ... {" was not correctly handled.
2020-09-20 12:25:26 +02:00
Johannes Altmanninger
50775b26e4
*sh.kak: do not highlight expansions if their $ is escaped
2020-09-19 08:06:46 +02:00
Johannes Altmanninger
19b54a8a6e
Highlight more Perl quoting syntaxes
...
This adds highlighting for
- quoting operators qw, qr, and qx, like `qw< some words >`
- angle brackets after a quoting operator, like `q<string>`
- punctuation as quoting delimiter, like `q|string|`
- POD sections, which start with ^=\w and and with ^=cut
- heredocs; the marker can be a bare word, or a quoted word, like
print <<~ 'EOF'
single quoted heredoc
EOF
Closes #3736
No attempt is made to use different highlighting for interpolated (qq or
"") strings just yet. Recognizing quote boundaries is more important.
2020-09-18 20:55:12 +02:00
Frank LENORMAND
4025ac8167
rc modeline: Print the final command directly
2020-09-18 15:12:13 +03:00
Frank LENORMAND
2a51ebf105
rc modeline: Factorise the use of kakquote
2020-09-18 15:12:13 +03:00
Frank LENORMAND
2d78b0760d
rc modeline: Error out on unsupported formats
...
This commit makes `:modeline-parse` grab all lines that look like
modelines, and lets the parser deal with invalid formats.
This allows actually printing an error on unsupported modelines
formats, instead of ignoring them upfront.
2020-09-18 14:54:57 +03:00
Frank LENORMAND
30ee97386d
rc modeline: Use more idiomatic shell
2020-09-18 14:54:57 +03:00
Frank LENORMAND
7731fe4cb2
rc modeline: Print error messages correctly
2020-09-18 09:01:32 +03:00
Frank LENORMAND
6976b1dce4
rc modeline: Prevent command execution
...
This commit prevents specially crafted modelines from making the
editor execute arbitrary Kakoune commands.
By using a tabulation character as a separator, commands can be
injected in the value of the options listed in the modeline. For
example:
# kak: tabstop=2;set-option buffer pwned yes
Fixes #3735 .
2020-09-18 09:01:32 +03:00
Maxime Coste
dbd7e4da79
Merge remote-tracking branch 'voroskoi/gopls' into master
2020-09-17 19:49:33 +10:00
Maxime Coste
fd658f6995
Merge remote-tracking branch 'lenormf/fix-3733' into master
2020-09-17 19:39:48 +10:00
Maxime Coste
b8f56a65ed
Merge remote-tracking branch 'deviant/add-go-alternative-file' into master
2020-09-17 19:38:59 +10:00
Maxime Coste
cb047a4a7d
Merge remote-tracking branch 'tototest99/ninja-syntax' into master
2020-09-17 19:34:54 +10:00
Maxime Coste
81163ce48a
Merge remote-tracking branch 'Aajn/python-highlighter' into master
2020-09-17 19:33:51 +10:00
VÖRÖSKŐI András
9fe1a2a9a4
gopls: fixes based on krobelus@ review
2020-09-16 21:58:22 +02:00
antab
810689ad60
fix: variables adjacent to =
and in build declaration
2020-09-16 21:09:27 +02:00
Frank LENORMAND
95c095f3fb
rc modeline: Don't select more lines than configured
...
This commit addresses an off-by-one error that selected `modelines`+1
lines when looking for modelines in a buffer.
Note that setting `modelines` to 0 will still select one line.
Fixes #3733 .
2020-09-16 11:00:15 +03:00
antab
ea4f2b8837
feat: add basic ninjafile support
2020-09-16 00:03:17 +02:00
David Arnold
1ff9895fe4
just: re-implment bash/sh interpreter
2020-09-15 16:32:07 -05:00