From d26a19b38c581e28f67609cbb2d5ac933a9373d1 Mon Sep 17 00:00:00 2001 From: Colter <32916571+Goldenlion5648@users.noreply.github.com> Date: Sun, 12 Jan 2025 19:20:53 -0500 Subject: [PATCH] add format placeholders to vscode syntax all the % formats, as specified here https://pkg.odin-lang.org/core/fmt/ --- editors/vscode/syntaxes/odin.tmLanguage.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editors/vscode/syntaxes/odin.tmLanguage.json b/editors/vscode/syntaxes/odin.tmLanguage.json index c5fa8ba..debe16c 100644 --- a/editors/vscode/syntaxes/odin.tmLanguage.json +++ b/editors/vscode/syntaxes/odin.tmLanguage.json @@ -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": "\\\\."