LS4P icon indicating copy to clipboard operation
LS4P copied to clipboard

[BUG] Singleline comments with some special characters aren't removed from proccesed text

Open Efratror opened this issue 2 years ago • 0 comments

Bug:

Using characters like for example "," and "@" result in a file creation or compile error due to the fact that the aren't removed from the processed text and are written to the java file.

Possible Solution:

Change the regex expression "singleLineComment" in server/src/preprocessing.ts

from: export let singleLineComment = /\/\/([ ]*([A-Za-z\"\.\(\)\'\=\<\>\!])\w*)*/g to:     export let singleLineComment = /\/\/(.)*/g

Efratror avatar Mar 21 '22 14:03 Efratror