Skip to content

Commit

Permalink
add format placeholders to vscode syntax
Browse files Browse the repository at this point in the history
all the % formats, as specified here https://pkg.odin-lang.org/core/fmt/
  • Loading branch information
Goldenlion5648 authored Jan 13, 2025
1 parent d22499b commit d26a19b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions editors/vscode/syntaxes/odin.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,14 @@
"name": "constant.character.escape.odin",
"match": "\\\\(\\\\|[abefnrutv''\"]|x\\h{2}|u\\h{4}|U\\h{8}|[0-7]{3})"
},
{
"name": "constant.character.escape.placeholders.odin",
"match": "%(v|w|T|%|t|b|c|r|o|d|i|z|x|X|U|e|E|f|F|g|G|h|H|m|M|s|q|x|X|p|p|s)"
},
{
"name": "constant.character.escape.placeholders-floats.odin",
"match": "%(\\d*\\.?\\d*f)"
},
{
"name": "invalid.illegal.unknown-escape.odin",
"match": "\\\\."
Expand Down

0 comments on commit d26a19b

Please sign in to comment.