Skip to content

Commit

Permalink
Merge pull request #25 from alehechka/fix/switch-expression-highlighting
Browse files Browse the repository at this point in the history
Resolve issue with broken syntax highlighting on switch statements
  • Loading branch information
joerdav authored Jan 19, 2024
2 parents b61ff3c + 7248b68 commit b6f0c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntaxes/templ.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
},
"case-expression": {
"begin": "^\\s*case .+?:$",
"end": "(^\\s*case .+?:$)|(^\\s*default:$)|(^\\s*}$)",
"end": "(^\\s*case .+?:$)|(^\\s*default:$)|(\\s*$)",
"captures": {
"0": {
"name": "case.switch.html-template.templ",
Expand All @@ -369,7 +369,7 @@
},
"default-expression": {
"begin": "^\\s*default:$",
"end": "(^\\s*case .+?:$)|(^\\s*default:$)|(^\\s*}$)",
"end": "(^\\s*case .+?:$)|(^\\s*default:$)|(\\s*$)",
"captures": {
"0": {
"name": "default.switch.html-template.templ",
Expand Down

0 comments on commit b6f0c68

Please sign in to comment.