Skip to content

Commit bed6de5

Browse files
authored
Merge pull request #7 from tenzir/topic/fix-timestamps
Fix highlighting of timestamps
2 parents 2e19371 + 2b56aa1 commit bed6de5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

syntaxes/tql.tmLanguage.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@
148148
]
149149
},
150150
{
151-
"name": "constant.numeric",
152-
"match": "[0-9][0-9_]*(\\.[0-9][0-9_]*)?([a-zA-Z_][a-zA-Z_0-9]*)?",
153-
"comment": "sign is not included because foo-42"
151+
"name": "constant.tql.time",
152+
"match": "[0-9]{4}-[0-9]{1,2}-[T0-9\\-+:Z]*"
154153
},
155154
{
156155
"name": "constant.tql.ipv4",
@@ -160,6 +159,11 @@
160159
"name": "constant.tql.ipv6",
161160
"match": "([0-9a-fA-F]*:){2,}[0-9a-fA-F]*(\\.[0-9]+|:[0-9a-fA-F]*)*"
162161
},
162+
{
163+
"name": "constant.numeric",
164+
"match": "[0-9][0-9_]*(\\.[0-9][0-9_]*)?([a-zA-Z_][a-zA-Z_0-9]*)?",
165+
"comment": "sign is not included because foo-42"
166+
},
163167
{
164168
"match": "(\\w+)(\\$|::)",
165169
"captures": {

0 commit comments

Comments
 (0)