mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Merge pull request #1287 from mermaid-js/revert-1281-feature/1249_BlockComments
Revert "Multiline comments" - accidentally merged
This commit is contained in:
commit
2a55e74e11
@ -9,8 +9,7 @@
|
|||||||
%x string generic struct
|
%x string generic struct
|
||||||
|
|
||||||
%%
|
%%
|
||||||
\%\%[^\n]*\n* /* skip comments */
|
\%\%[^\n]*\n* /* do nothing */
|
||||||
\%\%\*((.|\n)*)\*\%\% /* multiline skip comments */
|
|
||||||
\n+ return 'NEWLINE';
|
\n+ return 'NEWLINE';
|
||||||
\s+ /* skip whitespace */
|
\s+ /* skip whitespace */
|
||||||
"classDiagram" return 'CLASS_DIAGRAM';
|
"classDiagram" return 'CLASS_DIAGRAM';
|
||||||
|
@ -10,8 +10,7 @@
|
|||||||
%x dir
|
%x dir
|
||||||
%x vertex
|
%x vertex
|
||||||
%%
|
%%
|
||||||
\%\%[^\n]*\n* /* skip comments */
|
\%\%[^\n]*\n* /* do nothing */
|
||||||
\%\%\*((.|\n)*)\*\%\% /* multiline skip comments */
|
|
||||||
["] this.begin("string");
|
["] this.begin("string");
|
||||||
<string>["] this.popState();
|
<string>["] this.popState();
|
||||||
<string>[^"]* return "STR";
|
<string>[^"]* return "STR";
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
\s+ /* skip whitespace */
|
\s+ /* skip whitespace */
|
||||||
\#[^\n]* /* skip comments */
|
\#[^\n]* /* skip comments */
|
||||||
\%%[^\n]* /* skip comments */
|
\%%[^\n]* /* skip comments */
|
||||||
\%\%\*((.|\n)*)\*\%\% /* multiline skip comments */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
---interactivity command---
|
---interactivity command---
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
\s+ /* skip all whitespace */
|
\s+ /* skip all whitespace */
|
||||||
\#[^\n]* /* skip comments */
|
\#[^\n]* /* skip comments */
|
||||||
\%%[^\n]* /* skip comments */
|
\%%[^\n]* /* skip comments */
|
||||||
\%\%\*((.|\n)*)\*\%\% /* multiline skip comments */
|
|
||||||
"gitGraph" return 'GG';
|
"gitGraph" return 'GG';
|
||||||
"commit" return 'COMMIT';
|
"commit" return 'COMMIT';
|
||||||
"branch" return 'BRANCH';
|
"branch" return 'BRANCH';
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
%%
|
%%
|
||||||
\%\%[^\n]* /* skip comments */
|
\%\%[^\n]* /* do nothing */
|
||||||
\%\%\*((.|\n)*)\*\%\% /* multiline skip comments */
|
|
||||||
\s+ /* skip whitespace */
|
\s+ /* skip whitespace */
|
||||||
"pie" return 'pie' ;
|
"pie" return 'pie' ;
|
||||||
[\s\n\r]+ return 'NL' ;
|
[\s\n\r]+ return 'NL' ;
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
<ID,ALIAS,LINE>((?!\n)\s)+ /* skip same-line whitespace */
|
<ID,ALIAS,LINE>((?!\n)\s)+ /* skip same-line whitespace */
|
||||||
<INITIAL,ID,ALIAS,LINE>\#[^\n]* /* skip comments */
|
<INITIAL,ID,ALIAS,LINE>\#[^\n]* /* skip comments */
|
||||||
\%%[^\n]* /* skip comments */
|
\%%[^\n]* /* skip comments */
|
||||||
\%\%\*((.|\n)*)\*\%\% /* multiline skip comments */
|
|
||||||
"participant" { this.begin('ID'); return 'participant'; }
|
"participant" { this.begin('ID'); return 'participant'; }
|
||||||
<ID>[^\->:\n,;]+?(?=((?!\n)\s)+"as"(?!\n)\s|[#\n;]|$) { yytext = yytext.trim(); this.begin('ALIAS'); return 'ACTOR'; }
|
<ID>[^\->:\n,;]+?(?=((?!\n)\s)+"as"(?!\n)\s|[#\n;]|$) { yytext = yytext.trim(); this.begin('ALIAS'); return 'ACTOR'; }
|
||||||
<ALIAS>"as" { this.popState(); this.popState(); this.begin('LINE'); return 'AS'; }
|
<ALIAS>"as" { this.popState(); this.popState(); this.begin('LINE'); return 'AS'; }
|
||||||
|
@ -33,11 +33,10 @@
|
|||||||
%%
|
%%
|
||||||
|
|
||||||
[\n]+ return 'NL';
|
[\n]+ return 'NL';
|
||||||
\s+ /* skip all whitespace */
|
\s+ /* skip all whitespace */
|
||||||
<ID,STATE,struct,LINE>((?!\n)\s)+ /* skip same-line whitespace */
|
<ID,STATE,struct,LINE>((?!\n)\s)+ /* skip same-line whitespace */
|
||||||
<INITIAL,ID,STATE,struct,LINE>\#[^\n]* /* skip comments */
|
<INITIAL,ID,STATE,struct,LINE>\#[^\n]* /* skip comments */
|
||||||
\%%[^\n]* /* skip comments */
|
\%%[^\n]* /* skip comments */
|
||||||
\%\%\*((.|\n)*)\*\%\% /* multiline skip comments */
|
|
||||||
|
|
||||||
"scale"\s+ { this.pushState('SCALE'); /* console.log('Got scale', yytext);*/ return 'scale'; }
|
"scale"\s+ { this.pushState('SCALE'); /* console.log('Got scale', yytext);*/ return 'scale'; }
|
||||||
<SCALE>\d+ return 'WIDTH';
|
<SCALE>\d+ return 'WIDTH';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user