on master help sign in
Fix syslog syntax highlighting when no colon after "process"
commit133b06e94560ea0d94d201259543b4ad79823b0a authorKeith Hall <kingkeith+github@gmail.com> dateMon 16 Aug 2021, 21:57 (5 years ago) parent699f1e6
3 files changed+5−1
assets/syntaxes/02_Extra/syslog.sublime-syntax+1−1 tests/syntax-tests/highlighted/Syslog/example.syslog+2 tests/syntax-tests/source/Syslog/example.syslog+2
assets/syntaxes/02_Extra/syslog.sublime-syntax+1−1
@@ -20,7 +20,7 @@ contexts:
2020 scope: entity.other.attribute-name.loghost.syslog
2121 set: process
2222 process:
23− - match: ([\w.-]+)(?:(\[)(\d+)(\]))?(:)
23+ - match: ([\w.-]+)(?:(\[)(\d+)(\]))?([ :])
2424 captures:
2525 1: support.function.process.syslog
2626 2: punctuation.separator.pid.begin.syslog
tests/syntax-tests/highlighted/Syslog/example.syslog+2
@@ -12,3 +12,5 @@
1212Aug 11 13:29:06 hostname-here insomnia_insomnia.desktop[142666]: 13:29:06.316 › [updater] Updater not running platform=linux dev=false
1313Aug 11 13:36:34 192.168.220.5 nginx: 2021/08/11 13:36:34 [debug] 2031#2031: epoll add event: fd:6 op:1 ev:00002001
1414Aug 11 21:31:08 ::1 nginx: 2021/08/11 21:31:08 [debug] 760831#760831: epoll add event: fd:6 op:1 ev:10000001
15+Aug 11 21:40:31 hostname-here scop hello
16+Aug 16 21:38:21 hostname-here systemd[1]: Finished Cleanup of Temporary Directories.
tests/syntax-tests/source/Syslog/example.syslog+2
@@ -12,3 +12,5 @@ Apr 4 22:00:45 hostname-here dbus-daemon[1094]: [session uid=1000 pid=1094] Suc
1212Aug 11 13:29:06 hostname-here insomnia_insomnia.desktop[142666]: 13:29:06.316 › [updater] Updater not running platform=linux dev=false
1313Aug 11 13:36:34 192.168.220.5 nginx: 2021/08/11 13:36:34 [debug] 2031#2031: epoll add event: fd:6 op:1 ev:00002001
1414Aug 11 21:31:08 ::1 nginx: 2021/08/11 21:31:08 [debug] 760831#760831: epoll add event: fd:6 op:1 ev:10000001
15+Aug 11 21:40:31 hostname-here scop hello
16+Aug 16 21:38:21 hostname-here systemd[1]: Finished Cleanup of Temporary Directories.