add a mechanism that makes sure only an up-to-date parser.leg.go can be used
This commit is contained in:
parent
cca2b1a3c2
commit
b71976ee5d
10
markdown.go
10
markdown.go
@ -24,6 +24,16 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
// If you get a build error message saying that
|
||||
// parserIfaceVersion_N is undefined, parser.leg.go
|
||||
// either is not present or it is out of date. You should
|
||||
// rebuild it using
|
||||
// make nuke
|
||||
// make parser
|
||||
needParserIfaceVersion = parserIfaceVersion_1
|
||||
)
|
||||
|
||||
// Markdown Options:
|
||||
type Options struct {
|
||||
Smart bool
|
||||
|
@ -27,6 +27,10 @@ import (
|
||||
"log"
|
||||
)
|
||||
|
||||
const (
|
||||
parserIfaceVersion_1 = iota
|
||||
)
|
||||
|
||||
// Semantic value of a parsing action.
|
||||
type element struct {
|
||||
key int
|
||||
|
Loading…
Reference in New Issue
Block a user