Skip to content

Commit

Permalink
feat(usebruno#8): Add auth highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
marfranke committed May 6, 2024
1 parent e8b94ad commit be46ce7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/vscode/syntaxes/bruno.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
{"include": "#query-block"},
{"include": "#headers-block"},

{"include": "#auth-block"},

{"include": "#body-block"},
{"include": "#body-json-block"},
{"include": "#body-text-block"},
Expand Down Expand Up @@ -171,6 +173,23 @@
},
"patterns": [{"include": "#dictionary"}]
},
"auth-block": {
"name": "meta.auth.bruno",
"begin": "^(auth)(:)(awsv4|basic|bearer|digest|oauth2)\\s*\\{",
"end": "^\\}",
"beginCaptures": {
"1": {
"name": "keyword.bruno"
},
"2": {
"name": "keyword.operator.bruno"
},
"3": {
"name": "keyword.bruno"
}
},
"patterns": [{ "include": "#dictionary" }]
},
"body-block": {
"name": "meta.body-block.bruno",
"begin": "^body\\s*\\{",
Expand Down

0 comments on commit be46ce7

Please sign in to comment.