skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.7k stars 209 forks source link

New parser gives "expected ] but got end of file" #200

Closed bjdmeest closed 1 year ago

bjdmeest commented 1 year ago

See below

#.cpsv: fill=#f88 title=center,normal,bold

[<cpsv>Public Service|
http://purl.org/vocab/cpsv#PublicService]
skanaar commented 1 year ago

// starts a line comment, that is why the last ] isn't detected.

You can escape the forward slashed with a backslash: [<cpsv>Public Service|http:\/\/purl.org/vocab/cpsv#PublicService]

I'll see if the error messages can be a bit better, this will probably be a pretty common case.

skanaar commented 1 year ago

A new version has been deployed that restores the old behaviour.

This is once again valid code:

#.cpsv: fill=#f88 title=center,normal,bold
[<cpsv>Public Service|
http://purl.org/vocab/cpsv#PublicService]