added type.go generation

This commit is contained in:
Manuel Carmona
2017-04-11 11:26:23 +02:00
parent 5d61ca93d8
commit ef39403555
13 changed files with 836 additions and 74 deletions

View File

@ -0,0 +1,25 @@
package slinguist
// CODE GENERATED AUTOMATICALLY WITH github.com/src-d/simple-linguist/cli/slinguist-generate
// THIS FILE SHOULD NOT BE EDITED BY HAND
// Extracted from github/linguist commit: fe8b44ab8a225b1ffa75b983b916ea22fee5b6f7
const (
TypeUnknown = iota
TypeData = iota
TypeProgramming = iota
TypeMarkup = iota
TypeProse = iota
)
func GetLanguageType(language string) (langType int) {
langType, _ = languagesType[language]
return langType
}
var languagesType = map[string]int{
"Scaml": TypeMarkup,
"Scheme": TypeProgramming,
"Scilab": TypeProgramming,
"Self": TypeProgramming,
}

View File

@ -0,0 +1,25 @@
package slinguist
// CODE GENERATED AUTOMATICALLY WITH github.com/src-d/simple-linguist/cli/slinguist-generate
// THIS FILE SHOULD NOT BE EDITED BY HAND
// Extracted from github/linguist commit: fe8b44ab8a225b1ffa75b983b916ea22fee5b6f7
const (
TypeUnknown = iota
TypeData = iota
TypeProgramming = iota
TypeMarkup = iota
TypeProse = iota
)
func GetLanguageType(language string) (langType int) {
langType, _ = languagesType[language]
return langType
}
var languagesType = map[string]int{
"Scaml": TypeMarkup,
"Scheme": TypeProgramming,
"Scilab": TypeProgramming,
"Self": TypeProgramming,
}

View File

@ -0,0 +1,24 @@
package slinguist
// CODE GENERATED AUTOMATICALLY WITH github.com/src-d/simple-linguist/cli/slinguist-generate
// THIS FILE SHOULD NOT BE EDITED BY HAND
// Extracted from github/linguist commit: {{ getCommit }}
const (
TypeUnknown = iota
TypeData = iota
TypeProgramming = iota
TypeMarkup = iota
TypeProse = iota
)
func GetLanguageType(language string) (langType int) {
langType, _ = languagesType[language]
return langType
}
var languagesType = map[string]int{
{{range $language, $type := . -}}
"{{ $language }}": {{ $type -}},
{{end -}}
}

View File

@ -0,0 +1,46 @@
---
Scaml:
group: HTML
type: markup
extensions:
- ".scaml"
tm_scope: source.scaml
ace_mode: text
language_id: 342
Scheme:
type: programming
color: "#1e4aec"
extensions:
- ".scm"
- ".sld"
- ".sls"
- ".sps"
- ".ss"
interpreters:
- guile
- bigloo
- chicken
- csi
- gosh
- r6rs
ace_mode: scheme
codemirror_mode: scheme
codemirror_mime_type: text/x-scheme
language_id: 343
Scilab:
type: programming
extensions:
- ".sci"
- ".sce"
- ".tst"
ace_mode: text
language_id: 344
Self:
type: programming
color: "#0579aa"
extensions:
- ".self"
tm_scope: none
ace_mode: text
language_id: 345