Closed rummelsworth closed 10 years ago
This seems an acceptable request. I will look for the impact and make the necessary modifications to support it.
Jace now supports variables with underscores. Like numbers, underscores are not allowed as first character of a variable name.
Valid: some_variable Not valid: _variable
It will be released with the 0.8.6 version.
For the project I'm working on, a client needs to be able to enter variable names with underscores in them, like "var_1" instead of "var1". They could come at any part of the name.
I made a stab at adjusting TokenReader.cs to allow this. On line 161, I added
|| character == '_'
to the or-chain. It seems to work well, but I'm not yet familiar with the entirety of the tokenization mechanism to be absolutely certain there aren't other things that would need changing.