1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-15 01:18:31 +00:00

fix meta scope ordering to come before constant.numeric scope for times

This commit is contained in:
Keith Hall 2025-02-08 21:14:56 +02:00
parent b82b920420
commit c0898dedb1

View File

@ -8,10 +8,10 @@ scope: text.log.syslog
contexts:
main:
- match: ^(\w+\s+\d+)\s+(\d{2}:\d{2}:\d{2})
scope: meta.datetime.syslog constant.numeric.syslog
scope: meta.datetime.syslog
captures:
1: meta.date.syslog
2: meta.time.syslog
1: meta.date.syslog constant.numeric.syslog
2: meta.time.syslog constant.numeric.syslog
push: loghost
- match: ^
push: text