mirror of https://github.com/CGAL/cgal
New bibliography environment parsing.
This commit is contained in:
parent
4de5e73808
commit
e4b6b7ed19
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1457,7 +1457,8 @@ calblockintro ([\{][\\](cal))|([\\]mathcal[\{])
|
|||
|
||||
/* Support for the Bibliography */
|
||||
/* ---------------------------- */
|
||||
[\\]begin[\{]thebibliography[\}][\{][^\}]*[\}] {
|
||||
[\\]begin[\{]thebibliography[\}] {
|
||||
BEGIN( NestingMode);
|
||||
return BEGINBIBLIO;
|
||||
}
|
||||
[\\]end[\{]thebibliography[\}] {
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue