peposso / lua-tinyyaml

a tiny yaml (subset) parser for pure lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hashtag inside string incorrectly treated as comments.

MikuAuahDark opened this issue · comments

Hello, I use this library for my YAML parsing capabilities.

I noticed a bug that it always treats hashtag as comments, even if it's inside string.

value: "hello #world" # hello world
yaml = require("tinyyaml")
test = yaml.parse([[
value: "hello #world" # hello world
]])
print(test.value) -- hell

Can this issue be solved?

Solved.