on master help sign in
Allow colon in syslog loghost

Makes it work with IPv6 addresses.

commit2d92a4dbb3fdf944ddcbc09730a29248d0b45524 authorVille Skyttä <ville.skytta@iki.fi> dateWed 11 Aug 2021, 21:36 (5 years ago) parentf508ddf
3 files changed+3−1
assets/syntaxes/02_Extra/syslog.sublime-syntax+1−1 tests/syntax-tests/highlighted/Syslog/example.syslog+1 tests/syntax-tests/source/Syslog/example.syslog+1
assets/syntaxes/02_Extra/syslog.sublime-syntax+1−1
@@ -16,7 +16,7 @@ contexts:
1616 - match: ^
1717 push: text
1818 loghost:
19− - match: '[\w.-]+'
19+ - match: '[\w:.-]+'
2020 scope: entity.other.attribute-name.loghost.syslog
2121 set: process
2222 process:
tests/syntax-tests/highlighted/Syslog/example.syslog+1
@@ -11,3 +11,4 @@
1111Apr 4 22:00:45 hostname-here dbus-daemon[1094]: [session uid=1000 pid=1094] Successfully activated service 'io.github.celluloid_player.Celluloid'
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
14+Aug 11 21:31:08 ::1 nginx: 2021/08/11 21:31:08 [debug] 760831#760831: epoll add event: fd:6 op:1 ev:10000001
tests/syntax-tests/source/Syslog/example.syslog+1
@@ -11,3 +11,4 @@ Apr 4 16:32:07 hostname-here NetworkManager[740]: <info> [1617629527.1101] man
1111Apr 4 22:00:45 hostname-here dbus-daemon[1094]: [session uid=1000 pid=1094] Successfully activated service 'io.github.celluloid_player.Celluloid'
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
14+Aug 11 21:31:08 ::1 nginx: 2021/08/11 21:31:08 [debug] 760831#760831: epoll add event: fd:6 op:1 ev:10000001