bpsm / edn-java

a reader for extensible data notation
Eclipse Public License 1.0
100 stars 24 forks source link

Support # embedded in symbol names #62

Closed bpsm closed 4 years ago

bpsm commented 4 years ago
// Symbols begin with a non-numeric character and can contain
// alphanumeric characters and `. * + ! - _ ?  $ % & = < >`. If `-`,
// `+` or `.` are the first character, the second character (if any)
// must be non-numeric. Additionally, `: #` are allowed as constituent
// characters in symbols other than as the first character.

It appears that edn-java parses symbols with embedded "#" incorrectly. Given the text [a#b {}] we expect a vector of these two items:

  1. The symbol a#b
  2. The empty map

Instead we get these two items:

  1. The symbol a
  2. The empty map, tagged as #b
bpsm commented 4 years ago

This is implemented in 0.7.0