mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
add warning highlighting to log file syntax definition
This commit is contained in:
1 parent
867cf63dd9
commit
b3ab843954
3 files changed
+22
-2
No files matched your search
+3
-1
@@ -26,7 +26,9 @@ contexts:
|
||||
- include: ip_addresses
|
||||
- include: numbers
|
||||
- match: \b(?i:fail(?:ure|ed)?|error|exception)\b
|
||||
scope: invalid.illegal.error.log
|
||||
scope: markup.error.log
|
||||
- match: \b(?i:warn(?:ing)?)\b
|
||||
scope: markup.warning.log
|
||||
#- include: scope:text.html.markdown#autolink-inet
|
||||
- match: \b\w+:/{2,3}
|
||||
scope: markup.underline.link.scheme.log
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
name: syslog
|
||||
file_extensions:
|
||||
- syslog
|
||||
scope: text.syslog
|
||||
scope: text.log.syslog
|
||||
contexts:
|
||||
main:
|
||||
- match: ^(\w+\s+\d+)\s+(\d{2}:\d{2}:\d{2})
|
||||
|
||||
Reference in new issue
Block a user