mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-27 16:08:39 +01:00
add warning highlighting to log file syntax definition
This commit is contained in:
parent
867cf63dd9
commit
b3ab843954
18
assets/patches/Monokai-Extended.tmTheme.patch
vendored
18
assets/patches/Monokai-Extended.tmTheme.patch
vendored
@ -16,3 +16,21 @@ index 9c2aa3e..180cbbf 100644
|
|||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
|
@@ -1027,7 +1027,7 @@
|
||||||
|
<key>name</key>
|
||||||
|
<string>Invalid</string>
|
||||||
|
<key>scope</key>
|
||||||
|
- <string>invalid</string>
|
||||||
|
+ <string>invalid, markup.error</string>
|
||||||
|
<key>settings</key>
|
||||||
|
<dict>
|
||||||
|
<key>background</key>
|
||||||
|
@@ -1042,7 +1042,7 @@
|
||||||
|
<key>name</key>
|
||||||
|
<string>Invalid deprecated</string>
|
||||||
|
<key>scope</key>
|
||||||
|
- <string>invalid.deprecated</string>
|
||||||
|
+ <string>invalid.deprecated, markup.warning</string>
|
||||||
|
<key>settings</key>
|
||||||
|
<dict>
|
||||||
|
<key>background</key>
|
||||||
|
4
assets/syntaxes/02_Extra/log.sublime-syntax
vendored
4
assets/syntaxes/02_Extra/log.sublime-syntax
vendored
@ -26,7 +26,9 @@ contexts:
|
|||||||
- include: ip_addresses
|
- include: ip_addresses
|
||||||
- include: numbers
|
- include: numbers
|
||||||
- match: \b(?i:fail(?:ure|ed)?|error|exception)\b
|
- 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
|
#- include: scope:text.html.markdown#autolink-inet
|
||||||
- match: \b\w+:/{2,3}
|
- match: \b\w+:/{2,3}
|
||||||
scope: markup.underline.link.scheme.log
|
scope: markup.underline.link.scheme.log
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
name: syslog
|
name: syslog
|
||||||
file_extensions:
|
file_extensions:
|
||||||
- syslog
|
- syslog
|
||||||
scope: text.syslog
|
scope: text.log.syslog
|
||||||
contexts:
|
contexts:
|
||||||
main:
|
main:
|
||||||
- match: ^(\w+\s+\d+)\s+(\d{2}:\d{2}:\d{2})
|
- match: ^(\w+\s+\d+)\s+(\d{2}:\d{2}:\d{2})
|
||||||
|
Loading…
Reference in New Issue
Block a user