diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2007-03-15 10:14:23 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2007-03-15 10:14:23 (GMT) |
commit | cc52853c15833c9a18be11c140b99d94d9e06e9e (patch) | |
tree | 5300b179faf00eea740dda6ee3be5343c70b1c79 /src/doctokenizer.l | |
parent | eb591296685b8268427173e0a24f74abd987170d (diff) | |
download | Doxygen-cc52853c15833c9a18be11c140b99d94d9e06e9e.zip Doxygen-cc52853c15833c9a18be11c140b99d94d9e06e9e.tar.gz Doxygen-cc52853c15833c9a18be11c140b99d94d9e06e9e.tar.bz2 |
Release-1.5.1-20070315
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index d26db37..8fd3856 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -358,6 +358,7 @@ REFWORD ("#"|"::")?({ID}("."|"#"|"::"|"-"|"/"))*({ID}(":")?){FUNCARG}? %x St_XmlOnly %x St_Verbatim %x St_Dot +%x St_Msc %x St_Param %x St_XRefItem %x St_XRefItem2 @@ -602,17 +603,25 @@ REFWORD ("#"|"::")?({ID}("."|"#"|"::"|"-"|"/"))*({ID}(":")?){FUNCARG}? g_token->verb=stripEmptyLines(g_token->verb); return RetVal_OK; } -<St_Verbatim>[^\\@\n]+ | -<St_Verbatim>\n | -<St_Verbatim>. { /* Verbatim text */ +<St_Verbatim>[^\\@\n]+ | +<St_Verbatim>\n | +<St_Verbatim>. { /* Verbatim text */ g_token->verb+=yytext; } -<St_Dot>{CMD}"enddot" { +<St_Dot>{CMD}"enddot" { return RetVal_OK; } -<St_Dot>[^\\@\n]+ | -<St_Dot>\n | -<St_Dot>. { /* dot text */ +<St_Dot>[^\\@\n]+ | +<St_Dot>\n | +<St_Dot>. { /* dot text */ + g_token->verb+=yytext; + } +<St_Msc>{CMD}"endmsc" { + return RetVal_OK; + } +<St_Msc>[^\\@\n]+ | +<St_Msc>\n | +<St_Msc>. { /* msc text */ g_token->verb+=yytext; } <St_Title>"\"" { // quoted title @@ -844,6 +853,10 @@ REFWORD ("#"|"::")?({ID}("."|"#"|"::"|"-"|"/"))*({ID}(":")?){FUNCARG}? g_endMarker="enddot"; BEGIN(St_SecSkip); } +<St_Sections>{CMD}"msc"/[^a-z_A-Z0-9] { + g_endMarker="endmsc"; + BEGIN(St_SecSkip); + } <St_Sections>{CMD}"htmlonly"/[^a-z_A-Z0-9] { g_endMarker="endhtmlonly"; BEGIN(St_SecSkip); @@ -1006,6 +1019,12 @@ void doctokenizerYYsetStateDot() BEGIN(St_Dot); } +void doctokenizerYYsetStateMsc() +{ + g_token->verb=""; + BEGIN(St_Msc); +} + void doctokenizerYYsetStateParam() { BEGIN(St_Param); |