summaryrefslogtreecommitdiff
path: root/source4/build/pasn1
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-07-01 21:57:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:50 -0500
commitdf06b3bb4912e2bedd83c438aebba5f54066f936 (patch)
treed36fb8fb5d1f474b9b48ffd13fad2029ae9011c3 /source4/build/pasn1
parentc08a2a9e10fc5d53865e4ab08e749b1c207be9ed (diff)
downloadsamba-df06b3bb4912e2bedd83c438aebba5f54066f936.tar.gz
samba-df06b3bb4912e2bedd83c438aebba5f54066f936.tar.bz2
samba-df06b3bb4912e2bedd83c438aebba5f54066f936.zip
r1321: find the '::=' directly by th lexer
metze (This used to be commit 52674db28203b3a7f35c36379670813f9297b5ed)
Diffstat (limited to 'source4/build/pasn1')
-rw-r--r--source4/build/pasn1/asn1.yp9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/build/pasn1/asn1.yp b/source4/build/pasn1/asn1.yp
index 5fa6460d7e..caaed4cb50 100644
--- a/source4/build/pasn1/asn1.yp
+++ b/source4/build/pasn1/asn1.yp
@@ -37,7 +37,7 @@ asn1_target:
;
asn1_delim:
- ':' ':' '='
+ delimitter
;
asn1_application:
@@ -166,6 +166,9 @@ anytext: #empty { "" }
| anytext '(' anytext ')' anytext { "$_[1]$_[2]$_[3]$_[4]$_[5]" }
;
+delimitter: DELIMITTER
+;
+
identifier: IDENTIFIER
;
@@ -224,6 +227,10 @@ again:
$parser->YYData->{LINE}++;
goto again;
}
+ if (s/^::=//) {
+ $parser->YYData->{LAST_TOKEN} = $1;
+ return('DELIMITTER',$1);
+ }
if (s/^\"(.*?)\"//) {
$parser->YYData->{LAST_TOKEN} = $1;
return('TEXT',$1);