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/asn1/nested-comment.txt
Gabriel Corona d2bedc5f5e
Add a basic lexer for ASN.1 module syntax (#2462)
Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
2023-07-18 16:52:38 +02:00

49 lines
1.1 KiB
Text

---input---
/*
Outer comment
/*
Inner comment
*/
Outer comment
*/
test ::= SEQUENCE {
a INTEGER,
b OCTET STRING,
b BIT STRING }
---tokens---
'/*' Comment.Multiline
'\n Outer comment\n ' Comment.Multiline
'/*' Comment.Multiline
'\n Inner comment\n ' Comment.Multiline
'*/' Comment.Multiline
'\n Outer comment\n' Comment.Multiline
'*/' Comment.Multiline
'\n\n' Text.Whitespace
'test' Name.Variable
' ' Text.Whitespace
'::=' Operator
' ' Text.Whitespace
'SEQUENCE' Keyword.Declaration
' ' Text.Whitespace
'{' Punctuation
'\n ' Text.Whitespace
'a' Error
' ' Text.Whitespace
'INTEGER' Keyword.Type
',' Punctuation
'\n ' Text.Whitespace
'b' Error
' ' Text.Whitespace
'OCTET STRING' Keyword.Type
',' Punctuation
'\n ' Text.Whitespace
'b' Error
' ' Text.Whitespace
'BIT STRING' Keyword.Type
' ' Text.Whitespace
'}' Punctuation
'\n' Text.Whitespace