Files
RedBear-OS/local/recipes/kde/kf6-syntaxhighlighting/source/autotests/folding/highlight.asn1.fold
T

36 lines
1.3 KiB
Plaintext

-- comment with FIXME alerts
-- example code taken from https://en.wikipedia.org/wiki/ASN.1
FooProtocol DEFINITIONS ::= <beginfold id='1'>BEGIN</beginfold id='1'>
<beginfold id='2'>/*</beginfold id='2'>* Multiline comment
* with ### alerts
<endfold id='2'>*/</endfold id='2'>
FooQuestion ::= SEQUENCE <beginfold id='3'>{</beginfold id='3'>
trackingNumber INTEGER(0..199),
question IA5String
<endfold id='3'>}</endfold id='3'>
FooAnswer ::= SEQUENCE <beginfold id='3'>{</beginfold id='3'>
questionNumber INTEGER(10..20),
answer BOOLEAN
<endfold id='3'>}</endfold id='3'>
FooHistory ::= SEQUENCE <beginfold id='3'>{</beginfold id='3'>
questions SEQUENCE(SIZE(0..10)) OF FooQuestion,
answers SEQUENCE(SIZE(1..10)) OF FooAnswer,
anArray SEQUENCE(SIZE(100)) OF INTEGER(0..1000)
<endfold id='3'>}</endfold id='3'>
<endfold id='1'>END</endfold id='1'>
-- exmaples from ERA FCB barcode.asn
ASN-Module DEFINITIONS AUTOMATIC TAGS ::= <beginfold id='1'>BEGIN</beginfold id='1'>
IssuingData ::= SEQUENCE <beginfold id='3'>{</beginfold id='3'>
-- [...]
-- currency of the price: ISO4217 currency codes
currency IA5String (SIZE(3)) DEFAULT "EUR"
-- [...]
<endfold id='3'>}</endfold id='3'>
<endfold id='1'>END</endfold id='1'>