Files
linguist/tools/grammars/compiler/data.go
Paul Chaignon fe3981ff03 Whitelist 4 new TextMate grammar fields (#4039)
swallow, foregroundColor, and backgroundColor are older fields for TextMate 1.
2018-02-19 16:07:15 +01:00

36 lines
1.0 KiB
Go

package compiler
var GrammarAliases = map[string]string{
"source.erb": "text.html.erb",
"source.cpp": "source.c++",
"source.less": "source.css.less",
"text.html.markdown": "source.gfm",
"text.md": "source.gfm",
"source.php": "text.html.php",
"text.plain": "",
"source.asciidoc": "text.html.asciidoc",
"source.perl6": "source.perl6fe",
"source.css.scss": "source.scss",
}
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,
"swallow": true,
"foregroundColor": true,
"backgroundColor": true,
"increaseIndentPattern": true,
}