diff --git a/src/diagrams/gantt/parser/gantt.jison b/src/diagrams/gantt/parser/gantt.jison index 2f142ba2b..856148371 100644 --- a/src/diagrams/gantt/parser/gantt.jison +++ b/src/diagrams/gantt/parser/gantt.jison @@ -9,7 +9,6 @@ /* string is used to detect blocks that are surrounded by double quotes. */ /* copied from /src/diagrams/flowchart/parser/flow.jison */ -%x string %x click %x href %x callbackname @@ -25,7 +24,7 @@ [\s\n] this.popState(); /* e.g. return https://example.com for 'href https://example.com' */ [^\s\n]* return 'href'; /* the specified word must not contain whitespace */ -"call" this.begin("callbackname"); +"call"[\s]+ this.begin("callbackname"); \( this.popState(); this.begin("callbackargs"); [^(]* return 'callbackname'; \) this.popState();