-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
buggood first issueShould be easier for first time contributorsShould be easier for first time contributorshelp welcomeCould use help from communityCould use help from communitylanguage
Description
Describe the issue
The legacy Rem/REM statement is an alternative to the '
apostrophe literal for single line comments
Are you using highlight
or highlightAuto
?
Using highlight
(via tag associations on SO)
Sample Code to Reproduce
https://jsfiddle.net/zv9k1hox/
Expected behavior
Rem is treated as a comment and doesn't affect highlighting of subsequent lines:
Rem Tab to be replaced with \t
If InStr(Content, vbTab) > 0 Then Content = Replace(Content, vbTab, "\t")
Rem Double quote to be replaced with \"
If InStr(Content, Chr(34)) > 0 Then Content = Replace(Content, Chr(34), "\" & Chr(34))
Set EscapeJSON = Self
End Property
Public Function ToString(Optional ContentWrapper As String = "") As String
ToString = ContentWrapper & this.Content & ContentWrapper
End Function
Public Property Get Content() As String
Content = this.Content
End Property
Public Property Let Content(ByVal Value As String)
this.Content = Value
End Property
Additional context
Triggered by this question on Code Review
Metadata
Metadata
Assignees
Labels
buggood first issueShould be easier for first time contributorsShould be easier for first time contributorshelp welcomeCould use help from communityCould use help from communitylanguage