remove extras

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-05 11:36:14 +03:00
parent acf249ef24
commit a1bf1367fb
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
6 changed files with 3 additions and 21 deletions

View file

@ -1,6 +1,8 @@
module.exports = grammar({ module.exports = grammar({
name: "d2", name: "d2",
extras: ($) => [],
word: ($) => $._word, word: ($) => $._word,
rules: { rules: {

View file

@ -711,12 +711,7 @@
"value": "." "value": "."
} }
}, },
"extras": [ "extras": [],
{
"type": "PATTERN",
"value": "\\s"
}
],
"conflicts": [], "conflicts": [],
"precedences": [], "precedences": [],
"externals": [], "externals": [],

Binary file not shown.

View file

@ -1,7 +1,6 @@
================== ==================
Root attribute Root attribute
================== ==================
direction: value direction: value
--- ---
@ -13,7 +12,6 @@ direction: value
================== ==================
Inline shape attribute Inline shape attribute
================== ==================
foo.shape: oval foo.shape: oval
foo.bar.baz.shape: oval foo.bar.baz.shape: oval
@ -27,7 +25,6 @@ foo.bar.baz.shape: oval
================== ==================
Inline style attribute Inline style attribute
================== ==================
foo.style.opacity: 5 foo.style.opacity: 5
--- ---

View file

@ -1,7 +1,6 @@
================== ==================
Simple connection Simple connection
================== ==================
foo--bar foo--bar
biz->baz biz->baz
biz<->baz biz<->baz
@ -35,7 +34,6 @@ biz<-baz
================== ==================
Formatted connection Formatted connection
================== ==================
foo -- bar foo -- bar
biz -> baz biz -> baz
biz <-> baz biz <-> baz
@ -70,7 +68,6 @@ biz <- baz
============================= =============================
Complex identifier connection Complex identifier connection
============================= =============================
Foo Bar -- Biz Baz Foo Bar -- Biz Baz
-Bar-Foo- <- -Baz-Biz- -Bar-Foo- <- -Baz-Biz-
@ -92,7 +89,6 @@ Foo Bar -- Biz Baz
================== ==================
Inline connection Inline connection
================== ==================
foo--bar->biz->baz foo--bar->biz->baz
--- ---
@ -112,7 +108,6 @@ foo--bar->biz->baz
================== ==================
Many connections inline Many connections inline
================== ==================
foo--bar;biz->baz foo--bar;biz->baz
--- ---
@ -133,7 +128,6 @@ foo--bar;biz->baz
================== ==================
Descripted connection Descripted connection
================== ==================
foo--bar: Question? foo--bar: Question?
bar->baz: Yes bar->baz: Yes

View file

@ -1,7 +1,6 @@
================== ==================
Simple shape Simple shape
================== ==================
foo foo
bar bar
@ -15,7 +14,6 @@ bar
================== ==================
Complex identifier Complex identifier
================== ==================
Foo bar Foo bar
-Biz-baz- -Biz-baz-
@ -29,7 +27,6 @@ Complex identifier
================== ==================
Inline shapes Inline shapes
================== ==================
foo.baz foo.baz
--- ---
@ -46,7 +43,6 @@ foo.baz
================== ==================
Many shapes inline Many shapes inline
================== ==================
a;b;c a;b;c
--- ---
@ -60,9 +56,7 @@ a;b;c
================== ==================
Aliased shapes Aliased shapes
================== ==================
a: Foo Bar a: Foo Bar
a: Foo Bar; b: Biz Baz a: Foo Bar; b: Biz Baz
--- ---