#945 Handling recursive logn descriptions for states with quotes

This commit is contained in:
knsv 2019-09-21 11:31:09 -07:00
parent 921d5464a1
commit 1aa8b9b804
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@
<INITIAL,struct>"state"\s+ { this.pushState('STATE'); }
<STATE>["] this.begin("STATE_STRING");
<STATE>"as"\s* {this.popState('STATE_ID');return "AS";}
<STATE_ID>[^\n] {this.popState('STATE_ID');return "ID";}
<STATE>"as"\s* {this.popState();this.pushState('STATE_ID');return "AS";}
<STATE_ID>[^\n]* {this.popState();console.log('ID');return "ID";}
<STATE_STRING>["] this.popState();
<STATE_STRING>[^"]* { console.log('Long description:', yytext);return "STATE_DESCR";}
<STATE>[^\n\s\{]+ {console.log('COMPOSIT_STATE', yytext);return 'COMPOSIT_STATE';}