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/elpi/test_namespace.txt
Enrico Tassi a502df0a3e
Lexer for new language Elpi (#1894)
* lexers: add Elpi

* test: elpi

* Fix copyright

* address code review
2021-12-12 13:35:42 +01:00

35 lines
754 B
Text

---input---
namespace foo.bar {
baz :- std.do! [].
}
shorten foo. { bar }.
---tokens---
'namespace' Keyword.Declaration
' ' Text.Whitespace
'foo.bar' Text
' ' Text.Whitespace
'{\n' Text
' ' Text.Whitespace
'baz' Text
' ' Text.Whitespace
':-' Keyword.Declaration
' ' Text.Whitespace
'std.do!' Text
' ' Text.Whitespace
'[]' Keyword.Declaration
'.' Operator
'\n' Text.Whitespace
'}\n' Text
'shorten' Keyword.Declaration
' ' Text.Whitespace
'foo.' Text
' ' Text.Whitespace
'{ ' Text
'bar' Text
' ' Text.Whitespace
'}.' Text
'\n' Text.Whitespace