1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-15 09:28:26 +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: contexts:
main: main:
- match: ^(\w+\s+\d+)\s+(\d{2}:\d{2}:\d{2}) - match: ^(\w+\s+\d+)\s+(\d{2}:\d{2}:\d{2})
scope: meta.datetime.syslog constant.numeric.syslog scope: meta.datetime.syslog
captures: captures:
1: meta.date.syslog 1: meta.date.syslog constant.numeric.syslog
2: meta.time.syslog 2: meta.time.syslog constant.numeric.syslog
push: loghost push: loghost
- match: ^ - match: ^
push: text push: text