intersystems-community / vscode-objectscript

InterSystems ObjectScript extension for Visual Studio Code
https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO
Other
108 stars 49 forks source link

NOT Operator causing highlighting problems #46

Closed mlbakerak closed 5 years ago

mlbakerak commented 5 years ago

I really enjoy using the Vscode-objectscript add in but I am having a minor problem.

When I add a not operator,(single quote), in my conditional for an if statement, it seems to mess up the color coding for the rest of the method and class.

Here is where the problem is: While ('file.AtEnd)

from this example code.

ClassMethod Populate() As %Status { Set Status=$$$OK Do ..%KillExtent() Set file=##class(%File).%New("/opt/app/sql/GlobalsToWatch.sql") Do file.Open("RS") While ('file.AtEnd) { Set line=file.ReadLine() If $Extract(line,1,6)="INSERT" { Set Status=$SYSTEM.SQL.Execute(line) } } Do file.Close() Quit Status

}

Thanks, Mike

mlbakerak commented 5 years ago

This is not a bug. The problem was my Method above had the curly braces indented. When I moved them everything cleared up. Sorry.