This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/kusto/test_kusto.txt
Iain Stenson 7e8b3a9dc8
Add Kusto lexer (#2552)
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
2023-11-07 13:13:56 +01:00

59 lines
1.5 KiB
Text

---input---
StormEvents
| where StartTime between (datetime(2007-11-01) .. datetime(2007-12-01))
| where State == "FLORIDA"
| count
---tokens---
'StormEvents' Name
'\n' Text.Whitespace
'|' Punctuation
' ' Text.Whitespace
'where' Keyword
' ' Text.Whitespace
'StartTime' Name
' ' Text.Whitespace
'between' Keyword
' ' Text.Whitespace
'(' Punctuation
'datetime' Keyword
'(' Punctuation
'2007' Literal.Number.Integer
'-' Punctuation
'11' Literal.Number.Integer
'-' Punctuation
'01' Literal.Number.Integer
')' Punctuation
' ' Text.Whitespace
'.' Error
'.' Error
' ' Text.Whitespace
'datetime' Keyword
'(' Punctuation
'2007' Literal.Number.Integer
'-' Punctuation
'12' Literal.Number.Integer
'-' Punctuation
'01' Literal.Number.Integer
')' Punctuation
')' Punctuation
'\n' Text.Whitespace
'|' Punctuation
' ' Text.Whitespace
'where' Keyword
' ' Text.Whitespace
'State' Name
' ' Text.Whitespace
'==' Punctuation
' ' Text.Whitespace
'"' Literal.String
'FLORIDA' Literal.String
'"' Literal.String
'\n' Text.Whitespace
'|' Punctuation
' ' Text.Whitespace
'count' Keyword
'\n' Text.Whitespace