Skip to content

Conversation

helixbass
Copy link

Hi,

We have just released Coffeescript v2.5.0 with AST support + eslint-plugin-coffee ESLint custom parser + plugin

I got a bug report from someone trying to set up ESLint in a Vue + Coffeescript project

When I looked, the problem is that in parseExpressionBody() you are wrapping template expressions in 0(...), which doesn't parse in Coffeescript

So this PR updates to use [...] wrapper instead of 0(...)

{
"message": "Unexpected end of expression.",
"index": 76,
"index": 75,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be the accurate location data for the trailing 1 in the expression abc + (1 in test/fixtures/ast/error-message-outside/source.vue

@helixbass
Copy link
Author

Closing in favor of #62

@helixbass helixbass closed this Jan 3, 2020
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

Successfully merging this pull request may close these issues.

1 participant