1. group support multi level folder 2. remove force flag (#203)

* add comment support

* add comment support

* 1. group support multi level folder
2. remove force flag

* bug fix

Co-authored-by: kim <xutao@xiaoheiban.cn>
This commit is contained in:
kingxt
2020-11-12 19:47:32 +08:00
committed by GitHub
parent 7b4a5e3ec6
commit ef4d4968d6
7 changed files with 25 additions and 33 deletions

View File

@@ -76,7 +76,7 @@ memberLoop:
}
switch {
case isSpace(next):
if builder.Len() > 0 {
if builder.Len() > 0 && annoName == "" {
annoName = builder.String()
builder.Reset()
}
@@ -84,6 +84,7 @@ memberLoop:
if builder.Len() == 0 {
return errors.New("invalid annotation format")
}
if len(annoName) > 0 {
value := builder.String()
if value != string(leftParenthesis) {