summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2007-03-15 10:14:23 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2007-03-15 10:14:23 (GMT)
commitcc52853c15833c9a18be11c140b99d94d9e06e9e (patch)
tree5300b179faf00eea740dda6ee3be5343c70b1c79 /src/doctokenizer.l
parenteb591296685b8268427173e0a24f74abd987170d (diff)
downloadDoxygen-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.l33
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);