From fe3981ff03a689602337738c10c4ba232fddc7fb Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Mon, 19 Feb 2018 16:07:15 +0100 Subject: [PATCH] Whitelist 4 new TextMate grammar fields (#4039) swallow, foregroundColor, and backgroundColor are older fields for TextMate 1. --- tools/grammars/compiler/data.go | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/tools/grammars/compiler/data.go b/tools/grammars/compiler/data.go index bcd4d840..84a6cf23 100644 --- a/tools/grammars/compiler/data.go +++ b/tools/grammars/compiler/data.go @@ -14,18 +14,22 @@ var GrammarAliases = map[string]string{ } var KnownFields = map[string]bool{ - "comment": true, - "uuid": true, - "author": true, - "comments": true, - "macros": true, - "fileTypes": true, - "firstLineMatch": true, - "keyEquivalent": true, - "foldingStopMarker": true, - "foldingStartMarker": true, - "foldingEndMarker": true, - "limitLineLength": true, - "hideFromUser": true, - "injectionSelector": true, + "comment": true, + "uuid": true, + "author": true, + "comments": true, + "macros": true, + "fileTypes": true, + "firstLineMatch": true, + "keyEquivalent": true, + "foldingStopMarker": true, + "foldingStartMarker": true, + "foldingEndMarker": true, + "limitLineLength": true, + "hideFromUser": true, + "injectionSelector": true, + "swallow": true, + "foregroundColor": true, + "backgroundColor": true, + "increaseIndentPattern": true, }