mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
Add bit count syntax to packet diagram
This commit is contained in:
@@ -12,7 +12,12 @@ entry Packet:
|
||||
;
|
||||
|
||||
PacketBlock:
|
||||
start=INT('-' end=INT)? ':' label=STRING EOL
|
||||
(
|
||||
start=INT('-' (end=INT | bits=INT'bit''s'?))?
|
||||
| bits=INT'bit''s'?
|
||||
)
|
||||
':' label=STRING
|
||||
EOL
|
||||
;
|
||||
|
||||
terminal INT returns number: /0|[1-9][0-9]*/;
|
||||
|
Reference in New Issue
Block a user