lib/toml/grammars/primitive.citrus in toml-rb-0.3.6 vs lib/toml/grammars/primitive.citrus in toml-rb-0.3.7
- old
+ new
@@ -20,14 +20,14 @@
rule literal_string
(/(['])(?:\\?.)*?\1/ space) <TOML::LiteralString>
end
rule multiline_string
- ('"""' line_break* text:~'"""' '"""' space) <TOML::MultilineString>
+ ('"""' line_break* (text:~'"""'|'') '"""' space) <TOML::MultilineString>
end
rule multiline_literal
- ("'''" line_break* text:~"'''" "'''" space) <TOML::MultilineLiteral>
+ ("'''" line_break* (text:~"'''"|'') "'''" space) <TOML::MultilineLiteral>
end
##
# Date time rules
##