EXXETA / EXXETA/sonar-esql-plugin
Unable parse ESQL file with wrong comment sequence code
- Dominant language
- Java
- Stars
- 37
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have found another problem when parsing ESQL file. The code is:
```
CREATE COMPUTE MODULE Test
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
/* OK comment */
*/
/* /* */ */
RETURN TRUE;
END;
END MODULE;
```
But in this case I know, that it is not correct ESQL code. I do not know, if ESQL plugin should analyze it too or not. I would understand, that such errors could be up to developer to correct is, the same like non-well-formed MSGFLOW.
And the reported error is:
```
ERROR: Unable to parse file: file:///C:/temp/temp/error05/Test.esql
ERROR: Parse error at line 5 column 3:
1: CREATE COMPUTE MODULE Test
2: CREATE FUNCTION Main() RETURNS BOOLEAN
3: BEGIN
4: /* OK comment */
5: */
^
6: /* /* */ */
7: RETURN TRUE;
8: END;
9: END MODULE;
10:
INFO: 1/1 source files have been analyzed
```
Regards, Stepan
Contributor guide
Assessment
This issue has not been assessed yet.