aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/src/scopes_mapper.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/editors/code/src/scopes_mapper.ts b/editors/code/src/scopes_mapper.ts
index 995adae2d..5c3cb8f63 100644
--- a/editors/code/src/scopes_mapper.ts
+++ b/editors/code/src/scopes_mapper.ts
@@ -8,15 +8,21 @@ let mappings = new Map<string, string[]>()
8 8
9 9
10const defaultMapping = new Map<string, string[]>([ 10const defaultMapping = new Map<string, string[]>([
11 ['comment', ['comment']],
12 ['string', ['string']],
13 ['keyword', ['keyword']],
14 ['keyword.control', ['keyword.control', 'keyword', 'keyword.other']],
11 ['keyword.unsafe', ['storage.modifier', 'keyword.other', 'keyword.control']], 15 ['keyword.unsafe', ['storage.modifier', 'keyword.other', 'keyword.control']],
12 ['function', ['entity.name.function']], 16 ['function', ['entity.name.function']],
13 ['parameter', ['variable.parameter']], 17 ['parameter', ['variable.parameter']],
18 ['constant', ['constant', 'variable']],
14 ['type', ['entity.name.type']], 19 ['type', ['entity.name.type']],
15 ['builtin', ['variable.language', 'support.type', 'support.type']], 20 ['builtin', ['variable.language', 'support.type', 'support.type']],
16 ['text', ['string', 'string.quoted', 'string.regexp']], 21 ['text', ['string', 'string.quoted', 'string.regexp']],
17 ['attribute', ['keyword']], 22 ['attribute', ['keyword']],
18 ['literal', ['string', 'string.quoted', 'string.regexp']], 23 ['literal', ['string', 'string.quoted', 'string.regexp']],
19 ['macro', ['support.other']], 24 ['macro', ['support.other']],
25 ['variable', ['variable']],
20 ['variable.mut', ['variable']], 26 ['variable.mut', ['variable']],
21 ['field', ['variable.object.property']], 27 ['field', ['variable.object.property']],
22 ['module', ['entity.name.section']] 28 ['module', ['entity.name.section']]