]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
1 | #| |
2 | Copyright 2017 Rene Rivera | |
3 | Distributed under the Boost Software License, Version 1.0. (See | |
1e59de90 TL |
4 | accompanying file LICENSE.txt or copy at |
5 | https://www.bfgroup.xyz/b2/LICENSE.txt) | |
b32b8144 FG |
6 | |# |
7 | ||
8 | import scanner ; | |
9 | import type ; | |
10 | ||
11 | type ASCIIDOC : adoc asciidoc ; | |
12 | ||
13 | class asciidoc-scanner : common-scanner | |
14 | { | |
15 | rule pattern ( ) | |
16 | { | |
17 | return | |
18 | "include::([^[]+)" | |
19 | "image::([^[]+)" | |
20 | "image:([^[]+)" | |
21 | ; | |
22 | } | |
23 | } | |
24 | ||
25 | scanner.register asciidoc-scanner : include ; | |
26 | type.set-scanner ASCIIDOC : asciidoc-scanner ; |