aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorSeivan Heidari <[email protected]>2019-10-27 22:11:22 +0000
committerSeivan Heidari <[email protected]>2019-10-27 22:11:22 +0000
commit89993517e97c1bb797b2614110573a1fee4ae071 (patch)
treee67d168cd3b5f7eb73afd08e93dc7088c77191ff /editors
parent0ddf47a7ab9d0f616e7296fa9a0b0eb786e4ee59 (diff)
Adding all the decorators from RA to map.
Useful for more granular control.
Diffstat (limited to 'editors')
-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']]