#|
Copyright 2017 Rene Rivera
Distributed under the Boost Software License, Version 1.0. (See
accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
|#

import scanner ;
import type ;

type ASCIIDOC : adoc asciidoc ;

class asciidoc-scanner : common-scanner
{
    rule pattern ( )
    {
        return
            "include::([^[]+)"
            "image::([^[]+)"
            "image:([^[]+)"
        ;
    }
}

scanner.register asciidoc-scanner : include ;
type.set-scanner ASCIIDOC : asciidoc-scanner ;
