antlr / antlr/codebuff

Grammer failed to recognize single quote inside string literal

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
477
Forks
84
PR merge metrics
No merged PRs in 30d

Description

Hi,

Grammer failed to recognize single quote inside string literal.

I am getting error message: no viable alternative at input 'Select * from table_name where (Directory_name FileServer='BL006-FS1' and Directory = 'C:\\D'Intrusion'."

What is the change required to STRING_LITERAL ?

STRING_LITERAL
: '\'' ( ~'\'' | '\'\'' )* '\''
;

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.