From 89993517e97c1bb797b2614110573a1fee4ae071 Mon Sep 17 00:00:00 2001 From: Seivan Heidari Date: Sun, 27 Oct 2019 23:11:22 +0100 Subject: Adding all the decorators from RA to map. Useful for more granular control. --- editors/code/src/scopes_mapper.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'editors/code/src/scopes_mapper.ts') 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() const defaultMapping = new Map([ + ['comment', ['comment']], + ['string', ['string']], + ['keyword', ['keyword']], + ['keyword.control', ['keyword.control', 'keyword', 'keyword.other']], ['keyword.unsafe', ['storage.modifier', 'keyword.other', 'keyword.control']], ['function', ['entity.name.function']], ['parameter', ['variable.parameter']], + ['constant', ['constant', 'variable']], ['type', ['entity.name.type']], ['builtin', ['variable.language', 'support.type', 'support.type']], ['text', ['string', 'string.quoted', 'string.regexp']], ['attribute', ['keyword']], ['literal', ['string', 'string.quoted', 'string.regexp']], ['macro', ['support.other']], + ['variable', ['variable']], ['variable.mut', ['variable']], ['field', ['variable.object.property']], ['module', ['entity.name.section']] -- cgit v1.2.3