mirror of https://github.com/tstack/lnav.git
[highlight] turn off nesting for var highlight
This commit is contained in:
parent
a437d9fcc9
commit
3f3e6dcbdc
|
@ -429,6 +429,7 @@ setup_highlights(highlight_map_t& hm)
|
|||
"(?<!\\$)\\$\\((\\w+)\\)|"
|
||||
"(?<!\\$)\\$\\{(\\w+)\\}"
|
||||
")"))
|
||||
.with_nestable(false)
|
||||
.with_role(role_t::VCR_VARIABLE);
|
||||
hm[{highlight_source_t::INTERNAL, "rust.sym"}]
|
||||
= highlighter(xpcre_compile("\\b[A-Z_][A-Z0-9_]+\\b"))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
[35m "wra[0mpper": [
|
||||
{[35m"message"[0m:[35m""[0m
|
||||
[35m select Id from Ac[0m[4m[35mco[0m[35munt [0m[4m[35mwher[0m[35me id = $sfid[0m
|
||||
[35m select Id from Account where id = $sfid[0m
|
||||
[35m ^[0m
|
||||
[35m ERROR at Row:1:Column:34[0m
|
||||
[35m line 1:34 no viable alternative at character '$'[0m
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
[4mBuild[1][0m[4m[2][0m [4mDocs[3][0m[4m[4][0m [4mCoverage Status[5][0m[4m[6][0m [4mlnav[7][0m[4m[8][0m
|
||||
|
||||
▌[1] - https://github.com/tstack/lnav/workflows/ci-build/badge.svg
|
||||
▌[2] - https://github.com/tstack/lnav/actions?[4mquery[0m=workflow%3Aci-build
|
||||
▌[3] - https://readthedocs.org/projects/lnav/badge/?[4mversion[0m=latest&[4mstyle[0m=plastic
|
||||
▌[2] - https://github.com/tstack/lnav/actions?query=workflow%3Aci-build
|
||||
▌[3] - https://readthedocs.org/projects/lnav/badge/?version=latest&style=plastic
|
||||
▌[4] - https://docs.lnav.org
|
||||
▌[5] - https://coveralls.io/repos/github/tstack/lnav/badge.svg?[4mbranch[0m=master
|
||||
▌[6] - https://coveralls.io/github/tstack/lnav?[4mbranch[0m=master
|
||||
▌[5] - https://coveralls.io/repos/github/tstack/lnav/badge.svg?branch=master
|
||||
▌[6] - https://coveralls.io/github/tstack/lnav?branch=master
|
||||
▌[7] - https://snapcraft.io/lnav/badge.svg
|
||||
▌[8] - https://snapcraft.io/lnav
|
||||
|
||||
[4m<img[0m
|
||||
[4msrc[0m[4m="https://assets-global.website-files.com/6257adef93867e50d84d30e2/62594fddd654fc29fcc07359_cb48d2a8d4991281d7a6a95d2f58195e.svg"[0m
|
||||
[4mheight[0m[4m="20"/>[1][0m
|
||||
[4msrc="https://assets-global.website-files.com/6257adef93867e50d84d30e2/62594fddd654fc29fcc07359_cb48d2a8d4991281d7a6a95d2f58195e.svg"[0m
|
||||
[4mheight="20"/>[1][0m
|
||||
|
||||
▌[1] - https://discord.gg/erBPnKwz7R
|
||||
|
||||
|
@ -97,11 +97,11 @@ output those messages still in a non-binary representation:
|
|||
If using systemd v236 or newer, the output fields can be limited to
|
||||
the ones actually recognized by [37m[40m lnav [0m for increased efficiency:
|
||||
|
||||
▌[37m[40m$ journalctl -o json [0m[4m[37m[40m--output-fields[0m[37m[40m=MESSAGE,PRIORITY,_PID,SYSLOG_IDENTIFIER,_SYSTEMD_UNIT | lnav [0m
|
||||
▌[37m[40m$ journalctl -o json --output-fields=MESSAGE,PRIORITY,_PID,SYSLOG_IDENTIFIER,_SYSTEMD_UNIT | lnav [0m
|
||||
|
||||
If your system has been running for a long time, for increased
|
||||
efficiency you may want to limit the number of log lines fed into [37m[40m lnav[0m
|
||||
, e.g. via [37m[40m journalctl [0m's [37m[40m -n [0m or [37m[40m [0m[4m[37m[40m--since[0m[37m[40m=... [0m options.
|
||||
, e.g. via [37m[40m journalctl [0m's [37m[40m -n [0m or [37m[40m --since=... [0m options.
|
||||
|
||||
In case of a persistent journal, you may want to limit the number of
|
||||
log lines fed into [37m[40m lnav [0m via [37m[40m journalctl [0m's [37m[40m -b [0m option.
|
||||
|
|
|
@ -68,11 +68,11 @@ output those messages still in a non-binary representation:
|
|||
If using systemd v236 or newer, the output fields can be limited to
|
||||
the ones actually recognized by [37m[40m lnav [0m for increased efficiency:
|
||||
|
||||
▌[37m[40m$ journalctl -o json [0m[4m[37m[40m--output-fields[0m[37m[40m=MESSAGE,PRIORITY,_PID,SYSLOG_IDENTIFIER,_SYSTEMD_UNIT | lnav [0m
|
||||
▌[37m[40m$ journalctl -o json --output-fields=MESSAGE,PRIORITY,_PID,SYSLOG_IDENTIFIER,_SYSTEMD_UNIT | lnav [0m
|
||||
|
||||
If your system has been running for a long time, for increased
|
||||
efficiency you may want to limit the number of log lines fed into [37m[40m lnav[0m
|
||||
, e.g. via [37m[40m journalctl [0m's [37m[40m -n [0m or [37m[40m [0m[4m[37m[40m--since[0m[37m[40m=... [0m options.
|
||||
, e.g. via [37m[40m journalctl [0m's [37m[40m -n [0m or [37m[40m --since=... [0m options.
|
||||
|
||||
In case of a persistent journal, you may want to limit the number of
|
||||
log lines fed into [37m[40m lnav [0m via [37m[40m journalctl [0m's [37m[40m -b [0m option.
|
||||
|
|
|
@ -68,11 +68,11 @@ output those messages still in a non-binary representation:
|
|||
If using systemd v236 or newer, the output fields can be limited to
|
||||
the ones actually recognized by [37m[40m lnav [0m for increased efficiency:
|
||||
|
||||
▌[37m[40m$ journalctl -o json [0m[4m[37m[40m--output-fields[0m[37m[40m=MESSAGE,PRIORITY,_PID,SYSLOG_IDENTIFIER,_SYSTEMD_UNIT | lnav [0m
|
||||
▌[37m[40m$ journalctl -o json --output-fields=MESSAGE,PRIORITY,_PID,SYSLOG_IDENTIFIER,_SYSTEMD_UNIT | lnav [0m
|
||||
|
||||
If your system has been running for a long time, for increased
|
||||
efficiency you may want to limit the number of log lines fed into [37m[40m lnav[0m
|
||||
, e.g. via [37m[40m journalctl [0m's [37m[40m -n [0m or [37m[40m [0m[4m[37m[40m--since[0m[37m[40m=... [0m options.
|
||||
, e.g. via [37m[40m journalctl [0m's [37m[40m -n [0m or [37m[40m --since=... [0m options.
|
||||
|
||||
In case of a persistent journal, you may want to limit the number of
|
||||
log lines fed into [37m[40m lnav [0m via [37m[40m journalctl [0m's [37m[40m -b [0m option.
|
||||
|
|
Loading…
Reference in New Issue