on master help sign in
Allow period in syslog loghost

Makes it work with FQDN's and IPv4 addresses.

commitf508ddf66d7d9e08616d8541ca7a090dee850c97 authorVille Skyttä <ville.skytta@iki.fi> dateWed 11 Aug 2021, 16:43 (5 years ago) parent02218c9
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
@@ -10,3 +10,4 @@
1010Apr 4 16:32:07 hostname-here NetworkManager[740]: <info> [1617629527.1101] manager: NetworkManager state is now CONNECTED_GLOBAL
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
13+Aug 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
tests/syntax-tests/source/Syslog/example.syslog+1
@@ -10,3 +10,4 @@ Apr 4 09:30:01 hostname-here CRON[89278]: (root) CMD ([ -x /etc/init.d/anacron
1010Apr 4 16:32:07 hostname-here NetworkManager[740]: <info> [1617629527.1101] manager: NetworkManager state is now CONNECTED_GLOBAL
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
13+Aug 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