Rename CodemirrorMode to CodeMirrorMode
It is a bit of a Rubyism to translate "CodeMirror Mode" into "codemirror_mode". This is more in line with Go practices.
This commit is contained in:
parent
b6b72c6c08
commit
02878b9c9f
1212
data/languageInfo.go
1212
data/languageInfo.go
File diff suppressed because it is too large
Load Diff
@ -27,8 +27,8 @@ type LanguageInfo struct {
|
||||
TMScope string
|
||||
// AceMode is the name of the Ace Mode used for highlighting whenever a file is edited.
|
||||
AceMode string
|
||||
// CodemirrorMode is the name of the CodeMirror Mode used for highlighting whenever a file is edited.
|
||||
CodemirrorMode string
|
||||
// CodeMirrorMode is the name of the CodeMirror Mode used for highlighting whenever a file is edited.
|
||||
CodeMirrorMode string
|
||||
// Wrap is a boolean flag to enable line wrapping in an editor.
|
||||
Wrap bool
|
||||
// LanguageID is the Linguist-assigned numeric ID for the language.
|
||||
@ -67,7 +67,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
MimeType: "{{$info.MimeType}}",
|
||||
TMScope: "{{$info.TMScope}}",
|
||||
AceMode: "{{$info.AceMode}}",
|
||||
CodemirrorMode: "{{$info.CodemirrorMode}}",
|
||||
CodeMirrorMode: "{{$info.CodeMirrorMode}}",
|
||||
Wrap: {{$info.Wrap}},
|
||||
LanguageID: {{$info.LanguageID}},
|
||||
},
|
||||
|
@ -21,7 +21,7 @@ type languageInfo struct {
|
||||
MimeType string `yaml:"codemirror_mime_type,omitempty,flow"`
|
||||
TMScope string `yaml:"tm_scope"`
|
||||
AceMode string `yaml:"ace_mode"`
|
||||
CodemirrorMode string `yaml:"codemirror_mode"`
|
||||
CodeMirrorMode string `yaml:"codemirror_mode"`
|
||||
Wrap bool `yaml:"wrap"`
|
||||
LanguageID *int `yaml:"language_id,omitempty"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user