Skip to content

Commit

Permalink
add asciidoc support and test (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjbianco authored Jan 11, 2021
1 parent 4e6a17f commit b6f873f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["ino"]
},
"AsciiDoc": {
"line_comment": ["//"],
"multi_line_comments": [["////", "////"]],
"extensions": ["adoc", "asciidoc"]
},
"Asn1": {
"name": "ASN.1",
"line_comment": ["--"],
Expand Down
20 changes: 20 additions & 0 deletions tests/data/asciidoc.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 20 lines 5 code 8 comments 7 blanks

= AsciiDoc title

A simple paragraph.

// single line comment

That should end before a paragraph.

////
multi
= Line
comment
////

== Nested title

Nested titles and paragraphs are fine, too.

0 comments on commit b6f873f

Please sign in to comment.