mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50: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í
						Vicent Martí
					
				
			
			
				
	
			
			
			
						parent
						
							3769216c7a
						
					
				
				
					commit
					fe3981ff03
				
			| @@ -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, | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user