#1206 Updated the classDiagram JISON to not allow EOF or another '{' until first one is closed

This commit is contained in:
Ashish Jain 2020-01-15 20:29:13 +01:00
parent 0e02cf5c86
commit 2a3de1a090
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@
\s+ /* skip whitespace */
"classDiagram" return 'CLASS_DIAGRAM';
[\{] { this.begin("struct"); /*console.log('Starting struct');*/return 'STRUCT_START';}
<struct><<EOF>> return "EOF_IN_STRUCT";
<struct>[\{] return "OPEN_IN_STRUCT";
<struct>\} { /*console.log('Ending struct');*/this.popState(); return 'STRUCT_STOP';}}
<struct>[\n] /* nothing */
<struct>[^\{\}\n]* { /*console.log('lex-member: ' + yytext);*/ return "MEMBER";}