Show a little lenience for white-space around names

This commit is contained in:
Ash Searle 2016-02-28 18:44:14 +00:00
parent d2e9918e5f
commit 7858186ecd

View File

@ -44,7 +44,7 @@
"sequenceDiagram" return 'SD';
"," return ',';
";" return 'NL';
[^\->:\n,;]+ return 'ACTOR';
[^\->:\n,;]+ { yytext = yytext.trim(); return 'ACTOR'; }
"->>" return 'SOLID_ARROW';
"-->>" return 'DOTTED_ARROW';
"->" return 'SOLID_OPEN_ARROW';