on master help sign in
add warning highlighting to log file syntax definition
commitb3ab8439547b6204167cb05ac7360160b54a1568 authorKeith Hall <kingkeith+github@gmail.com> dateFri 9 Apr 2021, 22:09 (6 years ago) parent867cf63
3 files changed+22−2
assets/patches/Monokai-Extended.tmTheme.patch+18 assets/syntaxes/02_Extra/log.sublime-syntax+3−1 assets/syntaxes/02_Extra/syslog.sublime-syntax+1−1
assets/patches/Monokai-Extended.tmTheme.patch+18
@@ -16,3 +16,21 @@ index 9c2aa3e..180cbbf 100644
1616 </dict>
1717 </dict>
1818 <dict>
19+@@ -1027,7 +1027,7 @@
20+ <key>name</key>
21+ <string>Invalid</string>
22+ <key>scope</key>
23+- <string>invalid</string>
24++ <string>invalid, markup.error</string>
25+ <key>settings</key>
26+ <dict>
27+ <key>background</key>
28+@@ -1042,7 +1042,7 @@
29+ <key>name</key>
30+ <string>Invalid deprecated</string>
31+ <key>scope</key>
32+- <string>invalid.deprecated</string>
33++ <string>invalid.deprecated, markup.warning</string>
34+ <key>settings</key>
35+ <dict>
36+ <key>background</key>
assets/syntaxes/02_Extra/log.sublime-syntax+3−1
@@ -26,7 +26,9 @@ contexts:
2626 - include: ip_addresses
2727 - include: numbers
2828 - match: \b(?i:fail(?:ure|ed)?|error|exception)\b
29− scope: invalid.illegal.error.log
29+ scope: markup.error.log
30+ - match: \b(?i:warn(?:ing)?)\b
31+ scope: markup.warning.log
3032 #- include: scope:text.html.markdown#autolink-inet
3133 - match: \b\w+:/{2,3}
3234 scope: markup.underline.link.scheme.log
assets/syntaxes/02_Extra/syslog.sublime-syntax+1−1
@@ -4,7 +4,7 @@
44name: syslog
55file_extensions:
66 - syslog
7−scope: text.syslog
7+scope: text.log.syslog
88contexts:
99 main:
1010 - match: ^(\w+\s+\d+)\s+(\d{2}:\d{2}:\d{2})