mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 01:30:22 +00:00
Whitelist 4 new TextMate grammar fields (#4039)
swallow, foregroundColor, and backgroundColor are older fields for TextMate 1.
This commit is contained in:
committed by
Vicent Martí
parent
3769216c7a
commit
fe3981ff03
@@ -14,18 +14,22 @@ var GrammarAliases = map[string]string{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var KnownFields = map[string]bool{
|
var KnownFields = map[string]bool{
|
||||||
"comment": true,
|
"comment": true,
|
||||||
"uuid": true,
|
"uuid": true,
|
||||||
"author": true,
|
"author": true,
|
||||||
"comments": true,
|
"comments": true,
|
||||||
"macros": true,
|
"macros": true,
|
||||||
"fileTypes": true,
|
"fileTypes": true,
|
||||||
"firstLineMatch": true,
|
"firstLineMatch": true,
|
||||||
"keyEquivalent": true,
|
"keyEquivalent": true,
|
||||||
"foldingStopMarker": true,
|
"foldingStopMarker": true,
|
||||||
"foldingStartMarker": true,
|
"foldingStartMarker": true,
|
||||||
"foldingEndMarker": true,
|
"foldingEndMarker": true,
|
||||||
"limitLineLength": true,
|
"limitLineLength": true,
|
||||||
"hideFromUser": true,
|
"hideFromUser": true,
|
||||||
"injectionSelector": true,
|
"injectionSelector": true,
|
||||||
|
"swallow": true,
|
||||||
|
"foregroundColor": true,
|
||||||
|
"backgroundColor": true,
|
||||||
|
"increaseIndentPattern": true,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user