diff --git a/src/diagrams/gantt/parser/gantt.jison b/src/diagrams/gantt/parser/gantt.jison index 856148371..358f157da 100644 --- a/src/diagrams/gantt/parser/gantt.jison +++ b/src/diagrams/gantt/parser/gantt.jison @@ -20,9 +20,9 @@ \#[^\n]* /* skip comments */ \%%[^\n]* /* skip comments */ -"href"[\s]+ this.begin("href"); /* return the next word after 'href' */ -[\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 */ +"href"[\s]+["] this.begin("href"); /* return the next double quoted word after 'href' */ +["] this.popState(); /* e.g. return https://example.com for 'href "https://example.com"' */ +[^"]* return 'href'; "call"[\s]+ this.begin("callbackname"); \( this.popState(); this.begin("callbackargs");