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({
name: "d2",
extras: ($) => [],
word: ($) => $._word,
rules: {

View file

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

Binary file not shown.

View file

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

View file

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

View file

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