StarlaneStudios / vscode-comment-anchors

⚓A Visual Studio Code extension that adds support for comment anchors 🔭
https://marketplace.visualstudio.com/items?itemName=ExodiusStudios.comment-anchors
MIT License
205 stars 32 forks source link

Anchors don't work with Lua comments #188

Closed GlorifiedPig closed 1 year ago

GlorifiedPig commented 1 year ago

Hey. Lua uses -- to declare a comment. Anchors do not work because of this. If I do // however, it will work despite having invalid syntax.

JordanDi123 commented 1 year ago

Hi!

You can add -- to the commentAnchors.tags.matchPrefix setting and you will be able to be able to use Comment Anchors in Lua comments.

Add it via the extension settings here: image

or you can just copy this text into your settings.json file and it will do the same thing:

"commentAnchors.tags.matchPrefix": [
        "<!--",
        "//",
        "/*",
        "/**",
        "*",
        "#",
        "--"
    ]

Anchors will continue to display even if the syntax of that particular language is invalid, this is due to the extension being language-independent.

Hope this helps and thank you so much for your support! :-)

tanders commented 1 month ago

Thanks a lot, this also allowed me to add support for Lisp.