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 <assert.h>
|
||||||
|
|
||||||
#include <map.h>
|
#include <map.h>
|
||||||
// Repair what the STL bool definitions made wrong.
|
// Repair, what the STL bool definitions made wrong.
|
||||||
#ifdef bool
|
#ifdef bool
|
||||||
#undef bool
|
#undef bool
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1457,7 +1457,8 @@ calblockintro ([\{][\\](cal))|([\\]mathcal[\{])
|
||||||
|
|
||||||
/* Support for the Bibliography */
|
/* Support for the Bibliography */
|
||||||
/* ---------------------------- */
|
/* ---------------------------- */
|
||||||
[\\]begin[\{]thebibliography[\}][\{][^\}]*[\}] {
|
[\\]begin[\{]thebibliography[\}] {
|
||||||
|
BEGIN( NestingMode);
|
||||||
return BEGINBIBLIO;
|
return BEGINBIBLIO;
|
||||||
}
|
}
|
||||||
[\\]end[\{]thebibliography[\}] {
|
[\\]end[\{]thebibliography[\}] {
|
||||||
|
|
|
||||||
|
|
@ -681,10 +681,14 @@ global_tagged_declarator:
|
||||||
handleString( "</H4>\n");
|
handleString( "</H4>\n");
|
||||||
delete $2;
|
delete $2;
|
||||||
}
|
}
|
||||||
| BEGINBIBLIO
|
| BEGINBIBLIO '{' nested_token_sequence '}'
|
||||||
|
{ set_INITIAL = 1;
|
||||||
|
delete $3;
|
||||||
|
}
|
||||||
comment_sequence
|
comment_sequence
|
||||||
ENDBIBLIO { handleBiblio( * $2);
|
ENDBIBLIO {
|
||||||
delete $2;
|
handleBiblio( * $6);
|
||||||
|
delete $6;
|
||||||
}
|
}
|
||||||
| FUNCTION declaration comment_group {
|
| FUNCTION declaration comment_group {
|
||||||
handleFunctionDeclaration( $2->string(),
|
handleFunctionDeclaration( $2->string(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue