mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
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:
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
|
TMScope string
|
||||||
// AceMode is the name of the Ace Mode used for highlighting whenever a file is edited.
|
// AceMode is the name of the Ace Mode used for highlighting whenever a file is edited.
|
||||||
AceMode string
|
AceMode string
|
||||||
// CodemirrorMode is the name of the CodeMirror Mode used for highlighting whenever a file is edited.
|
// CodeMirrorMode is the name of the CodeMirror Mode used for highlighting whenever a file is edited.
|
||||||
CodemirrorMode string
|
CodeMirrorMode string
|
||||||
// Wrap is a boolean flag to enable line wrapping in an editor.
|
// Wrap is a boolean flag to enable line wrapping in an editor.
|
||||||
Wrap bool
|
Wrap bool
|
||||||
// LanguageID is the Linguist-assigned numeric ID for the language.
|
// LanguageID is the Linguist-assigned numeric ID for the language.
|
||||||
@ -67,7 +67,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
MimeType: "{{$info.MimeType}}",
|
MimeType: "{{$info.MimeType}}",
|
||||||
TMScope: "{{$info.TMScope}}",
|
TMScope: "{{$info.TMScope}}",
|
||||||
AceMode: "{{$info.AceMode}}",
|
AceMode: "{{$info.AceMode}}",
|
||||||
CodemirrorMode: "{{$info.CodemirrorMode}}",
|
CodeMirrorMode: "{{$info.CodeMirrorMode}}",
|
||||||
Wrap: {{$info.Wrap}},
|
Wrap: {{$info.Wrap}},
|
||||||
LanguageID: {{$info.LanguageID}},
|
LanguageID: {{$info.LanguageID}},
|
||||||
},
|
},
|
||||||
|
@ -21,7 +21,7 @@ type languageInfo struct {
|
|||||||
MimeType string `yaml:"codemirror_mime_type,omitempty,flow"`
|
MimeType string `yaml:"codemirror_mime_type,omitempty,flow"`
|
||||||
TMScope string `yaml:"tm_scope"`
|
TMScope string `yaml:"tm_scope"`
|
||||||
AceMode string `yaml:"ace_mode"`
|
AceMode string `yaml:"ace_mode"`
|
||||||
CodemirrorMode string `yaml:"codemirror_mode"`
|
CodeMirrorMode string `yaml:"codemirror_mode"`
|
||||||
Wrap bool `yaml:"wrap"`
|
Wrap bool `yaml:"wrap"`
|
||||||
LanguageID *int `yaml:"language_id,omitempty"`
|
LanguageID *int `yaml:"language_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user