loganch / AutoIt-VSCode

AutoIt Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=Damien.autoit
MIT License
74 stars 25 forks source link

Improve syntax highlighting of comment blocks #146

Closed Danp2 closed 1 year ago

Danp2 commented 1 year ago

Originally reported here by @Murenysh with this code for testing --

#comments-start
For $i = 0 To UBound($BaseList) - 1
If $BaseList[$i][1] = "Connect=" & $ConnectionString Then
$IBName = $BaseList[$i][0]

    ;#comments-start
    If StringLeft($IBName, 1) = "[" And StringRight($IBName, 1) = "]" Then
        $IBName = StringMid($IBName, 2, StringLen($IBName) - 2)
    EndIf

    Return $IBName
    ;#comments-end

EndIf

Next
#comments-end