Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

空行 被解析 #46

Open
nilly opened this issue Nov 26, 2019 · 1 comment
Open

空行 被解析 #46

nilly opened this issue Nov 26, 2019 · 1 comment

Comments

@nilly
Copy link

nilly commented Nov 26, 2019

[setctor]
如果有空白行,

会被解析为 map[ : ]

例如:

[plugins]

go.mod = 60 true
main.go = 300 true

生成的map :

plugins:map[ : go.mod:60 true main.go:300 true]

生成一个mpa 里有个空 项目

如果 是这个 空 的map 项 是针对 comment 的话.

是否可以考虑增加一个 map["comment"] 项目 , 或者直接去掉 map[ : ] 这个空项

@unknwon
Copy link
Owner

unknwon commented Nov 26, 2019

注释是存在不同的 map 里的。。代码也有过滤空行。。暂时想不通。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants