-
Notifications
You must be signed in to change notification settings - Fork 85
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
PARSE_ERROR unable to parse #547
Labels
Comments
CFlint reports column 9 in line 4. output in JSON format looks like:
|
As you mentioned, this PARSE_ERROR is due to the trailing comma. Is your issue that it is targeting |
It's probably the comma and parenthesis
", )"
…On Tue, Feb 27, 2018, 12:30 PM Bernhard Döbler ***@***.***> wrote:
I have this code. CFLint in VSCode reports PARSE_ERROR unable to parse
and underlines compile while the trailing comma is the culprit.
I'm sorry, I have not looked into it now but what does CFlint report as
bad? The call to compile or does it recognize the superfluous comma?
<cfset local.pattern = createObject(
"java",
"java.util.regex.Pattern"
).compile(
javaCast( "string", "^\d+(,\d+)*$", )
)
>
[image: grafik]
<https://user-images.githubusercontent.com/802702/36743929-c9102e7a-1beb-11e8-8bd7-5d7406aa633e.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#547>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtZu97DnknG7yLelVKNqQXa7SaVgxKKks5tZDvLgaJpZM4SVVxC>
.
|
I think that the best locating the parser can do at this point for parse errors. closing for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this code. CFLint in VSCode reports
PARSE_ERROR unable to parse
and underlinescompile
while the trailing comma is the culprit.I'm sorry, I have not looked into it now but what does CFlint report as bad? The call to
compile
or does it recognize the superfluous comma?The text was updated successfully, but these errors were encountered: