summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-04-04 16:55:21 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-04-04 16:55:21 (GMT)
commitafa248d63e73886a6f0dc0cdb285d18959a0a963 (patch)
tree7e071ac6d5a1b386b87c13442b566e90ada9b34d /src/doctokenizer.l
parent97415f7b4504d2be65338464731d7bbb4aa4d993 (diff)
downloadDoxygen-afa248d63e73886a6f0dc0cdb285d18959a0a963.zip
Doxygen-afa248d63e73886a6f0dc0cdb285d18959a0a963.tar.gz
Doxygen-afa248d63e73886a6f0dc0cdb285d18959a0a963.tar.bz2
Extending startuml with extra figure types
Not all diagrams can be created with the PlantUML `@startuml` command but need another PlantUML `@start...` command. This wil look like `@start<engine>` where currently supported are the following `<engine>`'s: `uml`, `bpm`, `wire`, `dot`, `ditaa`, `salt`, `math`, `latex`, `gantt`, `mindmap`, `wbs`, `yaml`, `creole`, `json` and `flow`. By default the `<engine>` is `uml`. The `<engine>` can be specified as an option. Explicitly the option variant has been chosen so we won't get an explosion of extra commands.
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index c380cd2..6cb196c 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -964,10 +964,8 @@ RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revisio
lineCount(yytext,yyleng);
g_token->verb+=yytext;
}
-<St_PlantUMLOpt>{BLANK}*"{"[^}]*"}" { // case 1: file name is specified as {filename}
+<St_PlantUMLOpt>{BLANK}*"{"[a-zA-Z_,:0-9\. ]*"}" { // case 1: options present
g_token->sectionId = QCString(yytext).stripWhiteSpace();
- // skip curly brackets around the optional image name
- g_token->sectionId = g_token->sectionId.mid(1,g_token->sectionId.length()-2).stripWhiteSpace();
return RetVal_OK;
}
<St_PlantUMLOpt>{BLANK}*{FILEMASK}{BLANK}+/{ID}"=" { // case 2: plain file name specified followed by an attribute