mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 08:51:46 +03:00
make.kak: Make column optional.
This commit is contained in:
parent
aac02410b1
commit
89956b5347
@ -16,8 +16,8 @@ def -shell-params make %{ %sh{
|
||||
}}
|
||||
|
||||
addhl -group / group make
|
||||
addhl -group /make regex "^([^:\n]+):(\d+):(\d+):\h+(?:((?:fatal )?error)|(warning)|(note)|(required from(?: here)?))?.*?$" 1:cyan 2:green 3:green 4:red 5:yellow 6:blue 7:yellow
|
||||
addhl -group /make line_option _make_current_error_line default,blue
|
||||
addhl -group /make regex "^([^:\n]+):(\d+):(?:(\d+):)?\h+(?:((?:fatal )?error)|(warning)|(note)|(required from(?: here)?))?.*?$" 1:cyan 2:green 3:green 4:red 5:yellow 6:blue 7:yellow
|
||||
addhl -group /make line_option _make_current_error_line default,rgb:606060
|
||||
|
||||
hook global WinSetOption filetype=make %{
|
||||
addhl ref make
|
||||
@ -31,12 +31,12 @@ decl str jumpclient
|
||||
def errjump -docstring 'Jump to error location' %{
|
||||
try %{
|
||||
exec gll<a-?> "Entering directory" <ret>
|
||||
exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(\d+):([^\n]+)\'" <ret>l
|
||||
exec s "Entering directory '([^']+)'.*\n([^:]+):(\d+):(?:(\d+):)?([^\n]+)\'" <ret>l
|
||||
set buffer _make_current_error_line %val{cursor_line}
|
||||
eval -try-client %opt{jumpclient} %rec{edit -existing %reg{1}/%reg{2} %reg{3} %reg{4}; echo -color Information '%reg{5}'}
|
||||
try %{ focus %opt{jumpclient} }
|
||||
} catch %{
|
||||
exec ghgl s "([^:]+):(\d+):(\d+):([^\n]+)\'" <ret>l
|
||||
exec ghgl s "([^:]+):(\d+):(?:(\d+):)?([^\n]+)\'" <ret>l
|
||||
set buffer _make_current_error_line %val{cursor_line}
|
||||
eval -try-client %opt{jumpclient} %rec{edit -existing %reg{1} %reg{2} %reg{3}; echo -color Information '%reg{4}'}
|
||||
try %{ focus %opt{jumpclient} }
|
||||
|
Loading…
Reference in New Issue
Block a user