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

x={'foo':7} is parsed incorrectly #10

Open
scharf opened this issue Jul 17, 2013 · 3 comments
Open

x={'foo':7} is parsed incorrectly #10

scharf opened this issue Jul 17, 2013 · 3 comments
Assignees

Comments

@scharf
Copy link

scharf commented Jul 17, 2013

Something is wrong with the {' if I add a space between the { and the ' everything is ok.

The problem is that I have some existing code that I cannot chage...

@ghost ghost assigned scharf Jul 19, 2013
@paulvi
Copy link
Member

paulvi commented Jul 19, 2013

@scharf Michael, I assume you actually can do this issue.

@scharf
Copy link
Author

scharf commented Jul 19, 2013

well -- it is kind of solved by my solution to the string quoting problems: at least the parser does not get confused, though the string is not seen as string by the highlighter. In fact the first character after a { is swallowed. If you put a number the the first digit is swallowed, if you put true it is not highlighted...

Something in the grammar/lexer is that swollows the first character after a '{'.

My guess is that it is the INDENT '{*' token in some way -- but I have not looked how the parser/lexer have been extended to deal with the indentation....

@paulvi
Copy link
Member

paulvi commented Jul 23, 2013

Could this xml file defining Coffee language help to all syntax issues?

I think if we take language definition from other tools, we can save time on the very basic.
If we could read such files, we insure some future version updates.

Info about .tmLanguage file name extension :
File Type: TextMate Language Grammar File
12 Language Grammars, one more link

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