splunk / vscode-extension-splunk

Visual Studio Code Extension for Splunk
MIT License
87 stars 25 forks source link

Fix problem with variables in comments #96

Closed panopticoncentral closed 1 year ago

panopticoncentral commented 1 year ago

The code to detect variables in SPL2 code is a bit primitive at the moment and currently will catch commented-out variables. This tweaks the regex to require a variable to occur at the start of the line with just whitespace before it.