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:
Luke Francl 2021-10-12 16:18:33 -07:00
parent b6b72c6c08
commit 02878b9c9f
3 changed files with 610 additions and 610 deletions

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"`
}