kaffeine icon indicating copy to clipboard operation
kaffeine copied to clipboard

Error with double parentheses

Open mahemoff opened this issue 14 years ago • 4 comments

With v. 0.15 and also the live web demo: (1/2 + (1/2)) yields: Error: TypeError: Cannot set property 'matching' of undefined

(1/2 + 1/2) works fine. I assume the extra parentheses should still be valid.

mahemoff avatar Jul 24 '11 20:07 mahemoff

hrm - it's a silly problem because it thinks that the /2 + (/ is a regex. Not sure the best way to fix

weepy avatar Jul 25 '11 08:07 weepy

seems it's a slight problem in Coffee script too, the following doesn't compile :

(a /2 + (a/ 2))

weepy avatar Jul 25 '11 09:07 weepy

I see, so maybe CS is "cheating" by assume [0-9]+/[0-9]+ (no space) is divide.

On Mon, Jul 25, 2011 at 10:00 AM, weepy < [email protected]>wrote:

seems it's a slight problem in Coffee script too, the following doesn't compile :

(a /2 + (a/ 2))

Reply to this email directly or view it on GitHub: https://github.com/weepy/kaffeine/issues/38#issuecomment-1644367

mahemoff avatar Jul 25 '11 09:07 mahemoff

i think it might well be doing something like that

weepy avatar Jul 25 '11 14:07 weepy