You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, this is somewhat related to edn-format/edn#67: I decided to not support it initially, but I don't mind supporting single quotes in symbols and keywords.
okSymbol is used in keywords and symbols only, so it should be fine to add single quote there: That means adding '\'' to the list of allowed characters here:
Currently symbols and keywords that have single quotes (i.e.
:info-didn't-change
) will fail to parse since "'
" is not a valid rune.Since
okSymbol
function inlexer.go
is used for more than just symbols, I am not sure where you think is best to add it.For now I added it here: https://github.com/tolitius/go-edn/blob/v1/lexer.go#L251
That is of course if you agree that "
'
" is a valid runeThe text was updated successfully, but these errors were encountered: