From 264f7920f0360cde054d88d1d4a2a0ef2cae7910 Mon Sep 17 00:00:00 2001 From: Tom PERRILLAT-COLLOMB Date: Sun, 27 Aug 2023 00:05:12 +0200 Subject: [PATCH] fix(er): allow underscore as leading char --- demos/er.html | 15 +++++++++++++++ docs/syntax/entityRelationshipDiagram.md | 2 +- .../src/diagrams/er/parser/erDiagram.jison | 2 +- .../src/diagrams/er/parser/erDiagram.spec.js | 9 ++++++++- .../src/docs/syntax/entityRelationshipDiagram.md | 2 +- 5 files changed, 26 insertions(+), 4 deletions(-) diff --git a/demos/er.html b/demos/er.html index 6b23d6b329d..027c2e2772d 100644 --- a/demos/er.html +++ b/demos/er.html @@ -125,6 +125,21 @@
+
+    erDiagram
+      _customer_order {
+          bigint id PK
+          bigint customer_id FK
+          text shipping_address 
+          text delivery_method 
+          timestamp_with_time_zone ordered_at 
+          numeric total_tax_amount 
+          numeric total_price 
+          text payment_method 
+      }
+    
+
+