LS4P
LS4P copied to clipboard
[BUG] Singleline comments with some special characters aren't removed from proccesed text
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