Documentation ¶
Index ¶
Constants ¶
View Source
const KeywordPattern = `[a-zA-Z0-9]+?[-'a-zA-Z0-9]*[a-zA-Z0-9]+?|[a-zA-Z0-9]+`
Variables ¶
View Source
var ( RxNonWord = regexp.MustCompile(`[^a-zA-Z0-9]`) RxEmptySpace = regexp.MustCompile(`\s+`) RxLanguageKey = regexp.MustCompile(`language:(\*|[a-z][-a-zA-Z]+)\s*`) RxKeyword = regexp.MustCompile(`^(` + KeywordPattern + `)$`) RxKeywords = regexp.MustCompile(`\b(` + KeywordPattern + `)\b`) )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.