diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-07-01 21:57:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:50 -0500 |
commit | df06b3bb4912e2bedd83c438aebba5f54066f936 (patch) | |
tree | d36fb8fb5d1f474b9b48ffd13fad2029ae9011c3 /source4/build/pasn1 | |
parent | c08a2a9e10fc5d53865e4ab08e749b1c207be9ed (diff) | |
download | samba-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.yp | 9 |
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); |