Update make.rc error pattern matching
- Use the classic unix file:line:(col:)? pattern for matching. - The option `make_error_pattern` can be used to further restrict errors to be matched (to include / exclude warnings, etc.
This commit is contained in:
parent
c54a8ef987
commit
010453a2ac
|
@ -1,5 +1,5 @@
|
||||||
decl str makecmd make
|
decl str makecmd make
|
||||||
decl str make_error_pattern "[0-9]+: (?:fatal )?error:"
|
decl str make_error_pattern " (?:fatal )?error:"
|
||||||
|
|
||||||
decl str toolsclient
|
decl str toolsclient
|
||||||
decl -hidden int _make_current_error_line
|
decl -hidden int _make_current_error_line
|
||||||
|
@ -61,7 +61,7 @@ def -hidden make-jump %{
|
||||||
def make-next -docstring 'Jump to the next make error' %{
|
def make-next -docstring 'Jump to the next make error' %{
|
||||||
eval -collapse-jumps -try-client %opt{jumpclient} %{
|
eval -collapse-jumps -try-client %opt{jumpclient} %{
|
||||||
buffer '*make*'
|
buffer '*make*'
|
||||||
exec "%opt{_make_current_error_line}g<a-l>/%opt{make_error_pattern}<ret>"
|
exec "%opt{_make_current_error_line}g<a-l>/(?:\w:)?[^:]+:\d+:(?:\d+:)?%opt{make_error_pattern}<ret>"
|
||||||
make-jump
|
make-jump
|
||||||
}
|
}
|
||||||
try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } }
|
try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } }
|
||||||
|
@ -70,7 +70,7 @@ def make-next -docstring 'Jump to the next make error' %{
|
||||||
def make-prev -docstring 'Jump to the previous make error' %{
|
def make-prev -docstring 'Jump to the previous make error' %{
|
||||||
eval -collapse-jumps -try-client %opt{jumpclient} %{
|
eval -collapse-jumps -try-client %opt{jumpclient} %{
|
||||||
buffer '*make*'
|
buffer '*make*'
|
||||||
exec "%opt{_make_current_error_line}g<a-h><a-/>%opt{make_error_pattern}<ret>"
|
exec "%opt{_make_current_error_line}g<a-h><a-/>(?:\w:)?[^:]+:\d+:(?:\d+:)?%opt{make_error_pattern}<ret>"
|
||||||
make-jump
|
make-jump
|
||||||
}
|
}
|
||||||
try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } }
|
try %{ eval -client %opt{toolsclient} %{ exec %opt{_make_current_error_line}g } }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user