rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 300 forks source link

Comment with table tags in square brackets #2696

Closed addohm closed 7 years ago

addohm commented 7 years ago

I discovered today that if I reference a db table inside brackets within a comment, the indenter for some reason changes everything to the following...

'update ].].] DB for one part in the clamshell

comintern commented 7 years ago

That's a problem - the placeholder text isn't being reverted back to the non-placeholder text. What did the code look like before it was indented?

comintern commented 7 years ago

Never mind about the original code, I got a repro with this:

Public Sub Test()
Debug.Print "foo" 'update [foo].[bar] in the frob.
End Sub

Should be an easy fix.

retailcoder commented 7 years ago

removed actual square brackets from title... it messes up our chatbot :smile:

image