tylerlong / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

VB style comments don't work #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See issue 25. Same with vb inline comments

'vb comment

The problem is that the newline delimits the end of a comment, but
google-code-prettify doesn't catch it.

Original issue reported on code.google.com by jan.sud...@gmail.com on 8 Jan 2008 at 6:27

GoogleCodeExporter commented 9 years ago
I'm seeing the same problem with ASP.NET and VB.NET code containing ' before a 
comment. 

Code: 

''preforms all the calculations to display amortization schedule.
        Protected Sub btnAmortization_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnAmortization.Click
                Dim decLoanAmount As Decimal    'variable for the loan amount
                Dim dblInterestRate As Double   'variable for the interest rate
                Dim dblLoanTerm As Double          'variable for the number of months
                Dim strLoanAmount As String      'string from loan amount text box
                strLoanAmount = Me.txtLoanAmount.Text
                Dim strInterestRate As String   'string from interest rate text box
                strInterestRate = Me.txtInterestRate.Text
                Dim strLoanTerm As String          'string from loan term text box
                strLoanTerm = Me.txtLoanTerm.Text * 12

Example page:
http://www.dreamincode.net/forums/index.php?act=ST&f=30&t=72634&st=0#entry470490

Original comment by skyhawk...@gmail.com on 4 Dec 2008 at 2:31

GoogleCodeExporter commented 9 years ago
Added support at revision 54.

Original comment by mikesamuel@gmail.com on 6 Jan 2009 at 4:18

GoogleCodeExporter commented 9 years ago
Mike, 

I'm running rev 64 with the lang-vb file and the comments in VB/VB.NET still 
aren't
working. I'm seeing comment highlighting start at the first ' and it doesn't end
until it encounters another '

Attached is a test file, and you can also see it happening here:
http://www.dreamincode.net/forums/index.php?showtopic=87819&hl=

Original comment by skyhawk...@gmail.com on 20 Feb 2009 at 6:34

Attachments: