naqvis / crystal-html5

Crystal implementation of HTML5-Compliant Tokenizer and Parser with XPath & CSS Selector support
MIT License
36 stars 3 forks source link

Syntax error in specs #8

Closed jwoertink closed 1 year ago

jwoertink commented 1 year ago

https://github.com/naqvis/crystal-html5/blob/990093eca8d3b2fd394a6712ee64e42888668448/spec/token_spec.cr#L546

I accidentally ran crystal tool format without specifying which directories, and it ran on my lib/ dir :joy: It then threw this error

syntax error in '././lib/html5/spec/token_spec.cr:546:7': can't use 'key: value' syntax in a hash literal

So I just wanted to pass that along :smile:

naqvis commented 1 year ago

Thanks @jwoertink. Interesting enough, this typo was working previously 😃 . I'll fix this.