"= " in comments can cause buggy behaviour
cougarten opened this issue · 1 comments
cougarten commented
Describe the bug
myVar = 1337 // this means me = super haXXor
should still assign 1337 to myVar. The =
however causes it to assign 1 or 0
To Reproduce
- paste
myVar = 1337 // this means me = super haXXor
- observe result on the right
- move your cursor to the beginning of the line
- hit return a few times for new lines
Expected behavior
- Result on the right should show 1337 all the time. (not 0 or 1)
- empty lines should show no result
- it should not remove characters (look at the end of the line when hitting return a few times. It adds an "r" and removes text)
Desktop (please complete the following information):
- OS: Xubuntu
- No idea how to find the nasc version, but I think I recently built from source.
BTW:
- comments should make it in to the documentation I think :)
- thank you for nasc! Just moved to linux and would have missed the other tools badly!
parnoldx commented
I fixed the comment bug. It should also handle whitespace with variables better.
Also the update of the result while line movements should be handled now better.