Skip to content

Commit

Permalink
Merge 63fbcf0 into 7bf35a8
Browse files Browse the repository at this point in the history
  • Loading branch information
Enteee committed Aug 20, 2019
2 parents 7bf35a8 + 63fbcf0 commit 84c79d2
Show file tree
Hide file tree
Showing 8 changed files with 1,749 additions and 1,471 deletions.
1,600 changes: 865 additions & 735 deletions src/plantuml-trace.js

Large diffs are not rendered by default.

1,578 changes: 843 additions & 735 deletions src/plantuml.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/plantuml.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
PlantUMLFile
= (
(!"@startuml" .)*
"@startuml" _ NewLine
"@startuml" _ DiagramId? _ NewLine
uml:UML
"@enduml" _ NewLine?
(!"@startuml" .)*
Expand All @@ -14,6 +14,9 @@ PlantUMLFile
}
)*

DiagramId
= "(" _ "id" _ "=" Name ")"

UML
= elements:UMLElement*
{
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/ignore-preprocessor-args/in.plantuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@startuml(id=MY_OWN_ID)
@enduml
5 changes: 5 additions & 0 deletions test/fixtures/ignore-preprocessor-args/parse-out.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{
"elements": []
}
]
4 changes: 4 additions & 0 deletions test/fixtures/ignore-preprocessor-args/parse-out.graph
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"nodes": [],
"edges": []
}
10 changes: 10 additions & 0 deletions test/fixtures/ignore-preprocessor-args/parseFile-out.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"name": "test/fixtures/ignore-preprocessor-args/in.plantuml",
"diagrams": [
{
"elements": []
}
]
}
]
16 changes: 16 additions & 0 deletions test/fixtures/ignore-preprocessor-args/parseFile-out.graph
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"nodes": [
{
"name": "test/fixtures/ignore-preprocessor-args/in.plantuml",
"diagrams": [
{
"elements": []
}
],
"id": "test/fixtures/ignore-preprocessor-args/in.plantuml",
"type": "File",
"hidden": true
}
],
"edges": []
}

0 comments on commit 84c79d2

Please sign in to comment.