fix: changed open and close markers as recommended

chnged from `()(` and `())` to `(((` and `)))`
This commit is contained in:
Guy Adler
2022-02-17 17:22:38 +01:00
parent d8c7a2894e
commit 04454cece0
5 changed files with 8 additions and 8 deletions

View File

@@ -161,7 +161,7 @@ describe('[Singlenodes] when parsing', () => {
it('should handle a single double circle node', function () {
// Silly but syntactically correct
const res = flow.parser.parse('graph TD;a()(A)();');
const res = flow.parser.parse('graph TD;a(((A)));');
const vert = flow.parser.yy.getVertices();
const edges = flow.parser.yy.getEdges();
@@ -172,7 +172,7 @@ describe('[Singlenodes] when parsing', () => {
it('should handle a single double circle node with whitespace after it', function () {
// Silly but syntactically correct
const res = flow.parser.parse('graph TD;a()(A)() ;');
const res = flow.parser.parse('graph TD;a(((A))) ;');
const vert = flow.parser.yy.getVertices();
const edges = flow.parser.yy.getEdges();
@@ -183,7 +183,7 @@ describe('[Singlenodes] when parsing', () => {
it('should handle a single double circle node with html in it (SN3)', function () {
// Silly but syntactically correct
const res = flow.parser.parse('graph TD;a()(A <br> end)();');
const res = flow.parser.parse('graph TD;a(((A <br> end)));');
const vert = flow.parser.yy.getVertices();
const edges = flow.parser.yy.getEdges();

View File

@@ -121,8 +121,8 @@ that id.
"[|" return 'VERTEX_WITH_PROPS_START';
"[(" return 'CYLINDERSTART';
")]" return 'CYLINDEREND';
"()(" return 'DOUBLECIRCLESTART';
")()" return 'DOUBLECIRCLEEND';
"(((" return 'DOUBLECIRCLESTART';
")))" return 'DOUBLECIRCLEEND';
\- return 'MINUS';
"." return 'DOT';
[\_] return 'UNDERSCORE';