parnoldx / nasc

Do maths like a normal person
http://parnoldx.github.io/nasc/
GNU General Public License v3.0
560 stars 37 forks source link

"= " in comments can cause buggy behaviour #157

Closed cougarten closed 4 years ago

cougarten commented 4 years ago

Describe the bug myVar = 1337 // this means me = super haXXorshould still assign 1337 to myVar. The =however causes it to assign 1 or 0

To Reproduce

  1. paste myVar = 1337 // this means me = super haXXor
  2. observe result on the right
  3. move your cursor to the beginning of the line
  4. hit return a few times for new lines

Expected behavior

Screenshots image

Desktop (please complete the following information):

BTW:

parnoldx commented 4 years ago

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.