Serpen / VBS-VSCode

VSCode VBScript language extension
https://marketplace.visualstudio.com/items?itemName=Serpen.vbsvscode
MIT License
24 stars 11 forks source link

Support Varnames in Square Brackets #39

Open Serpen opened 3 years ago

Serpen commented 3 years ago

VBS Supports Variables in [] brackets to support Var-/Typenames as keywords like VB does, so this should be supported in syntax, completion, hover, etc.

Option Explicit

class myClass
    private m_form

    Property Get [Function] ' as String
        [Function] = m_form
    End Property

    Property Let [Function](name) ' as String
        m_form = name
    End Property

end Class

dim [Class]
set [Class] = new myClass

[Class].[Function] = 12
msgbox [Class].[Function]