From 98f48d2990ca6fea52a81df3ee55376d69024934 Mon Sep 17 00:00:00 2001 From: jakehl Date: Mon, 4 Jul 2022 18:07:03 +0100 Subject: [PATCH] adds documentation for the new scopes --- book/src/themes.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/book/src/themes.md b/book/src/themes.md index 06f920d3ccb5..085622e065fc 100644 --- a/book/src/themes.md +++ b/book/src/themes.md @@ -151,7 +151,9 @@ We use a similar set of scopes as - `operator` - `or`, `in` - `directive` - Preprocessor directives (`#if` in C) - `function` - `fn`, `func` - - `storage` - Keywords that affect the storage of a variable, function or data structure `static`, `mut`, `const`, `ref` + - `storage` - Keywords that affect the storage of variables, functions, data structures etc. + - `type` - Keywords for declaring the storage of variables, functions, data structures etc. eg `let`, `trait`, `struct` in rust + - `modifier` - Keywords that modify a declaration. eg `static`, `mut`, `const`, `ref` in rust - `operator` - `||`, `+=`, `>`