make tag support other language
This commit is contained in:
parent
acd8b842b6
commit
1dcadee27e
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ type Headline struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var headlineRegexp = regexp.MustCompile(`^([*]+)\s+(.*)`)
|
var headlineRegexp = regexp.MustCompile(`^([*]+)\s+(.*)`)
|
||||||
var tagRegexp = regexp.MustCompile(`(.*?)\s+(:[A-Za-z0-9_@#%:]+:\s*$)`)
|
var tagRegexp = regexp.MustCompile(`(.*?)\s+(:[\p{L}0-9_@#%:]+:\s*$)`)
|
||||||
|
|
||||||
func lexHeadline(line string) (token, bool) {
|
func lexHeadline(line string) (token, bool) {
|
||||||
if m := headlineRegexp.FindStringSubmatch(line); m != nil {
|
if m := headlineRegexp.FindStringSubmatch(line); m != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue