From 2535a69eac6ce3abb6e6e9d1b3985bdef63e1c60 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Sat, 2 Jul 2005 21:42:40 +0000 Subject: Better ambigous comments handling. --- tests/85-comments-OK.asn1 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/85-comments-OK.asn1 (limited to 'tests/85-comments-OK.asn1') diff --git a/tests/85-comments-OK.asn1 b/tests/85-comments-OK.asn1 new file mode 100644 index 00000000..883eadbf --- /dev/null +++ b/tests/85-comments-OK.asn1 @@ -0,0 +1,23 @@ + +-- OK: Everything is fine + +-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1) +-- .spelio.software.asn1c.test (9363.1.5.1) +-- .85 + +ModuleTestComments + { iso org(3) dod(6) internet (1) private(4) enterprise(1) + spelio(9363) software(1) asn1c(5) test(1) 85 } + DEFINITIONS ::= +BEGIN + + T1 ::= SEQUENCE-- This is a comment-- { ... } + T2 ::= SEQUENCE--- This is a comment --- { ... } + + ----- Another ambiguous comment --- + + -- Immediately terminating ambiguous comment ---- + ------------- + -- cmt1 ---- cmt2 ---- + +END -- cgit v1.2.3