コード例 #1
0
ファイル: lua.go プロジェクト: speedata/publisher
func init() {
	processor.RegisterInputFilter("lua", Highlight)

	rComment = regexp.MustCompile(`^(--.*?)\n`)
	rKeyword = regexp.MustCompile(`^(function|local)`)
}
コード例 #2
0
ファイル: xml.go プロジェクト: speedata/publisher
func init() {
	processor.RegisterInputFilter("xml", Highlight)
}