Skip to content

Commit

Permalink
Merge pull request #7 from tenzir/topic/fix-timestamps
Browse files Browse the repository at this point in the history
Fix highlighting of timestamps
  • Loading branch information
jachris authored Jan 22, 2025
2 parents 2e19371 + 2b56aa1 commit bed6de5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions syntaxes/tql.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@
]
},
{
"name": "constant.numeric",
"match": "[0-9][0-9_]*(\\.[0-9][0-9_]*)?([a-zA-Z_][a-zA-Z_0-9]*)?",
"comment": "sign is not included because foo-42"
"name": "constant.tql.time",
"match": "[0-9]{4}-[0-9]{1,2}-[T0-9\\-+:Z]*"
},
{
"name": "constant.tql.ipv4",
Expand All @@ -160,6 +159,11 @@
"name": "constant.tql.ipv6",
"match": "([0-9a-fA-F]*:){2,}[0-9a-fA-F]*(\\.[0-9]+|:[0-9a-fA-F]*)*"
},
{
"name": "constant.numeric",
"match": "[0-9][0-9_]*(\\.[0-9][0-9_]*)?([a-zA-Z_][a-zA-Z_0-9]*)?",
"comment": "sign is not included because foo-42"
},
{
"match": "(\\w+)(\\$|::)",
"captures": {
Expand Down

0 comments on commit bed6de5

Please sign in to comment.