From e67e5ac326301fb29cd3c95829e7cbe60f8e3bd6 Mon Sep 17 00:00:00 2001 From: Nicolas Klose Date: Wed, 24 Jan 2024 17:09:19 +0100 Subject: [PATCH] Added syntax highlighting for adt and decreases --- client/syntaxes/Viper.tmLanguage | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/client/syntaxes/Viper.tmLanguage b/client/syntaxes/Viper.tmLanguage index 3d70dce6..574beb52 100644 --- a/client/syntaxes/Viper.tmLanguage +++ b/client/syntaxes/Viper.tmLanguage @@ -254,6 +254,25 @@ name meta.domain.silver + + captures + + 1 + + name + keyword.declaration.silver + + 2 + + name + entity.name.function.silver + + + match + \b(adt)\b + name + meta.adt.silver + keywords @@ -316,7 +335,7 @@ match - \b(requires|ensures|invariant)\b + \b(requires|ensures|invariant|decreases)\b name keyword.other.verification.contracts.silver