forked from asciidoctor/sublimetext-asciidoc
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amend the new syntax test for callout lists by providing consecutive callout numbers, so that Asciidoctor can build the HTML document without error. Create a copy of the original test (disjointed numbering sequence) with `.adoc` extension, so that it will be ignored by the Rake task that builds the HTML docs from the test files.
- Loading branch information
Showing
3 changed files
with
88 additions
and
40 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// SYNTAX TEST "Packages/ST4-Asciidoctor/Syntaxes/Asciidoctor.sublime-syntax" | ||
|
||
//// | ||
NOTE: This file is excluded from Rake's conversion to HTML because the non | ||
sequential numbering of the callout list fails Asciidoctor conversion. | ||
//// | ||
|
||
[source,ruby] | ||
----------------------- | ||
require 'sinatra' <1> | ||
get '/hi' do <42> <333> | ||
"Hello World!" | ||
end | ||
----------------------- | ||
|
||
<1> Library import | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
//<- punctuation.definition.calloutlistnumber.begin.asciidoc | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
//^ string.unquoted.list.callout.asciidoc | ||
//^ constant.numeric.callout.asciidoc | ||
//^ punctuation.definition.calloutlistnumber.end.asciidoc | ||
<42> URL mapping | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
//<- punctuation.definition.calloutlistnumber.begin.asciidoc | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
// ^ string.unquoted.list.callout.asciidoc | ||
// ^ constant.numeric.callout.asciidoc | ||
// ^ punctuation.definition.calloutlistnumber.end.asciidoc | ||
<333> Response block | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
//<- punctuation.definition.calloutlistnumber.begin.asciidoc | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
//<- string.unquoted.list.callout.asciidoc | ||
//<- constant.numeric.callout.asciidoc | ||
// ^ string.unquoted.list.callout.asciidoc | ||
// ^ constant.numeric.callout.asciidoc | ||
// ^ punctuation.definition.calloutlistnumber.end.asciidoc |
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