grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

LINE CONTINUATION in VB

Open adrishdas opened this issue 3 years ago • 2 comments

Lexer probably should have

Proposed - LINE_CONTINUATION: ' '? '_' WS? '\r'? '\n' -> skip;

Current - LINE_CONTINUATION: ' ' '_' '\r'? '\n' -> skip;

It is not necessary always to keep a space behind '' at end of line in VB, I noticed in running VBScript codebase. Secondly, the newline character may actually be a few spaces after the '' character (quite difficult to debug with invisible whitespaces) but this is also allowed.

adrishdas avatar Mar 17 '22 14:03 adrishdas

Could you please submit a pull request?

KvanTTT avatar Mar 17 '22 15:03 KvanTTT

The suggested change would break this statement

With frm.member
'_______________________
End With

phongkien avatar Jan 24 '23 00:01 phongkien