Valid identifiers are rejected
emiln opened this issue · 2 comments
emiln commented
The definition of identifier terms currently looks like this:
identifier = #"[a-zA-Z]+"
Names like f00
should be perfectly valid (while names like 0f00
shouldn't be.)
I suggest the term is changed to something like
identifier = #"[a-zA-Z_][a-zA-Z0-9_]*"
which will grant TIP programmers much more freedom in their identifier naming.
emiln commented
This can also be seen as an open discussion about validity of identifier names. We may not want to allow _
, but this is really not set in stone by the definition of TIP.