skTreeNodeReader::lex() treats comments as identifiers
Brought to you by:
swhiteside
The lex() function of the skTreeNodeReader treats each word of a comment that is outside of brackets [ ] as identifier. This is especially a problem in fileds where the index of child elements may get messed up.
e.g.
person {
name [Smith] // surname
age [25]
}
will be stored as:
person {
name [Smith]
//
surname
age [25]
}
skParser takes care of comments inside [ ] but the ones outside should simply be dropped.
Related to this problem is the set of characters allowed to be contained in an identifier, namely
:, -, ., /, \, _, ~ and alpha numeric characters
which does not seem to comply with the Simkin script grammar given in the documentation.
I could provide a patch if the latter aspect can be clarified.