Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with double parentheses #38

Open
mahemoff opened this issue Jul 24, 2011 · 4 comments
Open

Error with double parentheses #38

mahemoff opened this issue Jul 24, 2011 · 4 comments

Comments

@mahemoff
Copy link

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.

@weepy
Copy link
Owner

weepy commented Jul 25, 2011

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

@weepy
Copy link
Owner

weepy commented Jul 25, 2011

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

(a /2 + (a/ 2))

@mahemoff
Copy link
Author

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:
#38 (comment)

@weepy
Copy link
Owner

weepy commented Jul 25, 2011

i think it might well be doing something like that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants