aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorColter <32916571+Goldenlion5648@users.noreply.github.com>2025-01-12 19:20:53 -0500
committerGitHub <noreply@github.com>2025-01-12 19:20:53 -0500
commitd26a19b38c581e28f67609cbb2d5ac933a9373d1 (patch)
tree3a2048fa51398fd3b6adf0b97fff635ae58920fe /editors
parentd22499ba966d2c2c8bb0cd4aee8ced52b986ed74 (diff)
add format placeholders to vscode syntax
all the % formats, as specified here https://pkg.odin-lang.org/core/fmt/
Diffstat (limited to 'editors')
-rw-r--r--editors/vscode/syntaxes/odin.tmLanguage.json8
1 files changed, 8 insertions, 0 deletions
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
@@ -652,6 +652,14 @@
"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": "\\\\."
}