Moved the -i flag for lex. Modified the grammar a bit in order to allow

2003-05-26  Raphael Quinet  <quinet@gamers.org>

	* plug-ins/imagemap/Makefile.am: Moved the -i flag for lex.
	* plug-ins/imagemap/imap_csim.y: Modified the grammar a bit in
	order to allow the attribute nohref="nohref".  Fixes the last
	part of bug #87687.
This commit is contained in:
Raphael Quinet 2003-05-26 15:46:21 +00:00 committed by Raphaël Quinet
parent 4c070aff16
commit 35872fbcbb
3 changed files with 18 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2003-05-26 Raphael Quinet <quinet@gamers.org>
* plug-ins/imagemap/Makefile.am: Moved the -i flag for lex.
* plug-ins/imagemap/imap_csim.y: Modified the grammar a bit in
order to allow the attribute nohref="nohref". Fixes the last
part of bug #87687.
2003-05-26 Michael Natterer <mitch@gimp.org>
* app/widgets/gimppaletteeditor.[ch]

View file

@ -155,18 +155,18 @@ LDADD = \
## code (cern_, csim_, ncsa_).
## Require flex because the standard lex does not support the -P option.
LEX=flex -i
LEX=flex
YACC=bison -y
imap_cern_lex.c: imap_cern.l
@$(RM) $@
$(LEX) $(LFLAGS) -Pcern_ -t $< > $@
$(LEX) $(LFLAGS) -Pcern_ -i -t $< > $@
imap_csim_lex.c: imap_csim.l
@$(RM) $@
$(LEX) $(LFLAGS) -Pcsim_ -t $< > $@
$(LEX) $(LFLAGS) -Pcsim_ -i -t $< > $@
imap_ncsa_lex.c: imap_ncsa.l
@$(RM) $@
$(LEX) $(LFLAGS) -Pncsa_ -t $< > $@
$(LEX) $(LFLAGS) -Pncsa_ -i -t $< > $@
imap_cern_parse.c: imap_cern.y
$(YACC) $(YFLAGS) -p cern_ $<

View file

@ -256,7 +256,13 @@ href_tag : HREF '=' STRING
}
;
nohref_tag : NOHREF
nohref_tag : NOHREF optional_value
{
}
;
optional_value : /* Empty */
| '=' STRING
{
}
;