Eliminating line numbers from #If
Brought to you by:
pwelter34
Thanks for a great tool. The only problem I've come across, at least in my personal usage, is that line numbers are added in front of #If statements. Here's a patch that fixes it:
--- clsLine.cls (revision 16)
+++ clsLine.cls (working copy)
@@ -197,7 +197,7 @@
104 v_strLine = modCommon.CleanLine(v_strLine)
106 With g_objRegEx
-108 .Pattern = "^On\sError\s|^End\s|^#End\s|^Case\s|^Dim\s|^Exit\s|^Loop|^Next|^Wend|^Else$|^#Else$|^Else:$|^#Else:$"
+108 .Pattern = "^On\sError\s|^#If\s|^End\s|^#End\s|^Case\s|^Dim\s|^Exit\s|^Loop|^Next|^Wend|^Else$|^#Else$|^Else:$|^#Else:$"
110 If .Test(v_strLine) Then
112 SkipNumbering = True
End If
Thanks again,
Dean