New bibliography environment parsing.

This commit is contained in:
Lutz Kettner 1998-02-05 21:36:11 +00:00
parent 4de5e73808
commit e4b6b7ed19
3 changed files with 10 additions and 5 deletions

View File

@ -21,7 +21,7 @@
#include <assert.h>
#include <map.h>
// Repair what the STL bool definitions made wrong.
// Repair, what the STL bool definitions made wrong.
#ifdef bool
#undef bool
#endif

View File

@ -1457,7 +1457,8 @@ calblockintro ([\{][\\](cal))|([\\]mathcal[\{])
/* Support for the Bibliography */
/* ---------------------------- */
[\\]begin[\{]thebibliography[\}][\{][^\}]*[\}] {
[\\]begin[\{]thebibliography[\}] {
BEGIN( NestingMode);
return BEGINBIBLIO;
}
[\\]end[\{]thebibliography[\}] {

View File

@ -681,10 +681,14 @@ global_tagged_declarator:
handleString( "</H4>\n");
delete $2;
}
| BEGINBIBLIO
| BEGINBIBLIO '{' nested_token_sequence '}'
{ set_INITIAL = 1;
delete $3;
}
comment_sequence
ENDBIBLIO { handleBiblio( * $2);
delete $2;
ENDBIBLIO {
handleBiblio( * $6);
delete $6;
}
| FUNCTION declaration comment_group {
handleFunctionDeclaration( $2->string(),