arcsector / vscode-splunk-search-syntax

VScode syntax highlighting for SPL
MIT License
9 stars 6 forks source link

Format legacy comment macro as comment #9

Closed hpjs closed 2 years ago

hpjs commented 2 years ago

Added syntax entries to format the comment macro (`comment(" ")`) as a comment block in VSCode, instead of as a standard macro.

Prior to the triple backticks comment blocks (```) being available, the Comment macro was the supported way to add comments to SPL. The comment macro is likely still used & should be backwards compatible. It is also still used as the default block comment in this extension itself (i.e. in language-configuration.json). So it would be helpful to format it as a comment instead of as a standard macro.

arcsector commented 2 years ago

Looks good - I'll merge this and redeploy it after testing it locally.

arcsector commented 2 years ago

Added in v1.5.3 at c17fd8e