-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for attribute value continuation across multiple lines
- Loading branch information
1 parent
0e3e105
commit 6820069
Showing
34 changed files
with
279 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:bs: \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"bs": { "value": "\\", "location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 6 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 6 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 6 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:lines: foo \ | ||
\ | ||
bar \ | ||
\ | ||
baz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"lines": { "value": "foo\nbar\nbaz", "location": [{ "line": 1, "col": 1 }, { "line": 5, "col": 3 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 5, "col": 3 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 5, "col": 3 }] | ||
} |
1 change: 1 addition & 0 deletions
1
test/tests/block/attribute/escaped-value-continuation-input.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:drive: C:\\ |
11 changes: 11 additions & 0 deletions
11
test/tests/block/attribute/escaped-value-continuation-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"drive": { "value": "C:\\", "location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 12 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 12 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 12 }] | ||
} |
1 change: 1 addition & 0 deletions
1
...sts/block/attribute/escaped-value-continuation-preceded-by-backslash-input.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:dbs: \\\\ |
11 changes: 11 additions & 0 deletions
11
test/tests/block/attribute/escaped-value-continuation-preceded-by-backslash-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"dbs": { "value": "\\\\", "location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 10 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 10 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 10 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:bars: Roses are red, + \ | ||
Violets are blue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"bars": { "value": "Roses are red, +\nViolets are blue.", "location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 17 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 17 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 17 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
:filetree: article.adoc \ | ||
assets/ \ | ||
example.rb \ | ||
image.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"filetree": { "value": "article.adoc\nassets/\n example.rb\n image.png", "location": [{ "line": 1, "col": 1 }, { "line": 4, "col": 11 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 4, "col": 11 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 4, "col": 11 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:output: 499 passing \ | ||
1 pending |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"output": { "value": "499 passing\n1 pending", "location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 9 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 9 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 9 }] | ||
} |
2 changes: 2 additions & 0 deletions
2
test/tests/block/attribute/interrupted-by-attribute-entry-input.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:bs: \ | ||
:org: ACME |
12 changes: 12 additions & 0 deletions
12
test/tests/block/attribute/interrupted-by-attribute-entry-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"bs": { "value": "\\", "location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 6 }] }, | ||
"org": { "value": "ACME", "location": [{ "line": 2, "col": 1 }, { "line": 2, "col": 10 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 10 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 10 }] | ||
} |
5 changes: 5 additions & 0 deletions
5
test/tests/block/attribute/interrupted-by-empty-line-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"options": { | ||
"parseInlines": true | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
test/tests/block/attribute/interrupted-by-empty-line-input.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:appsdir: C:\Program Files\ | ||
|
||
Look for the installed application in {appsdir}. |
26 changes: 26 additions & 0 deletions
26
test/tests/block/attribute/interrupted-by-empty-line-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"appsdir": { "value": "C:\\Program Files\\", "location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 27 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 27 }] | ||
}, | ||
"blocks": [ | ||
{ | ||
"name": "paragraph", | ||
"type": "block", | ||
"inlines": [ | ||
{ | ||
"name": "text", | ||
"type": "string", | ||
"value": "Look for the installed application in C:\\Program Files\\.", | ||
"location": [{ "line": 3, "col": 1 }, { "line": 3, "col": 48 }] | ||
} | ||
], | ||
"location": [{ "line": 3, "col": 1 }, { "line": 3, "col": 48 }] | ||
} | ||
], | ||
"location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 48 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:icons: font | ||
:toc: preamble | ||
:toclevels: 1 |
13 changes: 13 additions & 0 deletions
13
test/tests/block/attribute/leading-indentation-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"icons": { "value": "font", "location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 16 }] }, | ||
"toc": { "value": "preamble", "location": [{ "line": 2, "col": 1 }, { "line": 2, "col": 20 }] }, | ||
"toclevels": { "value": "1", "location": [{ "line": 3, "col": 1 }, { "line": 3, "col": 13 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 13 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 13 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:lml: lightweight \ | ||
markup \ | ||
language |
11 changes: 11 additions & 0 deletions
11
test/tests/block/attribute/soft-wrap-after-space-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"lml": { "value": "lightweight markup language", "location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 8 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 8 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 8 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:description: This is the description. \ | ||
It summaries the contents of this article. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"description": { "value": "This is the description. It summaries the contents of this article.", "location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 56 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 56 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 56 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:ad: Ascii\ | ||
Doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"ad": { "value": "AsciiDoc", "location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 3 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 3 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 3 }] | ||
} |
3 changes: 3 additions & 0 deletions
3
test/tests/block/attribute/soft-wrap-preceded-by-backslash-input.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:dir: C:\\\ | ||
Program Files\\\ | ||
Application |
11 changes: 11 additions & 0 deletions
11
test/tests/block/attribute/soft-wrap-preceded-by-backslash-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"dir": { "value": "C:\\Program Files\\Application", "location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 11 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 11 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 3, "col": 11 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:source: \ | ||
preceded by newline |
11 changes: 11 additions & 0 deletions
11
test/tests/block/attribute/start-with-hard-wrap-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"source": { "value": "\npreceded by newline", "location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 19 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 19 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 19 }] | ||
} |
2 changes: 2 additions & 0 deletions
2
test/tests/block/attribute/start-with-value-continuation-input.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:description: \ | ||
Describe me. |
11 changes: 11 additions & 0 deletions
11
test/tests/block/attribute/start-with-value-continuation-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"header": { | ||
"attributes": { | ||
"description": { "value": "Describe me.", "location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 12 }] } | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 12 }] | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 12 }] | ||
} |