Closed GoogleCodeExporter closed 9 years ago
http://meta.stackoverflow.com/questions/121497/syntax-highlighting-doesnt-recogn
ize-line-continuations-within-vb6-comments is the link for more info.
Original comment by masterka...@gmail.com
on 7 Feb 2012 at 10:00
[deleted comment]
more info about it :
1- lets say we got a code comment in vb6 and its a long one so i need to seperate with using ( _) like;
'Blablabla bla situation is needed to handled by blablabla situation _
and another blablablabla so we can blablablabla bla and blablablabla _
in the end bla bla blabla.
so this whole text should be rendered as grey but sadly its not.
After using (') u should be able to check it as string in that line by trimming
and getting the last 2 chars in that string.
If its ( _) space and underline than use that lines style at the next line too
or you can look for just last 2 chars if there is a (space + continues sign)
than u should give the same styling to the next line, but offcourse i'm just
thinking in vb6 mind.. it may be a little harder or easier in js code or with
jquery coding also similar problems occur with the C# u might have noticed
about it.
Just please do something about these continues signs.. Thanks already.
Original comment by masterka...@gmail.com
on 10 Feb 2012 at 6:53
This is definitely not a published feature of the VB.net grammar and I can't
find a VB6 grammar, but it seems unlikely to cause confusion so I fixed it at
http://code.google.com/p/google-code-prettify/source/detail?r=203#
For the record, the relevant portions of the VB.net grammar are quoted below:
According to http://msdn.microsoft.com/en-us/library/aa711643(v=vs.71).aspx
Comment ::= CommentMarker [ Character+ ]
CommentMarker ::= SingleQuoteCharacter | REM
SingleQuoteCharacter ::=
' |
< Unicode left single-quote character (0x2018) |
< Unicode right single-quote character (0x2019)
and according to http://msdn.microsoft.com/en-us/library/aa711639(v=vs.71).aspx
Character ::= < any Unicode character except a LineTerminator >
so the _ line continuation syntax does not appear to be a publish syntactic
feature of VB.net.
Original comment by mikesamuel@gmail.com
on 30 Mar 2012 at 4:14
Thanks so much about this. Its a VB6 feature and it may have joined the
usual VB6 syntax with any update.
Original comment by masterka...@gmail.com
on 9 Apr 2012 at 8:10
Original issue reported on code.google.com by
masterka...@gmail.com
on 7 Feb 2012 at 9:58