usebruno / bruno-ide-extensions

Bruno IDE Extensions
MIT License
34 stars 9 forks source link

add highlighting for auth:*** #8

Open KoljaL opened 10 months ago

KoljaL commented 10 months ago

In VSCode there is no highlighting for the auth: elements.

See auth: bearer in the image:

grafik

I tried to figure out, how to add this, but this is not enough:

"auth-basic-block": {
    "name": "meta.auth-basic.bruno",
    "begin": "^auth\\:basic\\s*\\{",
    "end": "^\\}\\s*",
    "beginCaptures": {
        "0": {
            "name": "keyword.bruno"
        }
    },
    "patterns": [{ "include": "#dictionary" }]
},

It just matches (auth:baerer)the outer part and the inner part stays white, because there is no value (password).

Thanks for Brunoand this extension :-)