From 14dd1d7aa9d2cbee7fb762f86784a576a0549684 Mon Sep 17 00:00:00 2001 From: David Francoeur Date: Wed, 24 Aug 2022 09:43:04 -0400 Subject: [PATCH 1/2] Add enum and intEnum as reserved keyword --- smithy.tmGrammar.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy.tmGrammar.json b/smithy.tmGrammar.json index 04ffd80..a422fca 100644 --- a/smithy.tmGrammar.json +++ b/smithy.tmGrammar.json @@ -72,7 +72,7 @@ ] }, "reserved": { - "match": "\\b(service|operation|resource|structure|list|metadata|namespace|use|map|union|string|integer|set|blob|boolean|string|byte|short|integer|long|float|double|bigInteger|bigDecimal|timestamp|document)\\b", + "match": "\\b(service|operation|resource|structure|list|metadata|namespace|use|map|union|string|integer|set|blob|boolean|string|byte|short|integer|long|float|double|bigInteger|bigDecimal|timestamp|document|enum|intEnum)\\b", "name": "keyword.control.reserved" }, "builtin": { From eb7abd771ad03e170ce283f94f9686ccd25b795f Mon Sep 17 00:00:00 2001 From: David Francoeur Date: Wed, 24 Aug 2022 09:52:48 -0400 Subject: [PATCH 2/2] Add for and with as reserved keywords --- smithy.tmGrammar.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy.tmGrammar.json b/smithy.tmGrammar.json index a422fca..3937097 100644 --- a/smithy.tmGrammar.json +++ b/smithy.tmGrammar.json @@ -72,7 +72,7 @@ ] }, "reserved": { - "match": "\\b(service|operation|resource|structure|list|metadata|namespace|use|map|union|string|integer|set|blob|boolean|string|byte|short|integer|long|float|double|bigInteger|bigDecimal|timestamp|document|enum|intEnum)\\b", + "match": "\\b(service|operation|resource|structure|list|metadata|namespace|use|map|union|string|integer|set|blob|boolean|string|byte|short|integer|long|float|double|bigInteger|bigDecimal|timestamp|document|enum|intEnum|with|for)\\b", "name": "keyword.control.reserved" }, "builtin": {