mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-28 08:05:55 +00:00
fix(syntax): use start-of-line anchor for log levels
This commit is contained in:
1 parent
531d54b110
commit
3ca4a01be6
1 file changed
+4
-4
+4
-4
@@ -39,19 +39,19 @@ contexts:
|
|||||||
push: url-host
|
push: url-host
|
||||||
log_level_lines:
|
log_level_lines:
|
||||||
# Prevent retrying each lookahead at every position.
|
# Prevent retrying each lookahead at every position.
|
||||||
- match: \G(?=.*{{error}})
|
- match: ^(?=.*{{error}})
|
||||||
push:
|
push:
|
||||||
- error_line_meta
|
- error_line_meta
|
||||||
- main_pop_at_eol
|
- main_pop_at_eol
|
||||||
- match: \G(?=.*{{warning}})
|
- match: ^(?=.*{{warning}})
|
||||||
push:
|
push:
|
||||||
- warning_line_meta
|
- warning_line_meta
|
||||||
- main_pop_at_eol
|
- main_pop_at_eol
|
||||||
- match: \G(?=.*{{info}})
|
- match: ^(?=.*{{info}})
|
||||||
push:
|
push:
|
||||||
- info_line_meta
|
- info_line_meta
|
||||||
- main_pop_at_eol
|
- main_pop_at_eol
|
||||||
- match: \G(?=.*{{debug}})
|
- match: ^(?=.*{{debug}})
|
||||||
push:
|
push:
|
||||||
- debug_line_meta
|
- debug_line_meta
|
||||||
- main_pop_at_eol
|
- main_pop_at_eol
|
||||||
|
|||||||
Reference in new issue
Block a user