mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-12 22:42:23 +00:00
use of gopkg.in/toqueteos/substring.v1 in content.go to improve GetLanguagesByContent performance
This commit is contained in:
parent
b2b40bbfc5
commit
2045abfa41
438
data/content.go
438
data/content.go
@ -4,441 +4,439 @@ package data
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
)
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
|
||||
type languageMatcher func([]byte) []string
|
||||
|
||||
var ContentMatchers = map[string]languageMatcher{
|
||||
".asc": func(i []byte) []string {
|
||||
if asc_PublicKey_Matcher_0.Match(i) {
|
||||
if asc_PublicKey_Matcher_0.Match(string(i)) {
|
||||
return []string{"Public Key"}
|
||||
} else if asc_AsciiDoc_Matcher_0.Match(i) {
|
||||
} else if asc_AsciiDoc_Matcher_0.Match(string(i)) {
|
||||
return []string{"AsciiDoc"}
|
||||
} else if asc_AGSScript_Matcher_0.Match(i) {
|
||||
} else if asc_AGSScript_Matcher_0.Match(string(i)) {
|
||||
return []string{"AGS Script"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".bb": func(i []byte) []string {
|
||||
if bb_BlitzBasic_Matcher_0.Match(i) || bb_BlitzBasic_Matcher_1.Match(i) {
|
||||
if bb_BlitzBasic_Matcher_0.Match(string(i)) || bb_BlitzBasic_Matcher_1.Match(string(i)) {
|
||||
return []string{"BlitzBasic"}
|
||||
} else if bb_BitBake_Matcher_0.Match(i) {
|
||||
} else if bb_BitBake_Matcher_0.Match(string(i)) {
|
||||
return []string{"BitBake"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".builds": func(i []byte) []string {
|
||||
if builds_XML_Matcher_0.Match(i) {
|
||||
if builds_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
}
|
||||
|
||||
return []string{"Text"}
|
||||
},
|
||||
".ch": func(i []byte) []string {
|
||||
if ch_xBase_Matcher_0.Match(i) {
|
||||
if ch_xBase_Matcher_0.Match(string(i)) {
|
||||
return []string{"xBase"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".cl": func(i []byte) []string {
|
||||
if cl_CommonLisp_Matcher_0.Match(i) {
|
||||
if cl_CommonLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"Common Lisp"}
|
||||
} else if cl_Cool_Matcher_0.Match(i) {
|
||||
} else if cl_Cool_Matcher_0.Match(string(i)) {
|
||||
return []string{"Cool"}
|
||||
} else if cl_OpenCL_Matcher_0.Match(i) {
|
||||
} else if cl_OpenCL_Matcher_0.Match(string(i)) {
|
||||
return []string{"OpenCL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".cls": func(i []byte) []string {
|
||||
if cls_TeX_Matcher_0.Match(i) {
|
||||
if cls_TeX_Matcher_0.Match(string(i)) {
|
||||
return []string{"TeX"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".cs": func(i []byte) []string {
|
||||
if cs_Smalltalk_Matcher_0.Match(i) {
|
||||
if cs_Smalltalk_Matcher_0.Match(string(i)) {
|
||||
return []string{"Smalltalk"}
|
||||
} else if cs_CSharp_Matcher_0.Match(i) || cs_CSharp_Matcher_1.Match(i) {
|
||||
} else if cs_CSharp_Matcher_0.Match(string(i)) || cs_CSharp_Matcher_1.Match(string(i)) {
|
||||
return []string{"C#"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".d": func(i []byte) []string {
|
||||
if d_D_Matcher_0.Match(i) {
|
||||
if d_D_Matcher_0.Match(string(i)) {
|
||||
return []string{"D"}
|
||||
} else if d_DTrace_Matcher_0.Match(i) {
|
||||
} else if d_DTrace_Matcher_0.Match(string(i)) {
|
||||
return []string{"DTrace"}
|
||||
} else if d_Makefile_Matcher_0.Match(i) {
|
||||
} else if d_Makefile_Matcher_0.Match(string(i)) {
|
||||
return []string{"Makefile"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".ecl": func(i []byte) []string {
|
||||
if ecl_ECLiPSe_Matcher_0.Match(i) {
|
||||
if ecl_ECLiPSe_Matcher_0.Match(string(i)) {
|
||||
return []string{"ECLiPSe"}
|
||||
} else if ecl_ECL_Matcher_0.Match(i) {
|
||||
} else if ecl_ECL_Matcher_0.Match(string(i)) {
|
||||
return []string{"ECL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".es": func(i []byte) []string {
|
||||
if es_Erlang_Matcher_0.Match(i) {
|
||||
if es_Erlang_Matcher_0.Match(string(i)) {
|
||||
return []string{"Erlang"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".f": func(i []byte) []string {
|
||||
if f_Forth_Matcher_0.Match(i) {
|
||||
if f_Forth_Matcher_0.Match(string(i)) {
|
||||
return []string{"Forth"}
|
||||
} else if f_FilebenchWML_Matcher_0.Match(i) {
|
||||
} else if f_FilebenchWML_Matcher_0.Match(string(i)) {
|
||||
return []string{"Filebench WML"}
|
||||
} else if f_Fortran_Matcher_0.Match(i) {
|
||||
} else if f_Fortran_Matcher_0.Match(string(i)) {
|
||||
return []string{"Fortran"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".for": func(i []byte) []string {
|
||||
if for_Forth_Matcher_0.Match(i) {
|
||||
if for_Forth_Matcher_0.Match(string(i)) {
|
||||
return []string{"Forth"}
|
||||
} else if for_Fortran_Matcher_0.Match(i) {
|
||||
} else if for_Fortran_Matcher_0.Match(string(i)) {
|
||||
return []string{"Fortran"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".fr": func(i []byte) []string {
|
||||
if fr_Forth_Matcher_0.Match(i) {
|
||||
if fr_Forth_Matcher_0.Match(string(i)) {
|
||||
return []string{"Forth"}
|
||||
} else if fr_Frege_Matcher_0.Match(i) {
|
||||
} else if fr_Frege_Matcher_0.Match(string(i)) {
|
||||
return []string{"Frege"}
|
||||
}
|
||||
|
||||
return []string{"Text"}
|
||||
},
|
||||
".fs": func(i []byte) []string {
|
||||
if fs_Forth_Matcher_0.Match(i) {
|
||||
if fs_Forth_Matcher_0.Match(string(i)) {
|
||||
return []string{"Forth"}
|
||||
} else if fs_FSharp_Matcher_0.Match(i) {
|
||||
} else if fs_FSharp_Matcher_0.Match(string(i)) {
|
||||
return []string{"F#"}
|
||||
} else if fs_GLSL_Matcher_0.Match(i) {
|
||||
} else if fs_GLSL_Matcher_0.Match(string(i)) {
|
||||
return []string{"GLSL"}
|
||||
} else if fs_Filterscript_Matcher_0.Match(i) {
|
||||
} else if fs_Filterscript_Matcher_0.Match(string(i)) {
|
||||
return []string{"Filterscript"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".gs": func(i []byte) []string {
|
||||
if gs_Gosu_Matcher_0.Match(i) {
|
||||
if gs_Gosu_Matcher_0.Match(string(i)) {
|
||||
return []string{"Gosu"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".h": func(i []byte) []string {
|
||||
if h_ObjectiveDashC_Matcher_0.Match(i) {
|
||||
if h_ObjectiveDashC_Matcher_0.Match(string(i)) {
|
||||
return []string{"Objective-C"}
|
||||
} else if h_CPlusPlus_Matcher_0.Match(i) || h_CPlusPlus_Matcher_1.Match(i) || h_CPlusPlus_Matcher_2.Match(i) || h_CPlusPlus_Matcher_3.Match(i) || h_CPlusPlus_Matcher_4.Match(i) || h_CPlusPlus_Matcher_5.Match(i) || h_CPlusPlus_Matcher_6.Match(i) {
|
||||
} else if h_CPlusPlus_Matcher_0.Match(string(i)) || h_CPlusPlus_Matcher_1.Match(string(i)) || h_CPlusPlus_Matcher_2.Match(string(i)) || h_CPlusPlus_Matcher_3.Match(string(i)) || h_CPlusPlus_Matcher_4.Match(string(i)) || h_CPlusPlus_Matcher_5.Match(string(i)) || h_CPlusPlus_Matcher_6.Match(string(i)) {
|
||||
return []string{"C++"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".inc": func(i []byte) []string {
|
||||
if inc_PHP_Matcher_0.Match(i) {
|
||||
if inc_PHP_Matcher_0.Match(string(i)) {
|
||||
return []string{"PHP"}
|
||||
} else if inc_POVDashRaySDL_Matcher_0.Match(i) {
|
||||
} else if inc_POVDashRaySDL_Matcher_0.Match(string(i)) {
|
||||
return []string{"POV-Ray SDL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".l": func(i []byte) []string {
|
||||
if l_CommonLisp_Matcher_0.Match(i) {
|
||||
if l_CommonLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"Common Lisp"}
|
||||
} else if l_Lex_Matcher_0.Match(i) {
|
||||
} else if l_Lex_Matcher_0.Match(string(i)) {
|
||||
return []string{"Lex"}
|
||||
} else if l_Roff_Matcher_0.Match(i) {
|
||||
} else if l_Roff_Matcher_0.Match(string(i)) {
|
||||
return []string{"Roff"}
|
||||
} else if l_PicoLisp_Matcher_0.Match(i) {
|
||||
} else if l_PicoLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"PicoLisp"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".ls": func(i []byte) []string {
|
||||
if ls_LoomScript_Matcher_0.Match(i) {
|
||||
if ls_LoomScript_Matcher_0.Match(string(i)) {
|
||||
return []string{"LoomScript"}
|
||||
}
|
||||
|
||||
return []string{"LiveScript"}
|
||||
},
|
||||
".lsp": func(i []byte) []string {
|
||||
if lsp_CommonLisp_Matcher_0.Match(i) {
|
||||
if lsp_CommonLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"Common Lisp"}
|
||||
} else if lsp_NewLisp_Matcher_0.Match(i) {
|
||||
} else if lsp_NewLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"NewLisp"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".lisp": func(i []byte) []string {
|
||||
if lisp_CommonLisp_Matcher_0.Match(i) {
|
||||
if lisp_CommonLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"Common Lisp"}
|
||||
} else if lisp_NewLisp_Matcher_0.Match(i) {
|
||||
} else if lisp_NewLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"NewLisp"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".m": func(i []byte) []string {
|
||||
if m_ObjectiveDashC_Matcher_0.Match(i) {
|
||||
if m_ObjectiveDashC_Matcher_0.Match(string(i)) {
|
||||
return []string{"Objective-C"}
|
||||
} else if m_Mercury_Matcher_0.Match(i) {
|
||||
} else if m_Mercury_Matcher_0.Match(string(i)) {
|
||||
return []string{"Mercury"}
|
||||
} else if m_MUF_Matcher_0.Match(i) {
|
||||
} else if m_MUF_Matcher_0.Match(string(i)) {
|
||||
return []string{"MUF"}
|
||||
} else if m_M_Matcher_0.Match(i) {
|
||||
} else if m_M_Matcher_0.Match(string(i)) {
|
||||
return []string{"M"}
|
||||
} else if m_Mathematica_Matcher_0.Match(i) {
|
||||
} else if m_Mathematica_Matcher_0.Match(string(i)) {
|
||||
return []string{"Mathematica"}
|
||||
} else if m_Matlab_Matcher_0.Match(i) {
|
||||
} else if m_Matlab_Matcher_0.Match(string(i)) {
|
||||
return []string{"Matlab"}
|
||||
} else if m_Limbo_Matcher_0.Match(i) {
|
||||
} else if m_Limbo_Matcher_0.Match(string(i)) {
|
||||
return []string{"Limbo"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".md": func(i []byte) []string {
|
||||
if md_Markdown_Matcher_0.Match(i) || md_Markdown_Matcher_1.Match(i) {
|
||||
if md_Markdown_Matcher_0.Match(string(i)) || md_Markdown_Matcher_1.Match(string(i)) {
|
||||
return []string{"Markdown"}
|
||||
} else if md_GCCMachineDescription_Matcher_0.Match(i) {
|
||||
} else if md_GCCMachineDescription_Matcher_0.Match(string(i)) {
|
||||
return []string{"GCC Machine Description"}
|
||||
}
|
||||
|
||||
return []string{"Markdown"}
|
||||
},
|
||||
".ml": func(i []byte) []string {
|
||||
if ml_OCaml_Matcher_0.Match(i) {
|
||||
if ml_OCaml_Matcher_0.Match(string(i)) {
|
||||
return []string{"OCaml"}
|
||||
} else if ml_StandardML_Matcher_0.Match(i) {
|
||||
} else if ml_StandardML_Matcher_0.Match(string(i)) {
|
||||
return []string{"Standard ML"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".mod": func(i []byte) []string {
|
||||
if mod_XML_Matcher_0.Match(i) {
|
||||
if mod_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
} else if mod_ModulaDash2_Matcher_0.Match(i) || mod_ModulaDash2_Matcher_1.Match(i) {
|
||||
} else if mod_ModulaDash2_Matcher_0.Match(string(i)) || mod_ModulaDash2_Matcher_1.Match(string(i)) {
|
||||
return []string{"Modula-2"}
|
||||
}
|
||||
|
||||
return []string{"Linux Kernel Module", "AMPL"}
|
||||
},
|
||||
".ms": func(i []byte) []string {
|
||||
if ms_Roff_Matcher_0.Match(i) {
|
||||
if ms_Roff_Matcher_0.Match(string(i)) {
|
||||
return []string{"Roff"}
|
||||
}
|
||||
|
||||
return []string{"MAXScript"}
|
||||
},
|
||||
".n": func(i []byte) []string {
|
||||
if n_Roff_Matcher_0.Match(i) {
|
||||
if n_Roff_Matcher_0.Match(string(i)) {
|
||||
return []string{"Roff"}
|
||||
} else if n_Nemerle_Matcher_0.Match(i) {
|
||||
} else if n_Nemerle_Matcher_0.Match(string(i)) {
|
||||
return []string{"Nemerle"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".ncl": func(i []byte) []string {
|
||||
if ncl_Text_Matcher_0.Match(i) {
|
||||
if ncl_Text_Matcher_0.Match(string(i)) {
|
||||
return []string{"Text"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".nl": func(i []byte) []string {
|
||||
if nl_NL_Matcher_0.Match(i) {
|
||||
if nl_NL_Matcher_0.Match(string(i)) {
|
||||
return []string{"NL"}
|
||||
}
|
||||
|
||||
return []string{"NewLisp"}
|
||||
},
|
||||
".php": func(i []byte) []string {
|
||||
if php_Hack_Matcher_0.Match(i) {
|
||||
if php_Hack_Matcher_0.Match(string(i)) {
|
||||
return []string{"Hack"}
|
||||
} else if php_PHP_Matcher_0.Match(i) {
|
||||
} else if php_PHP_Matcher_0.Match(string(i)) {
|
||||
return []string{"PHP"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".pl": func(i []byte) []string {
|
||||
if pl_Prolog_Matcher_0.Match(i) {
|
||||
if pl_Prolog_Matcher_0.Match(string(i)) {
|
||||
return []string{"Prolog"}
|
||||
} else if pl_Perl_Matcher_0.Match(i) {
|
||||
} else if pl_Perl_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl"}
|
||||
} else if pl_Perl6_Matcher_0.Match(i) {
|
||||
} else if pl_Perl6_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl 6"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".pm": func(i []byte) []string {
|
||||
if pm_Perl6_Matcher_0.Match(i) {
|
||||
if pm_Perl6_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl 6"}
|
||||
} else if pm_Perl_Matcher_0.Match(i) {
|
||||
} else if pm_Perl_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".pod": func(i []byte) []string {
|
||||
if pod_Pod_Matcher_0.Match(i) {
|
||||
if pod_Pod_Matcher_0.Match(string(i)) {
|
||||
return []string{"Pod"}
|
||||
}
|
||||
|
||||
return []string{"Perl"}
|
||||
},
|
||||
".pro": func(i []byte) []string {
|
||||
if pro_Prolog_Matcher_0.Match(i) {
|
||||
if pro_Prolog_Matcher_0.Match(string(i)) {
|
||||
return []string{"Prolog"}
|
||||
} else if pro_INI_Matcher_0.Match(i) {
|
||||
} else if pro_INI_Matcher_0.Match(string(i)) {
|
||||
return []string{"INI"}
|
||||
} else if pro_QMake_Matcher_0.Match(i) && pro_QMake_Matcher_1.Match(i) {
|
||||
} else if pro_QMake_Matcher_0.Match(string(i)) && pro_QMake_Matcher_1.Match(string(i)) {
|
||||
return []string{"QMake"}
|
||||
} else if pro_IDL_Matcher_0.Match(i) {
|
||||
} else if pro_IDL_Matcher_0.Match(string(i)) {
|
||||
return []string{"IDL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".props": func(i []byte) []string {
|
||||
if props_XML_Matcher_0.Match(i) {
|
||||
if props_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
} else if props_INI_Matcher_0.Match(i) {
|
||||
} else if props_INI_Matcher_0.Match(string(i)) {
|
||||
return []string{"INI"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".r": func(i []byte) []string {
|
||||
if r_Rebol_Matcher_0.Match(i) {
|
||||
if r_Rebol_Matcher_0.Match(string(i)) {
|
||||
return []string{"Rebol"}
|
||||
} else if r_R_Matcher_0.Match(i) {
|
||||
} else if r_R_Matcher_0.Match(string(i)) {
|
||||
return []string{"R"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".rno": func(i []byte) []string {
|
||||
if rno_RUNOFF_Matcher_0.Match(i) {
|
||||
if rno_RUNOFF_Matcher_0.Match(string(i)) {
|
||||
return []string{"RUNOFF"}
|
||||
} else if rno_Roff_Matcher_0.Match(i) {
|
||||
} else if rno_Roff_Matcher_0.Match(string(i)) {
|
||||
return []string{"Roff"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".rpy": func(i []byte) []string {
|
||||
if rpy_Python_Matcher_0.Match(i) {
|
||||
if rpy_Python_Matcher_0.Match(string(i)) {
|
||||
return []string{"Python"}
|
||||
}
|
||||
|
||||
return []string{"Ren'Py"}
|
||||
},
|
||||
".rs": func(i []byte) []string {
|
||||
if rs_Rust_Matcher_0.Match(i) {
|
||||
if rs_Rust_Matcher_0.Match(string(i)) {
|
||||
return []string{"Rust"}
|
||||
} else if rs_RenderScript_Matcher_0.Match(i) {
|
||||
} else if rs_RenderScript_Matcher_0.Match(string(i)) {
|
||||
return []string{"RenderScript"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".sc": func(i []byte) []string {
|
||||
if sc_SuperCollider_Matcher_0.Match(i) || sc_SuperCollider_Matcher_1.Match(i) || sc_SuperCollider_Matcher_2.Match(i) {
|
||||
if sc_SuperCollider_Matcher_0.Match(string(i)) || sc_SuperCollider_Matcher_1.Match(string(i)) || sc_SuperCollider_Matcher_2.Match(string(i)) {
|
||||
return []string{"SuperCollider"}
|
||||
} else if sc_Scala_Matcher_0.Match(i) || sc_Scala_Matcher_1.Match(i) || sc_Scala_Matcher_2.Match(i) {
|
||||
} else if sc_Scala_Matcher_0.Match(string(i)) || sc_Scala_Matcher_1.Match(string(i)) || sc_Scala_Matcher_2.Match(string(i)) {
|
||||
return []string{"Scala"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".sql": func(i []byte) []string {
|
||||
if sql_PLpgSQL_Matcher_0.Match(i) || sql_PLpgSQL_Matcher_1.Match(i) || sql_PLpgSQL_Matcher_2.Match(i) {
|
||||
if sql_PLpgSQL_Matcher_0.Match(string(i)) || sql_PLpgSQL_Matcher_1.Match(string(i)) || sql_PLpgSQL_Matcher_2.Match(string(i)) {
|
||||
return []string{"PLpgSQL"}
|
||||
} else if sql_SQLPL_Matcher_0.Match(i) || sql_SQLPL_Matcher_1.Match(i) {
|
||||
} else if sql_SQLPL_Matcher_0.Match(string(i)) || sql_SQLPL_Matcher_1.Match(string(i)) {
|
||||
return []string{"SQLPL"}
|
||||
} else if sql_PLSQL_Matcher_0.Match(i) || sql_PLSQL_Matcher_1.Match(i) {
|
||||
} else if sql_PLSQL_Matcher_0.Match(string(i)) || sql_PLSQL_Matcher_1.Match(string(i)) {
|
||||
return []string{"PLSQL"}
|
||||
} else if sql_SQL_Matcher_0.Match(i) {
|
||||
} else if sql_SQL_Matcher_0.Match(string(i)) {
|
||||
return []string{"SQL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".srt": func(i []byte) []string {
|
||||
if srt_SubRipText_Matcher_0.Match(i) {
|
||||
if srt_SubRipText_Matcher_0.Match(string(i)) {
|
||||
return []string{"SubRip Text"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".t": func(i []byte) []string {
|
||||
if t_Turing_Matcher_0.Match(i) {
|
||||
if t_Turing_Matcher_0.Match(string(i)) {
|
||||
return []string{"Turing"}
|
||||
} else if t_Perl6_Matcher_0.Match(i) {
|
||||
} else if t_Perl6_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl 6"}
|
||||
} else if t_Perl_Matcher_0.Match(i) {
|
||||
} else if t_Perl_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".toc": func(i []byte) []string {
|
||||
if toc_WorldofWarcraftAddonData_Matcher_0.Match(i) {
|
||||
if toc_WorldofWarcraftAddonData_Matcher_0.Match(string(i)) {
|
||||
return []string{"World of Warcraft Addon Data"}
|
||||
} else if toc_TeX_Matcher_0.Match(i) {
|
||||
} else if toc_TeX_Matcher_0.Match(string(i)) {
|
||||
return []string{"TeX"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".ts": func(i []byte) []string {
|
||||
if ts_XML_Matcher_0.Match(i) {
|
||||
if ts_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
}
|
||||
|
||||
return []string{"TypeScript"}
|
||||
},
|
||||
".tst": func(i []byte) []string {
|
||||
if tst_GAP_Matcher_0.Match(i) {
|
||||
if tst_GAP_Matcher_0.Match(string(i)) {
|
||||
return []string{"GAP"}
|
||||
}
|
||||
|
||||
return []string{"Scilab"}
|
||||
},
|
||||
".tsx": func(i []byte) []string {
|
||||
if tsx_TypeScript_Matcher_0.Match(i) {
|
||||
if tsx_TypeScript_Matcher_0.Match(string(i)) {
|
||||
return []string{"TypeScript"}
|
||||
} else if tsx_XML_Matcher_0.Match(i) {
|
||||
} else if tsx_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
}
|
||||
|
||||
@ -447,122 +445,122 @@ var ContentMatchers = map[string]languageMatcher{
|
||||
}
|
||||
|
||||
var (
|
||||
asc_PublicKey_Matcher_0 = regexp.MustCompile(`(?m)^(----[- ]BEGIN|ssh-(rsa|dss)) `)
|
||||
asc_AsciiDoc_Matcher_0 = regexp.MustCompile(`(?m)^[=-]+(\s|\n)|{{[A-Za-z]`)
|
||||
asc_AGSScript_Matcher_0 = regexp.MustCompile(`(?m)^(\/\/.+|((import|export)\s+)?(function|int|float|char)\s+((room|repeatedly|on|game)_)?([A-Za-z]+[A-Za-z_0-9]+)\s*[;\(])`)
|
||||
bb_BlitzBasic_Matcher_0 = regexp.MustCompile(`(?m)^\s*; `)
|
||||
bb_BlitzBasic_Matcher_1 = regexp.MustCompile(`(?m)End Function`)
|
||||
bb_BitBake_Matcher_0 = regexp.MustCompile(`(?m)^\s*(# |include|require)\b`)
|
||||
builds_XML_Matcher_0 = regexp.MustCompile(`(?mi)^(\s*)(<Project|<Import|<Property|<?xml|xmlns)`)
|
||||
ch_xBase_Matcher_0 = regexp.MustCompile(`(?mi)^\s*#\s*(if|ifdef|ifndef|define|command|xcommand|translate|xtranslate|include|pragma|undef)\b`)
|
||||
cl_CommonLisp_Matcher_0 = regexp.MustCompile(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
cl_Cool_Matcher_0 = regexp.MustCompile(`(?m)^class`)
|
||||
cl_OpenCL_Matcher_0 = regexp.MustCompile(`(?m)\/\* |\/\/ |^\}`)
|
||||
cls_TeX_Matcher_0 = regexp.MustCompile(`(?m)\\\w+{`)
|
||||
cs_Smalltalk_Matcher_0 = regexp.MustCompile(`(?m)![\w\s]+methodsFor: `)
|
||||
cs_CSharp_Matcher_0 = regexp.MustCompile(`(?m)^\s*namespace\s*[\w\.]+\s*{`)
|
||||
cs_CSharp_Matcher_1 = regexp.MustCompile(`(?m)^\s*\/\/`)
|
||||
d_D_Matcher_0 = regexp.MustCompile(`(?m)^module\s+[\w.]*\s*;|import\s+[\w\s,.:]*;|\w+\s+\w+\s*\(.*\)(?:\(.*\))?\s*{[^}]*}|unittest\s*(?:\(.*\))?\s*{[^}]*}`)
|
||||
d_DTrace_Matcher_0 = regexp.MustCompile(`(?m)^(\w+:\w*:\w*:\w*|BEGIN|END|provider\s+|(tick|profile)-\w+\s+{[^}]*}|#pragma\s+D\s+(option|attributes|depends_on)\s|#pragma\s+ident\s)`)
|
||||
d_Makefile_Matcher_0 = regexp.MustCompile(`(?m)([\/\\].*:\s+.*\s\\$|: \\$|^ : |^[\w\s\/\\.]+\w+\.\w+\s*:\s+[\w\s\/\\.]+\w+\.\w+)`)
|
||||
ecl_ECLiPSe_Matcher_0 = regexp.MustCompile(`(?m)^[^#]+:-`)
|
||||
ecl_ECL_Matcher_0 = regexp.MustCompile(`(?m):=`)
|
||||
es_Erlang_Matcher_0 = regexp.MustCompile(`(?m)^\s*(?:%%|main\s*\(.*?\)\s*->)`)
|
||||
f_Forth_Matcher_0 = regexp.MustCompile(`(?m)^: `)
|
||||
f_FilebenchWML_Matcher_0 = regexp.MustCompile(`(?m)flowop`)
|
||||
f_Fortran_Matcher_0 = regexp.MustCompile(`(?mi)^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)`)
|
||||
for_Forth_Matcher_0 = regexp.MustCompile(`(?m)^: `)
|
||||
for_Fortran_Matcher_0 = regexp.MustCompile(`(?mi)^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)`)
|
||||
fr_Forth_Matcher_0 = regexp.MustCompile(`(?m)^(: |also |new-device|previous )`)
|
||||
fr_Frege_Matcher_0 = regexp.MustCompile(`(?m)^\s*(import|module|package|data|type) `)
|
||||
fs_Forth_Matcher_0 = regexp.MustCompile(`(?m)^(: |new-device)`)
|
||||
fs_FSharp_Matcher_0 = regexp.MustCompile(`(?m)^\s*(#light|import|let|module|namespace|open|type)`)
|
||||
fs_GLSL_Matcher_0 = regexp.MustCompile(`(?m)^\s*(#version|precision|uniform|varying|vec[234])`)
|
||||
fs_Filterscript_Matcher_0 = regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`)
|
||||
gs_Gosu_Matcher_0 = regexp.MustCompile(`(?m)^uses java\.`)
|
||||
h_ObjectiveDashC_Matcher_0 = regexp.MustCompile(`(?m)^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])`)
|
||||
h_CPlusPlus_Matcher_0 = regexp.MustCompile(`(?m)^\s*#\s*include <(cstdint|string|vector|map|list|array|bitset|queue|stack|forward_list|unordered_map|unordered_set|(i|o|io)stream)>`)
|
||||
h_CPlusPlus_Matcher_1 = regexp.MustCompile(`(?m)^\s*template\s*<`)
|
||||
h_CPlusPlus_Matcher_2 = regexp.MustCompile(`(?m)^[ \t]*try`)
|
||||
h_CPlusPlus_Matcher_3 = regexp.MustCompile(`(?m)^[ \t]*catch\s*\(`)
|
||||
h_CPlusPlus_Matcher_4 = regexp.MustCompile(`(?m)^[ \t]*(class|(using[ \t]+)?namespace)\s+\w+`)
|
||||
h_CPlusPlus_Matcher_5 = regexp.MustCompile(`(?m)^[ \t]*(private|public|protected):$`)
|
||||
h_CPlusPlus_Matcher_6 = regexp.MustCompile(`(?m)std::\w+`)
|
||||
inc_PHP_Matcher_0 = regexp.MustCompile(`(?m)^<\?(?:php)?`)
|
||||
inc_POVDashRaySDL_Matcher_0 = regexp.MustCompile(`(?m)^\s*#(declare|local|macro|while)\s`)
|
||||
l_CommonLisp_Matcher_0 = regexp.MustCompile(`(?m)\(def(un|macro)\s`)
|
||||
l_Lex_Matcher_0 = regexp.MustCompile(`(?m)^(%[%{}]xs|<.*>)`)
|
||||
l_Roff_Matcher_0 = regexp.MustCompile(`(?mi)^\.[a-z][a-z](\s|$)`)
|
||||
l_PicoLisp_Matcher_0 = regexp.MustCompile(`(?m)^\((de|class|rel|code|data|must)\s`)
|
||||
ls_LoomScript_Matcher_0 = regexp.MustCompile(`(?m)^\s*package\s*[\w\.\/\*\s]*\s*{`)
|
||||
lsp_CommonLisp_Matcher_0 = regexp.MustCompile(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
lsp_NewLisp_Matcher_0 = regexp.MustCompile(`(?m)^\s*\(define `)
|
||||
lisp_CommonLisp_Matcher_0 = regexp.MustCompile(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
lisp_NewLisp_Matcher_0 = regexp.MustCompile(`(?m)^\s*\(define `)
|
||||
m_ObjectiveDashC_Matcher_0 = regexp.MustCompile(`(?m)^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])`)
|
||||
m_Mercury_Matcher_0 = regexp.MustCompile(`(?m):- module`)
|
||||
m_MUF_Matcher_0 = regexp.MustCompile(`(?m)^: `)
|
||||
m_M_Matcher_0 = regexp.MustCompile(`(?m)^\s*;`)
|
||||
m_Mathematica_Matcher_0 = regexp.MustCompile(`(?m)\*\)$`)
|
||||
m_Matlab_Matcher_0 = regexp.MustCompile(`(?m)^\s*%`)
|
||||
m_Limbo_Matcher_0 = regexp.MustCompile(`(?m)^\w+\s*:\s*module\s*{`)
|
||||
md_Markdown_Matcher_0 = regexp.MustCompile(`(?mi)(^[-a-z0-9=#!\*\[|>])|<\/`)
|
||||
md_Markdown_Matcher_1 = regexp.MustCompile(`^$`)
|
||||
md_GCCMachineDescription_Matcher_0 = regexp.MustCompile(`(?m)^(;;|\(define_)`)
|
||||
ml_OCaml_Matcher_0 = regexp.MustCompile(`(?m)(^\s*module)|let rec |match\s+(\S+\s)+with`)
|
||||
ml_StandardML_Matcher_0 = regexp.MustCompile(`(?m)=> |case\s+(\S+\s)+of`)
|
||||
mod_XML_Matcher_0 = regexp.MustCompile(`(?m)<!ENTITY `)
|
||||
mod_ModulaDash2_Matcher_0 = regexp.MustCompile(`(?mi)^\s*MODULE [\w\.]+;`)
|
||||
mod_ModulaDash2_Matcher_1 = regexp.MustCompile(`(?mi)^\s*END [\w\.]+;`)
|
||||
ms_Roff_Matcher_0 = regexp.MustCompile(`(?mi)^[.'][a-z][a-z](\s|$)`)
|
||||
n_Roff_Matcher_0 = regexp.MustCompile(`(?m)^[.']`)
|
||||
n_Nemerle_Matcher_0 = regexp.MustCompile(`(?m)^(module|namespace|using)\s`)
|
||||
ncl_Text_Matcher_0 = regexp.MustCompile(`(?m)THE_TITLE`)
|
||||
nl_NL_Matcher_0 = regexp.MustCompile(`(?m)^(b|g)[0-9]+ `)
|
||||
php_Hack_Matcher_0 = regexp.MustCompile(`(?m)<\?hh`)
|
||||
php_PHP_Matcher_0 = regexp.MustCompile(`(?m)<?[^h]`)
|
||||
pl_Prolog_Matcher_0 = regexp.MustCompile(`(?m)^[^#]*:-`)
|
||||
pl_Perl_Matcher_0 = regexp.MustCompile(`(?m)use strict|use\s+v?5\.`)
|
||||
pl_Perl6_Matcher_0 = regexp.MustCompile(`(?m)^(use v6|(my )?class|module)`)
|
||||
pm_Perl6_Matcher_0 = regexp.MustCompile(`(?m)^\s*(?:use\s+v6\s*;|(?:\bmy\s+)?class|module)\b`)
|
||||
pm_Perl_Matcher_0 = regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`)
|
||||
pod_Pod_Matcher_0 = regexp.MustCompile(`(?m)^=\w+\b`)
|
||||
pro_Prolog_Matcher_0 = regexp.MustCompile(`(?m)^[^#]+:-`)
|
||||
pro_INI_Matcher_0 = regexp.MustCompile(`(?m)last_client=`)
|
||||
pro_QMake_Matcher_0 = regexp.MustCompile(`(?m)HEADERS`)
|
||||
pro_QMake_Matcher_1 = regexp.MustCompile(`(?m)SOURCES`)
|
||||
pro_IDL_Matcher_0 = regexp.MustCompile(`(?m)^\s*function[ \w,]+$`)
|
||||
props_XML_Matcher_0 = regexp.MustCompile(`(?mi)^(\s*)(<Project|<Import|<Property|<?xml|xmlns)`)
|
||||
props_INI_Matcher_0 = regexp.MustCompile(`(?mi)\w+\s*=\s*`)
|
||||
r_Rebol_Matcher_0 = regexp.MustCompile(`(?mi)\bRebol\b`)
|
||||
r_R_Matcher_0 = regexp.MustCompile(`(?m)<-|^\s*#`)
|
||||
rno_RUNOFF_Matcher_0 = regexp.MustCompile(`(?mi)^\.!|^\.end lit(?:eral)?\b`)
|
||||
rno_Roff_Matcher_0 = regexp.MustCompile(`(?m)^\.\\" `)
|
||||
rpy_Python_Matcher_0 = regexp.MustCompile(`(?ms)(^(import|from|class|def)\s)`)
|
||||
rs_Rust_Matcher_0 = regexp.MustCompile(`(?m)^(use |fn |mod |pub |macro_rules|impl|#!?\[)`)
|
||||
rs_RenderScript_Matcher_0 = regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`)
|
||||
sc_SuperCollider_Matcher_0 = regexp.MustCompile(`(?m)\^(this|super)\.`)
|
||||
sc_SuperCollider_Matcher_1 = regexp.MustCompile(`(?m)^\s*(\+|\*)\s*\w+\s*{`)
|
||||
sc_SuperCollider_Matcher_2 = regexp.MustCompile(`(?m)^\s*~\w+\s*=\.`)
|
||||
sc_Scala_Matcher_0 = regexp.MustCompile(`(?m)^\s*import (scala|java)\.`)
|
||||
sc_Scala_Matcher_1 = regexp.MustCompile(`(?m)^\s*val\s+\w+\s*=`)
|
||||
sc_Scala_Matcher_2 = regexp.MustCompile(`(?m)^\s*class\b`)
|
||||
sql_PLpgSQL_Matcher_0 = regexp.MustCompile(`(?mi)^\\i\b|AS \$\$|LANGUAGE '?plpgsql'?`)
|
||||
sql_PLpgSQL_Matcher_1 = regexp.MustCompile(`(?mi)SECURITY (DEFINER|INVOKER)`)
|
||||
sql_PLpgSQL_Matcher_2 = regexp.MustCompile(`(?mi)BEGIN( WORK| TRANSACTION)?;`)
|
||||
sql_SQLPL_Matcher_0 = regexp.MustCompile(`(?mi)(alter module)|(language sql)|(begin( NOT)+ atomic)`)
|
||||
sql_SQLPL_Matcher_1 = regexp.MustCompile(`(?mi)signal SQLSTATE '[0-9]+'`)
|
||||
sql_PLSQL_Matcher_0 = regexp.MustCompile(`(?mi)\$\$PLSQL_|XMLTYPE|sysdate|systimestamp|\.nextval|connect by|AUTHID (DEFINER|CURRENT_USER)`)
|
||||
sql_PLSQL_Matcher_1 = regexp.MustCompile(`(?mi)constructor\W+function`)
|
||||
sql_SQL_Matcher_0 = regexp.MustCompile(`(?mi)! /begin|boolean|package|exception`)
|
||||
srt_SubRipText_Matcher_0 = regexp.MustCompile(`(?m)^(\d{2}:\d{2}:\d{2},\d{3})\s*(-->)\s*(\d{2}:\d{2}:\d{2},\d{3})$`)
|
||||
t_Turing_Matcher_0 = regexp.MustCompile(`(?m)^\s*%[ \t]+|^\s*var\s+\w+\s*:=\s*\w+`)
|
||||
t_Perl6_Matcher_0 = regexp.MustCompile(`(?m)^\s*(?:use\s+v6\s*;|\bmodule\b|\b(?:my\s+)?class\b)`)
|
||||
t_Perl_Matcher_0 = regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`)
|
||||
toc_WorldofWarcraftAddonData_Matcher_0 = regexp.MustCompile(`(?m)^## |@no-lib-strip@`)
|
||||
toc_TeX_Matcher_0 = regexp.MustCompile(`(?m)^\\(contentsline|defcounter|beamer|boolfalse)`)
|
||||
ts_XML_Matcher_0 = regexp.MustCompile(`(?m)<TS`)
|
||||
tst_GAP_Matcher_0 = regexp.MustCompile(`(?m)gap> `)
|
||||
tsx_TypeScript_Matcher_0 = regexp.MustCompile(`(?m)^\s*(import.+(from\s+|require\()['"]react|\/\/\/\s*<reference\s)`)
|
||||
tsx_XML_Matcher_0 = regexp.MustCompile(`(?mi)^\s*<\?xml\s+version`)
|
||||
asc_PublicKey_Matcher_0 = substring.Regexp(`(?m)^(----[- ]BEGIN|ssh-(rsa|dss)) `)
|
||||
asc_AsciiDoc_Matcher_0 = substring.Regexp(`(?m)^[=-]+(\s|\n)|{{[A-Za-z]`)
|
||||
asc_AGSScript_Matcher_0 = substring.Regexp(`(?m)^(\/\/.+|((import|export)\s+)?(function|int|float|char)\s+((room|repeatedly|on|game)_)?([A-Za-z]+[A-Za-z_0-9]+)\s*[;\(])`)
|
||||
bb_BlitzBasic_Matcher_0 = substring.Regexp(`(?m)^\s*; `)
|
||||
bb_BlitzBasic_Matcher_1 = substring.Regexp(`(?m)End Function`)
|
||||
bb_BitBake_Matcher_0 = substring.Regexp(`(?m)^\s*(# |include|require)\b`)
|
||||
builds_XML_Matcher_0 = substring.Regexp(`(?mi)^(\s*)(<Project|<Import|<Property|<?xml|xmlns)`)
|
||||
ch_xBase_Matcher_0 = substring.Regexp(`(?mi)^\s*#\s*(if|ifdef|ifndef|define|command|xcommand|translate|xtranslate|include|pragma|undef)\b`)
|
||||
cl_CommonLisp_Matcher_0 = substring.Regexp(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
cl_Cool_Matcher_0 = substring.Regexp(`(?m)^class`)
|
||||
cl_OpenCL_Matcher_0 = substring.Regexp(`(?m)\/\* |\/\/ |^\}`)
|
||||
cls_TeX_Matcher_0 = substring.Regexp(`(?m)\\\w+{`)
|
||||
cs_Smalltalk_Matcher_0 = substring.Regexp(`(?m)![\w\s]+methodsFor: `)
|
||||
cs_CSharp_Matcher_0 = substring.Regexp(`(?m)^\s*namespace\s*[\w\.]+\s*{`)
|
||||
cs_CSharp_Matcher_1 = substring.Regexp(`(?m)^\s*\/\/`)
|
||||
d_D_Matcher_0 = substring.Regexp(`(?m)^module\s+[\w.]*\s*;|import\s+[\w\s,.:]*;|\w+\s+\w+\s*\(.*\)(?:\(.*\))?\s*{[^}]*}|unittest\s*(?:\(.*\))?\s*{[^}]*}`)
|
||||
d_DTrace_Matcher_0 = substring.Regexp(`(?m)^(\w+:\w*:\w*:\w*|BEGIN|END|provider\s+|(tick|profile)-\w+\s+{[^}]*}|#pragma\s+D\s+(option|attributes|depends_on)\s|#pragma\s+ident\s)`)
|
||||
d_Makefile_Matcher_0 = substring.Regexp(`(?m)([\/\\].*:\s+.*\s\\$|: \\$|^ : |^[\w\s\/\\.]+\w+\.\w+\s*:\s+[\w\s\/\\.]+\w+\.\w+)`)
|
||||
ecl_ECLiPSe_Matcher_0 = substring.Regexp(`(?m)^[^#]+:-`)
|
||||
ecl_ECL_Matcher_0 = substring.Regexp(`(?m):=`)
|
||||
es_Erlang_Matcher_0 = substring.Regexp(`(?m)^\s*(?:%%|main\s*\(.*?\)\s*->)`)
|
||||
f_Forth_Matcher_0 = substring.Regexp(`(?m)^: `)
|
||||
f_FilebenchWML_Matcher_0 = substring.Regexp(`(?m)flowop`)
|
||||
f_Fortran_Matcher_0 = substring.Regexp(`(?mi)^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)`)
|
||||
for_Forth_Matcher_0 = substring.Regexp(`(?m)^: `)
|
||||
for_Fortran_Matcher_0 = substring.Regexp(`(?mi)^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)`)
|
||||
fr_Forth_Matcher_0 = substring.Regexp(`(?m)^(: |also |new-device|previous )`)
|
||||
fr_Frege_Matcher_0 = substring.Regexp(`(?m)^\s*(import|module|package|data|type) `)
|
||||
fs_Forth_Matcher_0 = substring.Regexp(`(?m)^(: |new-device)`)
|
||||
fs_FSharp_Matcher_0 = substring.Regexp(`(?m)^\s*(#light|import|let|module|namespace|open|type)`)
|
||||
fs_GLSL_Matcher_0 = substring.Regexp(`(?m)^\s*(#version|precision|uniform|varying|vec[234])`)
|
||||
fs_Filterscript_Matcher_0 = substring.Regexp(`(?m)#include|#pragma\s+(rs|version)|__attribute__`)
|
||||
gs_Gosu_Matcher_0 = substring.Regexp(`(?m)^uses java\.`)
|
||||
h_ObjectiveDashC_Matcher_0 = substring.Regexp(`(?m)^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])`)
|
||||
h_CPlusPlus_Matcher_0 = substring.Regexp(`(?m)^\s*#\s*include <(cstdint|string|vector|map|list|array|bitset|queue|stack|forward_list|unordered_map|unordered_set|(i|o|io)stream)>`)
|
||||
h_CPlusPlus_Matcher_1 = substring.Regexp(`(?m)^\s*template\s*<`)
|
||||
h_CPlusPlus_Matcher_2 = substring.Regexp(`(?m)^[ \t]*try`)
|
||||
h_CPlusPlus_Matcher_3 = substring.Regexp(`(?m)^[ \t]*catch\s*\(`)
|
||||
h_CPlusPlus_Matcher_4 = substring.Regexp(`(?m)^[ \t]*(class|(using[ \t]+)?namespace)\s+\w+`)
|
||||
h_CPlusPlus_Matcher_5 = substring.Regexp(`(?m)^[ \t]*(private|public|protected):$`)
|
||||
h_CPlusPlus_Matcher_6 = substring.Regexp(`(?m)std::\w+`)
|
||||
inc_PHP_Matcher_0 = substring.Regexp(`(?m)^<\?(?:php)?`)
|
||||
inc_POVDashRaySDL_Matcher_0 = substring.Regexp(`(?m)^\s*#(declare|local|macro|while)\s`)
|
||||
l_CommonLisp_Matcher_0 = substring.Regexp(`(?m)\(def(un|macro)\s`)
|
||||
l_Lex_Matcher_0 = substring.Regexp(`(?m)^(%[%{}]xs|<.*>)`)
|
||||
l_Roff_Matcher_0 = substring.Regexp(`(?mi)^\.[a-z][a-z](\s|$)`)
|
||||
l_PicoLisp_Matcher_0 = substring.Regexp(`(?m)^\((de|class|rel|code|data|must)\s`)
|
||||
ls_LoomScript_Matcher_0 = substring.Regexp(`(?m)^\s*package\s*[\w\.\/\*\s]*\s*{`)
|
||||
lsp_CommonLisp_Matcher_0 = substring.Regexp(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
lsp_NewLisp_Matcher_0 = substring.Regexp(`(?m)^\s*\(define `)
|
||||
lisp_CommonLisp_Matcher_0 = substring.Regexp(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
lisp_NewLisp_Matcher_0 = substring.Regexp(`(?m)^\s*\(define `)
|
||||
m_ObjectiveDashC_Matcher_0 = substring.Regexp(`(?m)^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])`)
|
||||
m_Mercury_Matcher_0 = substring.Regexp(`(?m):- module`)
|
||||
m_MUF_Matcher_0 = substring.Regexp(`(?m)^: `)
|
||||
m_M_Matcher_0 = substring.Regexp(`(?m)^\s*;`)
|
||||
m_Mathematica_Matcher_0 = substring.Regexp(`(?m)\*\)$`)
|
||||
m_Matlab_Matcher_0 = substring.Regexp(`(?m)^\s*%`)
|
||||
m_Limbo_Matcher_0 = substring.Regexp(`(?m)^\w+\s*:\s*module\s*{`)
|
||||
md_Markdown_Matcher_0 = substring.Regexp(`(?mi)(^[-a-z0-9=#!\*\[|>])|<\/`)
|
||||
md_Markdown_Matcher_1 = substring.Regexp(`^$`)
|
||||
md_GCCMachineDescription_Matcher_0 = substring.Regexp(`(?m)^(;;|\(define_)`)
|
||||
ml_OCaml_Matcher_0 = substring.Regexp(`(?m)(^\s*module)|let rec |match\s+(\S+\s)+with`)
|
||||
ml_StandardML_Matcher_0 = substring.Regexp(`(?m)=> |case\s+(\S+\s)+of`)
|
||||
mod_XML_Matcher_0 = substring.Regexp(`(?m)<!ENTITY `)
|
||||
mod_ModulaDash2_Matcher_0 = substring.Regexp(`(?mi)^\s*MODULE [\w\.]+;`)
|
||||
mod_ModulaDash2_Matcher_1 = substring.Regexp(`(?mi)^\s*END [\w\.]+;`)
|
||||
ms_Roff_Matcher_0 = substring.Regexp(`(?mi)^[.'][a-z][a-z](\s|$)`)
|
||||
n_Roff_Matcher_0 = substring.Regexp(`(?m)^[.']`)
|
||||
n_Nemerle_Matcher_0 = substring.Regexp(`(?m)^(module|namespace|using)\s`)
|
||||
ncl_Text_Matcher_0 = substring.Regexp(`(?m)THE_TITLE`)
|
||||
nl_NL_Matcher_0 = substring.Regexp(`(?m)^(b|g)[0-9]+ `)
|
||||
php_Hack_Matcher_0 = substring.Regexp(`(?m)<\?hh`)
|
||||
php_PHP_Matcher_0 = substring.Regexp(`(?m)<?[^h]`)
|
||||
pl_Prolog_Matcher_0 = substring.Regexp(`(?m)^[^#]*:-`)
|
||||
pl_Perl_Matcher_0 = substring.Regexp(`(?m)use strict|use\s+v?5\.`)
|
||||
pl_Perl6_Matcher_0 = substring.Regexp(`(?m)^(use v6|(my )?class|module)`)
|
||||
pm_Perl6_Matcher_0 = substring.Regexp(`(?m)^\s*(?:use\s+v6\s*;|(?:\bmy\s+)?class|module)\b`)
|
||||
pm_Perl_Matcher_0 = substring.Regexp(`(?m)\buse\s+(?:strict\b|v?5\.)`)
|
||||
pod_Pod_Matcher_0 = substring.Regexp(`(?m)^=\w+\b`)
|
||||
pro_Prolog_Matcher_0 = substring.Regexp(`(?m)^[^#]+:-`)
|
||||
pro_INI_Matcher_0 = substring.Regexp(`(?m)last_client=`)
|
||||
pro_QMake_Matcher_0 = substring.Regexp(`(?m)HEADERS`)
|
||||
pro_QMake_Matcher_1 = substring.Regexp(`(?m)SOURCES`)
|
||||
pro_IDL_Matcher_0 = substring.Regexp(`(?m)^\s*function[ \w,]+$`)
|
||||
props_XML_Matcher_0 = substring.Regexp(`(?mi)^(\s*)(<Project|<Import|<Property|<?xml|xmlns)`)
|
||||
props_INI_Matcher_0 = substring.Regexp(`(?mi)\w+\s*=\s*`)
|
||||
r_Rebol_Matcher_0 = substring.Regexp(`(?mi)\bRebol\b`)
|
||||
r_R_Matcher_0 = substring.Regexp(`(?m)<-|^\s*#`)
|
||||
rno_RUNOFF_Matcher_0 = substring.Regexp(`(?mi)^\.!|^\.end lit(?:eral)?\b`)
|
||||
rno_Roff_Matcher_0 = substring.Regexp(`(?m)^\.\\" `)
|
||||
rpy_Python_Matcher_0 = substring.Regexp(`(?ms)(^(import|from|class|def)\s)`)
|
||||
rs_Rust_Matcher_0 = substring.Regexp(`(?m)^(use |fn |mod |pub |macro_rules|impl|#!?\[)`)
|
||||
rs_RenderScript_Matcher_0 = substring.Regexp(`(?m)#include|#pragma\s+(rs|version)|__attribute__`)
|
||||
sc_SuperCollider_Matcher_0 = substring.Regexp(`(?m)\^(this|super)\.`)
|
||||
sc_SuperCollider_Matcher_1 = substring.Regexp(`(?m)^\s*(\+|\*)\s*\w+\s*{`)
|
||||
sc_SuperCollider_Matcher_2 = substring.Regexp(`(?m)^\s*~\w+\s*=\.`)
|
||||
sc_Scala_Matcher_0 = substring.Regexp(`(?m)^\s*import (scala|java)\.`)
|
||||
sc_Scala_Matcher_1 = substring.Regexp(`(?m)^\s*val\s+\w+\s*=`)
|
||||
sc_Scala_Matcher_2 = substring.Regexp(`(?m)^\s*class\b`)
|
||||
sql_PLpgSQL_Matcher_0 = substring.Regexp(`(?mi)^\\i\b|AS \$\$|LANGUAGE '?plpgsql'?`)
|
||||
sql_PLpgSQL_Matcher_1 = substring.Regexp(`(?mi)SECURITY (DEFINER|INVOKER)`)
|
||||
sql_PLpgSQL_Matcher_2 = substring.Regexp(`(?mi)BEGIN( WORK| TRANSACTION)?;`)
|
||||
sql_SQLPL_Matcher_0 = substring.Regexp(`(?mi)(alter module)|(language sql)|(begin( NOT)+ atomic)`)
|
||||
sql_SQLPL_Matcher_1 = substring.Regexp(`(?mi)signal SQLSTATE '[0-9]+'`)
|
||||
sql_PLSQL_Matcher_0 = substring.Regexp(`(?mi)\$\$PLSQL_|XMLTYPE|sysdate|systimestamp|\.nextval|connect by|AUTHID (DEFINER|CURRENT_USER)`)
|
||||
sql_PLSQL_Matcher_1 = substring.Regexp(`(?mi)constructor\W+function`)
|
||||
sql_SQL_Matcher_0 = substring.Regexp(`(?mi)! /begin|boolean|package|exception`)
|
||||
srt_SubRipText_Matcher_0 = substring.Regexp(`(?m)^(\d{2}:\d{2}:\d{2},\d{3})\s*(-->)\s*(\d{2}:\d{2}:\d{2},\d{3})$`)
|
||||
t_Turing_Matcher_0 = substring.Regexp(`(?m)^\s*%[ \t]+|^\s*var\s+\w+\s*:=\s*\w+`)
|
||||
t_Perl6_Matcher_0 = substring.Regexp(`(?m)^\s*(?:use\s+v6\s*;|\bmodule\b|\b(?:my\s+)?class\b)`)
|
||||
t_Perl_Matcher_0 = substring.Regexp(`(?m)\buse\s+(?:strict\b|v?5\.)`)
|
||||
toc_WorldofWarcraftAddonData_Matcher_0 = substring.Regexp(`(?m)^## |@no-lib-strip@`)
|
||||
toc_TeX_Matcher_0 = substring.Regexp(`(?m)^\\(contentsline|defcounter|beamer|boolfalse)`)
|
||||
ts_XML_Matcher_0 = substring.Regexp(`(?m)<TS`)
|
||||
tst_GAP_Matcher_0 = substring.Regexp(`(?m)gap> `)
|
||||
tsx_TypeScript_Matcher_0 = substring.Regexp(`(?m)^\s*(import.+(from\s+|require\()['"]react|\/\/\/\s*<reference\s)`)
|
||||
tsx_XML_Matcher_0 = substring.Regexp(`(?mi)^\s*<\?xml\s+version`)
|
||||
)
|
||||
|
@ -4,9 +4,7 @@ package data
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: {{ getCommit }}
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
)
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
|
||||
type languageMatcher func ([]byte) []string
|
||||
|
||||
@ -17,8 +15,8 @@ var ContentMatchers = map[string]languageMatcher{
|
||||
|
||||
{{- if not (avoidLanguage $language) }}
|
||||
{{- if gt (len $language.Heuristics) 0 }}
|
||||
{{- if gt $i 0 }} else {{ end -}}
|
||||
if {{- range $j, $heuristic := $language.Heuristics }} {{ $heuristic.Name }}.Match(i)
|
||||
{{- if gt $i 0 }} else {{ end -}}
|
||||
if {{- range $j, $heuristic := $language.Heuristics }} {{ $heuristic.Name }}.Match(string(i))
|
||||
{{- if lt $j (len $language.LogicRelations) }} {{index $language.LogicRelations $j}} {{- end -}} {{ end }} {
|
||||
return []string{ {{- printf "%q" $language.Language -}} }
|
||||
}
|
||||
@ -34,6 +32,6 @@ var ContentMatchers = map[string]languageMatcher{
|
||||
|
||||
var (
|
||||
{{ range $index, $heuristic := getAllHeuristics . -}}
|
||||
{{ $heuristic.Name }} = regexp.MustCompile(`{{ $heuristic.Regexp }}`)
|
||||
{{ $heuristic.Name }} = substring.Regexp(`{{ $heuristic.Regexp }}`)
|
||||
{{ end -}}
|
||||
)
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
|
||||
const (
|
||||
lingustURL = "https://github.com/github/linguist.git"
|
||||
commit = "b6460f8ed6b249281ada099ca28bd8f1230b8892"
|
||||
commit = "d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68"
|
||||
samplesDir = "samples"
|
||||
languagesFile = "lib/linguist/languages.yml"
|
||||
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
// LanguagesByAlias keeps alias for different languages and use the name of the languages as an alias too.
|
||||
// All the keys (alias or not) are written in lower case and the whitespaces has been replaced by underscores.
|
||||
@ -163,6 +163,7 @@ var LanguagesByAlias = map[string]string{
|
||||
"dylan": "Dylan",
|
||||
"e": "E",
|
||||
"eagle": "Eagle",
|
||||
"easybuild": "Easybuild",
|
||||
"ebnf": "EBNF",
|
||||
"ec": "eC",
|
||||
"ecere_projects": "Ecere Projects",
|
||||
@ -438,7 +439,7 @@ var LanguagesByAlias = map[string]string{
|
||||
"pawn": "PAWN",
|
||||
"pep8": "Pep8",
|
||||
"perl": "Perl",
|
||||
"perl6": "Perl6",
|
||||
"perl_6": "Perl 6",
|
||||
"php": "PHP",
|
||||
"pic": "Pic",
|
||||
"pickle": "Pickle",
|
||||
@ -508,6 +509,7 @@ var LanguagesByAlias = map[string]string{
|
||||
"restructuredtext": "reStructuredText",
|
||||
"rexx": "REXX",
|
||||
"rhtml": "RHTML",
|
||||
"ring": "Ring",
|
||||
"rmarkdown": "RMarkdown",
|
||||
"robotframework": "RobotFramework",
|
||||
"roff": "Roff",
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
// linguist's commit from which files were generated.
|
||||
var LinguistCommit = "b6460f8ed6b249281ada099ca28bd8f1230b8892"
|
||||
var LinguistCommit = "d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68"
|
||||
|
@ -2,443 +2,441 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
)
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
|
||||
type languageMatcher func([]byte) []string
|
||||
|
||||
var ContentMatchers = map[string]languageMatcher{
|
||||
".asc": func(i []byte) []string {
|
||||
if asc_PublicKey_Matcher_0.Match(i) {
|
||||
if asc_PublicKey_Matcher_0.Match(string(i)) {
|
||||
return []string{"Public Key"}
|
||||
} else if asc_AsciiDoc_Matcher_0.Match(i) {
|
||||
} else if asc_AsciiDoc_Matcher_0.Match(string(i)) {
|
||||
return []string{"AsciiDoc"}
|
||||
} else if asc_AGSScript_Matcher_0.Match(i) {
|
||||
} else if asc_AGSScript_Matcher_0.Match(string(i)) {
|
||||
return []string{"AGS Script"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".bb": func(i []byte) []string {
|
||||
if bb_BlitzBasic_Matcher_0.Match(i) || bb_BlitzBasic_Matcher_1.Match(i) {
|
||||
if bb_BlitzBasic_Matcher_0.Match(string(i)) || bb_BlitzBasic_Matcher_1.Match(string(i)) {
|
||||
return []string{"BlitzBasic"}
|
||||
} else if bb_BitBake_Matcher_0.Match(i) {
|
||||
} else if bb_BitBake_Matcher_0.Match(string(i)) {
|
||||
return []string{"BitBake"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".builds": func(i []byte) []string {
|
||||
if builds_XML_Matcher_0.Match(i) {
|
||||
if builds_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
}
|
||||
|
||||
return []string{"Text"}
|
||||
},
|
||||
".ch": func(i []byte) []string {
|
||||
if ch_xBase_Matcher_0.Match(i) {
|
||||
if ch_xBase_Matcher_0.Match(string(i)) {
|
||||
return []string{"xBase"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".cl": func(i []byte) []string {
|
||||
if cl_CommonLisp_Matcher_0.Match(i) {
|
||||
if cl_CommonLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"Common Lisp"}
|
||||
} else if cl_Cool_Matcher_0.Match(i) {
|
||||
} else if cl_Cool_Matcher_0.Match(string(i)) {
|
||||
return []string{"Cool"}
|
||||
} else if cl_OpenCL_Matcher_0.Match(i) {
|
||||
} else if cl_OpenCL_Matcher_0.Match(string(i)) {
|
||||
return []string{"OpenCL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".cls": func(i []byte) []string {
|
||||
if cls_TeX_Matcher_0.Match(i) {
|
||||
if cls_TeX_Matcher_0.Match(string(i)) {
|
||||
return []string{"TeX"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".cs": func(i []byte) []string {
|
||||
if cs_Smalltalk_Matcher_0.Match(i) {
|
||||
if cs_Smalltalk_Matcher_0.Match(string(i)) {
|
||||
return []string{"Smalltalk"}
|
||||
} else if cs_CSharp_Matcher_0.Match(i) || cs_CSharp_Matcher_1.Match(i) {
|
||||
} else if cs_CSharp_Matcher_0.Match(string(i)) || cs_CSharp_Matcher_1.Match(string(i)) {
|
||||
return []string{"C#"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".d": func(i []byte) []string {
|
||||
if d_D_Matcher_0.Match(i) {
|
||||
if d_D_Matcher_0.Match(string(i)) {
|
||||
return []string{"D"}
|
||||
} else if d_DTrace_Matcher_0.Match(i) {
|
||||
} else if d_DTrace_Matcher_0.Match(string(i)) {
|
||||
return []string{"DTrace"}
|
||||
} else if d_Makefile_Matcher_0.Match(i) {
|
||||
} else if d_Makefile_Matcher_0.Match(string(i)) {
|
||||
return []string{"Makefile"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".ecl": func(i []byte) []string {
|
||||
if ecl_ECLiPSe_Matcher_0.Match(i) {
|
||||
if ecl_ECLiPSe_Matcher_0.Match(string(i)) {
|
||||
return []string{"ECLiPSe"}
|
||||
} else if ecl_ECL_Matcher_0.Match(i) {
|
||||
} else if ecl_ECL_Matcher_0.Match(string(i)) {
|
||||
return []string{"ECL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".es": func(i []byte) []string {
|
||||
if es_Erlang_Matcher_0.Match(i) {
|
||||
if es_Erlang_Matcher_0.Match(string(i)) {
|
||||
return []string{"Erlang"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".f": func(i []byte) []string {
|
||||
if f_Forth_Matcher_0.Match(i) {
|
||||
if f_Forth_Matcher_0.Match(string(i)) {
|
||||
return []string{"Forth"}
|
||||
} else if f_FilebenchWML_Matcher_0.Match(i) {
|
||||
} else if f_FilebenchWML_Matcher_0.Match(string(i)) {
|
||||
return []string{"Filebench WML"}
|
||||
} else if f_Fortran_Matcher_0.Match(i) {
|
||||
} else if f_Fortran_Matcher_0.Match(string(i)) {
|
||||
return []string{"Fortran"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".for": func(i []byte) []string {
|
||||
if for_Forth_Matcher_0.Match(i) {
|
||||
if for_Forth_Matcher_0.Match(string(i)) {
|
||||
return []string{"Forth"}
|
||||
} else if for_Fortran_Matcher_0.Match(i) {
|
||||
} else if for_Fortran_Matcher_0.Match(string(i)) {
|
||||
return []string{"Fortran"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".fr": func(i []byte) []string {
|
||||
if fr_Forth_Matcher_0.Match(i) {
|
||||
if fr_Forth_Matcher_0.Match(string(i)) {
|
||||
return []string{"Forth"}
|
||||
} else if fr_Frege_Matcher_0.Match(i) {
|
||||
} else if fr_Frege_Matcher_0.Match(string(i)) {
|
||||
return []string{"Frege"}
|
||||
}
|
||||
|
||||
return []string{"Text"}
|
||||
},
|
||||
".fs": func(i []byte) []string {
|
||||
if fs_Forth_Matcher_0.Match(i) {
|
||||
if fs_Forth_Matcher_0.Match(string(i)) {
|
||||
return []string{"Forth"}
|
||||
} else if fs_FSharp_Matcher_0.Match(i) {
|
||||
} else if fs_FSharp_Matcher_0.Match(string(i)) {
|
||||
return []string{"F#"}
|
||||
} else if fs_GLSL_Matcher_0.Match(i) {
|
||||
} else if fs_GLSL_Matcher_0.Match(string(i)) {
|
||||
return []string{"GLSL"}
|
||||
} else if fs_Filterscript_Matcher_0.Match(i) {
|
||||
} else if fs_Filterscript_Matcher_0.Match(string(i)) {
|
||||
return []string{"Filterscript"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".gs": func(i []byte) []string {
|
||||
if gs_Gosu_Matcher_0.Match(i) {
|
||||
if gs_Gosu_Matcher_0.Match(string(i)) {
|
||||
return []string{"Gosu"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".h": func(i []byte) []string {
|
||||
if h_ObjectiveDashC_Matcher_0.Match(i) {
|
||||
if h_ObjectiveDashC_Matcher_0.Match(string(i)) {
|
||||
return []string{"Objective-C"}
|
||||
} else if h_CPlusPlus_Matcher_0.Match(i) || h_CPlusPlus_Matcher_1.Match(i) || h_CPlusPlus_Matcher_2.Match(i) || h_CPlusPlus_Matcher_3.Match(i) || h_CPlusPlus_Matcher_4.Match(i) || h_CPlusPlus_Matcher_5.Match(i) || h_CPlusPlus_Matcher_6.Match(i) {
|
||||
} else if h_CPlusPlus_Matcher_0.Match(string(i)) || h_CPlusPlus_Matcher_1.Match(string(i)) || h_CPlusPlus_Matcher_2.Match(string(i)) || h_CPlusPlus_Matcher_3.Match(string(i)) || h_CPlusPlus_Matcher_4.Match(string(i)) || h_CPlusPlus_Matcher_5.Match(string(i)) || h_CPlusPlus_Matcher_6.Match(string(i)) {
|
||||
return []string{"C++"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".inc": func(i []byte) []string {
|
||||
if inc_PHP_Matcher_0.Match(i) {
|
||||
if inc_PHP_Matcher_0.Match(string(i)) {
|
||||
return []string{"PHP"}
|
||||
} else if inc_POVDashRaySDL_Matcher_0.Match(i) {
|
||||
} else if inc_POVDashRaySDL_Matcher_0.Match(string(i)) {
|
||||
return []string{"POV-Ray SDL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".l": func(i []byte) []string {
|
||||
if l_CommonLisp_Matcher_0.Match(i) {
|
||||
if l_CommonLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"Common Lisp"}
|
||||
} else if l_Lex_Matcher_0.Match(i) {
|
||||
} else if l_Lex_Matcher_0.Match(string(i)) {
|
||||
return []string{"Lex"}
|
||||
} else if l_Roff_Matcher_0.Match(i) {
|
||||
} else if l_Roff_Matcher_0.Match(string(i)) {
|
||||
return []string{"Roff"}
|
||||
} else if l_PicoLisp_Matcher_0.Match(i) {
|
||||
} else if l_PicoLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"PicoLisp"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".ls": func(i []byte) []string {
|
||||
if ls_LoomScript_Matcher_0.Match(i) {
|
||||
if ls_LoomScript_Matcher_0.Match(string(i)) {
|
||||
return []string{"LoomScript"}
|
||||
}
|
||||
|
||||
return []string{"LiveScript"}
|
||||
},
|
||||
".lsp": func(i []byte) []string {
|
||||
if lsp_CommonLisp_Matcher_0.Match(i) {
|
||||
if lsp_CommonLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"Common Lisp"}
|
||||
} else if lsp_NewLisp_Matcher_0.Match(i) {
|
||||
} else if lsp_NewLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"NewLisp"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".lisp": func(i []byte) []string {
|
||||
if lisp_CommonLisp_Matcher_0.Match(i) {
|
||||
if lisp_CommonLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"Common Lisp"}
|
||||
} else if lisp_NewLisp_Matcher_0.Match(i) {
|
||||
} else if lisp_NewLisp_Matcher_0.Match(string(i)) {
|
||||
return []string{"NewLisp"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".m": func(i []byte) []string {
|
||||
if m_ObjectiveDashC_Matcher_0.Match(i) {
|
||||
if m_ObjectiveDashC_Matcher_0.Match(string(i)) {
|
||||
return []string{"Objective-C"}
|
||||
} else if m_Mercury_Matcher_0.Match(i) {
|
||||
} else if m_Mercury_Matcher_0.Match(string(i)) {
|
||||
return []string{"Mercury"}
|
||||
} else if m_MUF_Matcher_0.Match(i) {
|
||||
} else if m_MUF_Matcher_0.Match(string(i)) {
|
||||
return []string{"MUF"}
|
||||
} else if m_M_Matcher_0.Match(i) {
|
||||
} else if m_M_Matcher_0.Match(string(i)) {
|
||||
return []string{"M"}
|
||||
} else if m_Mathematica_Matcher_0.Match(i) {
|
||||
} else if m_Mathematica_Matcher_0.Match(string(i)) {
|
||||
return []string{"Mathematica"}
|
||||
} else if m_Matlab_Matcher_0.Match(i) {
|
||||
} else if m_Matlab_Matcher_0.Match(string(i)) {
|
||||
return []string{"Matlab"}
|
||||
} else if m_Limbo_Matcher_0.Match(i) {
|
||||
} else if m_Limbo_Matcher_0.Match(string(i)) {
|
||||
return []string{"Limbo"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".md": func(i []byte) []string {
|
||||
if md_Markdown_Matcher_0.Match(i) || md_Markdown_Matcher_1.Match(i) {
|
||||
if md_Markdown_Matcher_0.Match(string(i)) || md_Markdown_Matcher_1.Match(string(i)) {
|
||||
return []string{"Markdown"}
|
||||
} else if md_GCCMachineDescription_Matcher_0.Match(i) {
|
||||
} else if md_GCCMachineDescription_Matcher_0.Match(string(i)) {
|
||||
return []string{"GCC Machine Description"}
|
||||
}
|
||||
|
||||
return []string{"Markdown"}
|
||||
},
|
||||
".ml": func(i []byte) []string {
|
||||
if ml_OCaml_Matcher_0.Match(i) {
|
||||
if ml_OCaml_Matcher_0.Match(string(i)) {
|
||||
return []string{"OCaml"}
|
||||
} else if ml_StandardML_Matcher_0.Match(i) {
|
||||
} else if ml_StandardML_Matcher_0.Match(string(i)) {
|
||||
return []string{"Standard ML"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".mod": func(i []byte) []string {
|
||||
if mod_XML_Matcher_0.Match(i) {
|
||||
if mod_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
} else if mod_ModulaDash2_Matcher_0.Match(i) || mod_ModulaDash2_Matcher_1.Match(i) {
|
||||
} else if mod_ModulaDash2_Matcher_0.Match(string(i)) || mod_ModulaDash2_Matcher_1.Match(string(i)) {
|
||||
return []string{"Modula-2"}
|
||||
}
|
||||
|
||||
return []string{"Linux Kernel Module", "AMPL"}
|
||||
},
|
||||
".ms": func(i []byte) []string {
|
||||
if ms_Roff_Matcher_0.Match(i) {
|
||||
if ms_Roff_Matcher_0.Match(string(i)) {
|
||||
return []string{"Roff"}
|
||||
}
|
||||
|
||||
return []string{"MAXScript"}
|
||||
},
|
||||
".n": func(i []byte) []string {
|
||||
if n_Roff_Matcher_0.Match(i) {
|
||||
if n_Roff_Matcher_0.Match(string(i)) {
|
||||
return []string{"Roff"}
|
||||
} else if n_Nemerle_Matcher_0.Match(i) {
|
||||
} else if n_Nemerle_Matcher_0.Match(string(i)) {
|
||||
return []string{"Nemerle"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".ncl": func(i []byte) []string {
|
||||
if ncl_Text_Matcher_0.Match(i) {
|
||||
if ncl_Text_Matcher_0.Match(string(i)) {
|
||||
return []string{"Text"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".nl": func(i []byte) []string {
|
||||
if nl_NL_Matcher_0.Match(i) {
|
||||
if nl_NL_Matcher_0.Match(string(i)) {
|
||||
return []string{"NL"}
|
||||
}
|
||||
|
||||
return []string{"NewLisp"}
|
||||
},
|
||||
".php": func(i []byte) []string {
|
||||
if php_Hack_Matcher_0.Match(i) {
|
||||
if php_Hack_Matcher_0.Match(string(i)) {
|
||||
return []string{"Hack"}
|
||||
} else if php_PHP_Matcher_0.Match(i) {
|
||||
} else if php_PHP_Matcher_0.Match(string(i)) {
|
||||
return []string{"PHP"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".pl": func(i []byte) []string {
|
||||
if pl_Prolog_Matcher_0.Match(i) {
|
||||
if pl_Prolog_Matcher_0.Match(string(i)) {
|
||||
return []string{"Prolog"}
|
||||
} else if pl_Perl_Matcher_0.Match(i) {
|
||||
} else if pl_Perl_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl"}
|
||||
} else if pl_Perl6_Matcher_0.Match(i) {
|
||||
return []string{"Perl6"}
|
||||
} else if pl_Perl6_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl 6"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".pm": func(i []byte) []string {
|
||||
if pm_Perl6_Matcher_0.Match(i) {
|
||||
return []string{"Perl6"}
|
||||
} else if pm_Perl_Matcher_0.Match(i) {
|
||||
if pm_Perl6_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl 6"}
|
||||
} else if pm_Perl_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".pod": func(i []byte) []string {
|
||||
if pod_Pod_Matcher_0.Match(i) {
|
||||
if pod_Pod_Matcher_0.Match(string(i)) {
|
||||
return []string{"Pod"}
|
||||
}
|
||||
|
||||
return []string{"Perl"}
|
||||
},
|
||||
".pro": func(i []byte) []string {
|
||||
if pro_Prolog_Matcher_0.Match(i) {
|
||||
if pro_Prolog_Matcher_0.Match(string(i)) {
|
||||
return []string{"Prolog"}
|
||||
} else if pro_INI_Matcher_0.Match(i) {
|
||||
} else if pro_INI_Matcher_0.Match(string(i)) {
|
||||
return []string{"INI"}
|
||||
} else if pro_QMake_Matcher_0.Match(i) && pro_QMake_Matcher_1.Match(i) {
|
||||
} else if pro_QMake_Matcher_0.Match(string(i)) && pro_QMake_Matcher_1.Match(string(i)) {
|
||||
return []string{"QMake"}
|
||||
} else if pro_IDL_Matcher_0.Match(i) {
|
||||
} else if pro_IDL_Matcher_0.Match(string(i)) {
|
||||
return []string{"IDL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".props": func(i []byte) []string {
|
||||
if props_XML_Matcher_0.Match(i) {
|
||||
if props_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
} else if props_INI_Matcher_0.Match(i) {
|
||||
} else if props_INI_Matcher_0.Match(string(i)) {
|
||||
return []string{"INI"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".r": func(i []byte) []string {
|
||||
if r_Rebol_Matcher_0.Match(i) {
|
||||
if r_Rebol_Matcher_0.Match(string(i)) {
|
||||
return []string{"Rebol"}
|
||||
} else if r_R_Matcher_0.Match(i) {
|
||||
} else if r_R_Matcher_0.Match(string(i)) {
|
||||
return []string{"R"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".rno": func(i []byte) []string {
|
||||
if rno_RUNOFF_Matcher_0.Match(i) {
|
||||
if rno_RUNOFF_Matcher_0.Match(string(i)) {
|
||||
return []string{"RUNOFF"}
|
||||
} else if rno_Roff_Matcher_0.Match(i) {
|
||||
} else if rno_Roff_Matcher_0.Match(string(i)) {
|
||||
return []string{"Roff"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".rpy": func(i []byte) []string {
|
||||
if rpy_Python_Matcher_0.Match(i) {
|
||||
if rpy_Python_Matcher_0.Match(string(i)) {
|
||||
return []string{"Python"}
|
||||
}
|
||||
|
||||
return []string{"Ren'Py"}
|
||||
},
|
||||
".rs": func(i []byte) []string {
|
||||
if rs_Rust_Matcher_0.Match(i) {
|
||||
if rs_Rust_Matcher_0.Match(string(i)) {
|
||||
return []string{"Rust"}
|
||||
} else if rs_RenderScript_Matcher_0.Match(i) {
|
||||
} else if rs_RenderScript_Matcher_0.Match(string(i)) {
|
||||
return []string{"RenderScript"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".sc": func(i []byte) []string {
|
||||
if sc_SuperCollider_Matcher_0.Match(i) || sc_SuperCollider_Matcher_1.Match(i) || sc_SuperCollider_Matcher_2.Match(i) {
|
||||
if sc_SuperCollider_Matcher_0.Match(string(i)) || sc_SuperCollider_Matcher_1.Match(string(i)) || sc_SuperCollider_Matcher_2.Match(string(i)) {
|
||||
return []string{"SuperCollider"}
|
||||
} else if sc_Scala_Matcher_0.Match(i) || sc_Scala_Matcher_1.Match(i) || sc_Scala_Matcher_2.Match(i) {
|
||||
} else if sc_Scala_Matcher_0.Match(string(i)) || sc_Scala_Matcher_1.Match(string(i)) || sc_Scala_Matcher_2.Match(string(i)) {
|
||||
return []string{"Scala"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".sql": func(i []byte) []string {
|
||||
if sql_PLpgSQL_Matcher_0.Match(i) || sql_PLpgSQL_Matcher_1.Match(i) || sql_PLpgSQL_Matcher_2.Match(i) {
|
||||
if sql_PLpgSQL_Matcher_0.Match(string(i)) || sql_PLpgSQL_Matcher_1.Match(string(i)) || sql_PLpgSQL_Matcher_2.Match(string(i)) {
|
||||
return []string{"PLpgSQL"}
|
||||
} else if sql_SQLPL_Matcher_0.Match(i) || sql_SQLPL_Matcher_1.Match(i) {
|
||||
} else if sql_SQLPL_Matcher_0.Match(string(i)) || sql_SQLPL_Matcher_1.Match(string(i)) {
|
||||
return []string{"SQLPL"}
|
||||
} else if sql_PLSQL_Matcher_0.Match(i) || sql_PLSQL_Matcher_1.Match(i) {
|
||||
} else if sql_PLSQL_Matcher_0.Match(string(i)) || sql_PLSQL_Matcher_1.Match(string(i)) {
|
||||
return []string{"PLSQL"}
|
||||
} else if sql_SQL_Matcher_0.Match(i) {
|
||||
} else if sql_SQL_Matcher_0.Match(string(i)) {
|
||||
return []string{"SQL"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".srt": func(i []byte) []string {
|
||||
if srt_SubRipText_Matcher_0.Match(i) {
|
||||
if srt_SubRipText_Matcher_0.Match(string(i)) {
|
||||
return []string{"SubRip Text"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".t": func(i []byte) []string {
|
||||
if t_Turing_Matcher_0.Match(i) {
|
||||
if t_Turing_Matcher_0.Match(string(i)) {
|
||||
return []string{"Turing"}
|
||||
} else if t_Perl6_Matcher_0.Match(i) {
|
||||
return []string{"Perl6"}
|
||||
} else if t_Perl_Matcher_0.Match(i) {
|
||||
} else if t_Perl6_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl 6"}
|
||||
} else if t_Perl_Matcher_0.Match(string(i)) {
|
||||
return []string{"Perl"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".toc": func(i []byte) []string {
|
||||
if toc_WorldofWarcraftAddonData_Matcher_0.Match(i) {
|
||||
if toc_WorldofWarcraftAddonData_Matcher_0.Match(string(i)) {
|
||||
return []string{"World of Warcraft Addon Data"}
|
||||
} else if toc_TeX_Matcher_0.Match(i) {
|
||||
} else if toc_TeX_Matcher_0.Match(string(i)) {
|
||||
return []string{"TeX"}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
".ts": func(i []byte) []string {
|
||||
if ts_XML_Matcher_0.Match(i) {
|
||||
if ts_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
}
|
||||
|
||||
return []string{"TypeScript"}
|
||||
},
|
||||
".tst": func(i []byte) []string {
|
||||
if tst_GAP_Matcher_0.Match(i) {
|
||||
if tst_GAP_Matcher_0.Match(string(i)) {
|
||||
return []string{"GAP"}
|
||||
}
|
||||
|
||||
return []string{"Scilab"}
|
||||
},
|
||||
".tsx": func(i []byte) []string {
|
||||
if tsx_TypeScript_Matcher_0.Match(i) {
|
||||
if tsx_TypeScript_Matcher_0.Match(string(i)) {
|
||||
return []string{"TypeScript"}
|
||||
} else if tsx_XML_Matcher_0.Match(i) {
|
||||
} else if tsx_XML_Matcher_0.Match(string(i)) {
|
||||
return []string{"XML"}
|
||||
}
|
||||
|
||||
@ -447,122 +445,122 @@ var ContentMatchers = map[string]languageMatcher{
|
||||
}
|
||||
|
||||
var (
|
||||
asc_PublicKey_Matcher_0 = regexp.MustCompile(`(?m)^(----[- ]BEGIN|ssh-(rsa|dss)) `)
|
||||
asc_AsciiDoc_Matcher_0 = regexp.MustCompile(`(?m)^[=-]+(\s|\n)|{{[A-Za-z]`)
|
||||
asc_AGSScript_Matcher_0 = regexp.MustCompile(`(?m)^(\/\/.+|((import|export)\s+)?(function|int|float|char)\s+((room|repeatedly|on|game)_)?([A-Za-z]+[A-Za-z_0-9]+)\s*[;\(])`)
|
||||
bb_BlitzBasic_Matcher_0 = regexp.MustCompile(`(?m)^\s*; `)
|
||||
bb_BlitzBasic_Matcher_1 = regexp.MustCompile(`(?m)End Function`)
|
||||
bb_BitBake_Matcher_0 = regexp.MustCompile(`(?m)^\s*(# |include|require)\b`)
|
||||
builds_XML_Matcher_0 = regexp.MustCompile(`(?mi)^(\s*)(<Project|<Import|<Property|<?xml|xmlns)`)
|
||||
ch_xBase_Matcher_0 = regexp.MustCompile(`(?mi)^\s*#\s*(if|ifdef|ifndef|define|command|xcommand|translate|xtranslate|include|pragma|undef)\b`)
|
||||
cl_CommonLisp_Matcher_0 = regexp.MustCompile(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
cl_Cool_Matcher_0 = regexp.MustCompile(`(?m)^class`)
|
||||
cl_OpenCL_Matcher_0 = regexp.MustCompile(`(?m)\/\* |\/\/ |^\}`)
|
||||
cls_TeX_Matcher_0 = regexp.MustCompile(`(?m)\\\w+{`)
|
||||
cs_Smalltalk_Matcher_0 = regexp.MustCompile(`(?m)![\w\s]+methodsFor: `)
|
||||
cs_CSharp_Matcher_0 = regexp.MustCompile(`(?m)^\s*namespace\s*[\w\.]+\s*{`)
|
||||
cs_CSharp_Matcher_1 = regexp.MustCompile(`(?m)^\s*\/\/`)
|
||||
d_D_Matcher_0 = regexp.MustCompile(`(?m)^module\s+[\w.]*\s*;|import\s+[\w\s,.:]*;|\w+\s+\w+\s*\(.*\)(?:\(.*\))?\s*{[^}]*}|unittest\s*(?:\(.*\))?\s*{[^}]*}`)
|
||||
d_DTrace_Matcher_0 = regexp.MustCompile(`(?m)^(\w+:\w*:\w*:\w*|BEGIN|END|provider\s+|(tick|profile)-\w+\s+{[^}]*}|#pragma\s+D\s+(option|attributes|depends_on)\s|#pragma\s+ident\s)`)
|
||||
d_Makefile_Matcher_0 = regexp.MustCompile(`(?m)([\/\\].*:\s+.*\s\\$|: \\$|^ : |^[\w\s\/\\.]+\w+\.\w+\s*:\s+[\w\s\/\\.]+\w+\.\w+)`)
|
||||
ecl_ECLiPSe_Matcher_0 = regexp.MustCompile(`(?m)^[^#]+:-`)
|
||||
ecl_ECL_Matcher_0 = regexp.MustCompile(`(?m):=`)
|
||||
es_Erlang_Matcher_0 = regexp.MustCompile(`(?m)^\s*(?:%%|main\s*\(.*?\)\s*->)`)
|
||||
f_Forth_Matcher_0 = regexp.MustCompile(`(?m)^: `)
|
||||
f_FilebenchWML_Matcher_0 = regexp.MustCompile(`(?m)flowop`)
|
||||
f_Fortran_Matcher_0 = regexp.MustCompile(`(?mi)^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)`)
|
||||
for_Forth_Matcher_0 = regexp.MustCompile(`(?m)^: `)
|
||||
for_Fortran_Matcher_0 = regexp.MustCompile(`(?mi)^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)`)
|
||||
fr_Forth_Matcher_0 = regexp.MustCompile(`(?m)^(: |also |new-device|previous )`)
|
||||
fr_Frege_Matcher_0 = regexp.MustCompile(`(?m)^\s*(import|module|package|data|type) `)
|
||||
fs_Forth_Matcher_0 = regexp.MustCompile(`(?m)^(: |new-device)`)
|
||||
fs_FSharp_Matcher_0 = regexp.MustCompile(`(?m)^\s*(#light|import|let|module|namespace|open|type)`)
|
||||
fs_GLSL_Matcher_0 = regexp.MustCompile(`(?m)^\s*(#version|precision|uniform|varying|vec[234])`)
|
||||
fs_Filterscript_Matcher_0 = regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`)
|
||||
gs_Gosu_Matcher_0 = regexp.MustCompile(`(?m)^uses java\.`)
|
||||
h_ObjectiveDashC_Matcher_0 = regexp.MustCompile(`(?m)^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])`)
|
||||
h_CPlusPlus_Matcher_0 = regexp.MustCompile(`(?m)^\s*#\s*include <(cstdint|string|vector|map|list|array|bitset|queue|stack|forward_list|unordered_map|unordered_set|(i|o|io)stream)>`)
|
||||
h_CPlusPlus_Matcher_1 = regexp.MustCompile(`(?m)^\s*template\s*<`)
|
||||
h_CPlusPlus_Matcher_2 = regexp.MustCompile(`(?m)^[ \t]*try`)
|
||||
h_CPlusPlus_Matcher_3 = regexp.MustCompile(`(?m)^[ \t]*catch\s*\(`)
|
||||
h_CPlusPlus_Matcher_4 = regexp.MustCompile(`(?m)^[ \t]*(class|(using[ \t]+)?namespace)\s+\w+`)
|
||||
h_CPlusPlus_Matcher_5 = regexp.MustCompile(`(?m)^[ \t]*(private|public|protected):$`)
|
||||
h_CPlusPlus_Matcher_6 = regexp.MustCompile(`(?m)std::\w+`)
|
||||
inc_PHP_Matcher_0 = regexp.MustCompile(`(?m)^<\?(?:php)?`)
|
||||
inc_POVDashRaySDL_Matcher_0 = regexp.MustCompile(`(?m)^\s*#(declare|local|macro|while)\s`)
|
||||
l_CommonLisp_Matcher_0 = regexp.MustCompile(`(?m)\(def(un|macro)\s`)
|
||||
l_Lex_Matcher_0 = regexp.MustCompile(`(?m)^(%[%{}]xs|<.*>)`)
|
||||
l_Roff_Matcher_0 = regexp.MustCompile(`(?mi)^\.[a-z][a-z](\s|$)`)
|
||||
l_PicoLisp_Matcher_0 = regexp.MustCompile(`(?m)^\((de|class|rel|code|data|must)\s`)
|
||||
ls_LoomScript_Matcher_0 = regexp.MustCompile(`(?m)^\s*package\s*[\w\.\/\*\s]*\s*{`)
|
||||
lsp_CommonLisp_Matcher_0 = regexp.MustCompile(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
lsp_NewLisp_Matcher_0 = regexp.MustCompile(`(?m)^\s*\(define `)
|
||||
lisp_CommonLisp_Matcher_0 = regexp.MustCompile(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
lisp_NewLisp_Matcher_0 = regexp.MustCompile(`(?m)^\s*\(define `)
|
||||
m_ObjectiveDashC_Matcher_0 = regexp.MustCompile(`(?m)^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])`)
|
||||
m_Mercury_Matcher_0 = regexp.MustCompile(`(?m):- module`)
|
||||
m_MUF_Matcher_0 = regexp.MustCompile(`(?m)^: `)
|
||||
m_M_Matcher_0 = regexp.MustCompile(`(?m)^\s*;`)
|
||||
m_Mathematica_Matcher_0 = regexp.MustCompile(`(?m)\*\)$`)
|
||||
m_Matlab_Matcher_0 = regexp.MustCompile(`(?m)^\s*%`)
|
||||
m_Limbo_Matcher_0 = regexp.MustCompile(`(?m)^\w+\s*:\s*module\s*{`)
|
||||
md_Markdown_Matcher_0 = regexp.MustCompile(`(?mi)(^[-a-z0-9=#!\*\[|>])|<\/`)
|
||||
md_Markdown_Matcher_1 = regexp.MustCompile(`^$`)
|
||||
md_GCCMachineDescription_Matcher_0 = regexp.MustCompile(`(?m)^(;;|\(define_)`)
|
||||
ml_OCaml_Matcher_0 = regexp.MustCompile(`(?m)(^\s*module)|let rec |match\s+(\S+\s)+with`)
|
||||
ml_StandardML_Matcher_0 = regexp.MustCompile(`(?m)=> |case\s+(\S+\s)+of`)
|
||||
mod_XML_Matcher_0 = regexp.MustCompile(`(?m)<!ENTITY `)
|
||||
mod_ModulaDash2_Matcher_0 = regexp.MustCompile(`(?mi)^\s*MODULE [\w\.]+;`)
|
||||
mod_ModulaDash2_Matcher_1 = regexp.MustCompile(`(?mi)^\s*END [\w\.]+;`)
|
||||
ms_Roff_Matcher_0 = regexp.MustCompile(`(?mi)^[.'][a-z][a-z](\s|$)`)
|
||||
n_Roff_Matcher_0 = regexp.MustCompile(`(?m)^[.']`)
|
||||
n_Nemerle_Matcher_0 = regexp.MustCompile(`(?m)^(module|namespace|using)\s`)
|
||||
ncl_Text_Matcher_0 = regexp.MustCompile(`(?m)THE_TITLE`)
|
||||
nl_NL_Matcher_0 = regexp.MustCompile(`(?m)^(b|g)[0-9]+ `)
|
||||
php_Hack_Matcher_0 = regexp.MustCompile(`(?m)<\?hh`)
|
||||
php_PHP_Matcher_0 = regexp.MustCompile(`(?m)<?[^h]`)
|
||||
pl_Prolog_Matcher_0 = regexp.MustCompile(`(?m)^[^#]*:-`)
|
||||
pl_Perl_Matcher_0 = regexp.MustCompile(`(?m)use strict|use\s+v?5\.`)
|
||||
pl_Perl6_Matcher_0 = regexp.MustCompile(`(?m)^(use v6|(my )?class|module)`)
|
||||
pm_Perl6_Matcher_0 = regexp.MustCompile(`(?m)^\s*(?:use\s+v6\s*;|(?:\bmy\s+)?class|module)\b`)
|
||||
pm_Perl_Matcher_0 = regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`)
|
||||
pod_Pod_Matcher_0 = regexp.MustCompile(`(?m)^=\w+\b`)
|
||||
pro_Prolog_Matcher_0 = regexp.MustCompile(`(?m)^[^#]+:-`)
|
||||
pro_INI_Matcher_0 = regexp.MustCompile(`(?m)last_client=`)
|
||||
pro_QMake_Matcher_0 = regexp.MustCompile(`(?m)HEADERS`)
|
||||
pro_QMake_Matcher_1 = regexp.MustCompile(`(?m)SOURCES`)
|
||||
pro_IDL_Matcher_0 = regexp.MustCompile(`(?m)^\s*function[ \w,]+$`)
|
||||
props_XML_Matcher_0 = regexp.MustCompile(`(?mi)^(\s*)(<Project|<Import|<Property|<?xml|xmlns)`)
|
||||
props_INI_Matcher_0 = regexp.MustCompile(`(?mi)\w+\s*=\s*`)
|
||||
r_Rebol_Matcher_0 = regexp.MustCompile(`(?mi)\bRebol\b`)
|
||||
r_R_Matcher_0 = regexp.MustCompile(`(?m)<-|^\s*#`)
|
||||
rno_RUNOFF_Matcher_0 = regexp.MustCompile(`(?mi)^\.!|^\.end lit(?:eral)?\b`)
|
||||
rno_Roff_Matcher_0 = regexp.MustCompile(`(?m)^\.\\" `)
|
||||
rpy_Python_Matcher_0 = regexp.MustCompile(`(?ms)(^(import|from|class|def)\s)`)
|
||||
rs_Rust_Matcher_0 = regexp.MustCompile(`(?m)^(use |fn |mod |pub |macro_rules|impl|#!?\[)`)
|
||||
rs_RenderScript_Matcher_0 = regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`)
|
||||
sc_SuperCollider_Matcher_0 = regexp.MustCompile(`(?m)\^(this|super)\.`)
|
||||
sc_SuperCollider_Matcher_1 = regexp.MustCompile(`(?m)^\s*(\+|\*)\s*\w+\s*{`)
|
||||
sc_SuperCollider_Matcher_2 = regexp.MustCompile(`(?m)^\s*~\w+\s*=\.`)
|
||||
sc_Scala_Matcher_0 = regexp.MustCompile(`(?m)^\s*import (scala|java)\.`)
|
||||
sc_Scala_Matcher_1 = regexp.MustCompile(`(?m)^\s*val\s+\w+\s*=`)
|
||||
sc_Scala_Matcher_2 = regexp.MustCompile(`(?m)^\s*class\b`)
|
||||
sql_PLpgSQL_Matcher_0 = regexp.MustCompile(`(?mi)^\\i\b|AS \$\$|LANGUAGE '?plpgsql'?`)
|
||||
sql_PLpgSQL_Matcher_1 = regexp.MustCompile(`(?mi)SECURITY (DEFINER|INVOKER)`)
|
||||
sql_PLpgSQL_Matcher_2 = regexp.MustCompile(`(?mi)BEGIN( WORK| TRANSACTION)?;`)
|
||||
sql_SQLPL_Matcher_0 = regexp.MustCompile(`(?mi)(alter module)|(language sql)|(begin( NOT)+ atomic)`)
|
||||
sql_SQLPL_Matcher_1 = regexp.MustCompile(`(?mi)signal SQLSTATE '[0-9]+'`)
|
||||
sql_PLSQL_Matcher_0 = regexp.MustCompile(`(?mi)\$\$PLSQL_|XMLTYPE|sysdate|systimestamp|\.nextval|connect by|AUTHID (DEFINER|CURRENT_USER)`)
|
||||
sql_PLSQL_Matcher_1 = regexp.MustCompile(`(?mi)constructor\W+function`)
|
||||
sql_SQL_Matcher_0 = regexp.MustCompile(`(?mi)! /begin|boolean|package|exception`)
|
||||
srt_SubRipText_Matcher_0 = regexp.MustCompile(`(?m)^(\d{2}:\d{2}:\d{2},\d{3})\s*(-->)\s*(\d{2}:\d{2}:\d{2},\d{3})$`)
|
||||
t_Turing_Matcher_0 = regexp.MustCompile(`(?m)^\s*%[ \t]+|^\s*var\s+\w+\s*:=\s*\w+`)
|
||||
t_Perl6_Matcher_0 = regexp.MustCompile(`(?m)^\s*(?:use\s+v6\s*;|\bmodule\b|\b(?:my\s+)?class\b)`)
|
||||
t_Perl_Matcher_0 = regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`)
|
||||
toc_WorldofWarcraftAddonData_Matcher_0 = regexp.MustCompile(`(?m)^## |@no-lib-strip@`)
|
||||
toc_TeX_Matcher_0 = regexp.MustCompile(`(?m)^\\(contentsline|defcounter|beamer|boolfalse)`)
|
||||
ts_XML_Matcher_0 = regexp.MustCompile(`(?m)<TS`)
|
||||
tst_GAP_Matcher_0 = regexp.MustCompile(`(?m)gap> `)
|
||||
tsx_TypeScript_Matcher_0 = regexp.MustCompile(`(?m)^\s*(import.+(from\s+|require\()['"]react|\/\/\/\s*<reference\s)`)
|
||||
tsx_XML_Matcher_0 = regexp.MustCompile(`(?mi)^\s*<\?xml\s+version`)
|
||||
asc_PublicKey_Matcher_0 = substring.Regexp(`(?m)^(----[- ]BEGIN|ssh-(rsa|dss)) `)
|
||||
asc_AsciiDoc_Matcher_0 = substring.Regexp(`(?m)^[=-]+(\s|\n)|{{[A-Za-z]`)
|
||||
asc_AGSScript_Matcher_0 = substring.Regexp(`(?m)^(\/\/.+|((import|export)\s+)?(function|int|float|char)\s+((room|repeatedly|on|game)_)?([A-Za-z]+[A-Za-z_0-9]+)\s*[;\(])`)
|
||||
bb_BlitzBasic_Matcher_0 = substring.Regexp(`(?m)^\s*; `)
|
||||
bb_BlitzBasic_Matcher_1 = substring.Regexp(`(?m)End Function`)
|
||||
bb_BitBake_Matcher_0 = substring.Regexp(`(?m)^\s*(# |include|require)\b`)
|
||||
builds_XML_Matcher_0 = substring.Regexp(`(?mi)^(\s*)(<Project|<Import|<Property|<?xml|xmlns)`)
|
||||
ch_xBase_Matcher_0 = substring.Regexp(`(?mi)^\s*#\s*(if|ifdef|ifndef|define|command|xcommand|translate|xtranslate|include|pragma|undef)\b`)
|
||||
cl_CommonLisp_Matcher_0 = substring.Regexp(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
cl_Cool_Matcher_0 = substring.Regexp(`(?m)^class`)
|
||||
cl_OpenCL_Matcher_0 = substring.Regexp(`(?m)\/\* |\/\/ |^\}`)
|
||||
cls_TeX_Matcher_0 = substring.Regexp(`(?m)\\\w+{`)
|
||||
cs_Smalltalk_Matcher_0 = substring.Regexp(`(?m)![\w\s]+methodsFor: `)
|
||||
cs_CSharp_Matcher_0 = substring.Regexp(`(?m)^\s*namespace\s*[\w\.]+\s*{`)
|
||||
cs_CSharp_Matcher_1 = substring.Regexp(`(?m)^\s*\/\/`)
|
||||
d_D_Matcher_0 = substring.Regexp(`(?m)^module\s+[\w.]*\s*;|import\s+[\w\s,.:]*;|\w+\s+\w+\s*\(.*\)(?:\(.*\))?\s*{[^}]*}|unittest\s*(?:\(.*\))?\s*{[^}]*}`)
|
||||
d_DTrace_Matcher_0 = substring.Regexp(`(?m)^(\w+:\w*:\w*:\w*|BEGIN|END|provider\s+|(tick|profile)-\w+\s+{[^}]*}|#pragma\s+D\s+(option|attributes|depends_on)\s|#pragma\s+ident\s)`)
|
||||
d_Makefile_Matcher_0 = substring.Regexp(`(?m)([\/\\].*:\s+.*\s\\$|: \\$|^ : |^[\w\s\/\\.]+\w+\.\w+\s*:\s+[\w\s\/\\.]+\w+\.\w+)`)
|
||||
ecl_ECLiPSe_Matcher_0 = substring.Regexp(`(?m)^[^#]+:-`)
|
||||
ecl_ECL_Matcher_0 = substring.Regexp(`(?m):=`)
|
||||
es_Erlang_Matcher_0 = substring.Regexp(`(?m)^\s*(?:%%|main\s*\(.*?\)\s*->)`)
|
||||
f_Forth_Matcher_0 = substring.Regexp(`(?m)^: `)
|
||||
f_FilebenchWML_Matcher_0 = substring.Regexp(`(?m)flowop`)
|
||||
f_Fortran_Matcher_0 = substring.Regexp(`(?mi)^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)`)
|
||||
for_Forth_Matcher_0 = substring.Regexp(`(?m)^: `)
|
||||
for_Fortran_Matcher_0 = substring.Regexp(`(?mi)^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)`)
|
||||
fr_Forth_Matcher_0 = substring.Regexp(`(?m)^(: |also |new-device|previous )`)
|
||||
fr_Frege_Matcher_0 = substring.Regexp(`(?m)^\s*(import|module|package|data|type) `)
|
||||
fs_Forth_Matcher_0 = substring.Regexp(`(?m)^(: |new-device)`)
|
||||
fs_FSharp_Matcher_0 = substring.Regexp(`(?m)^\s*(#light|import|let|module|namespace|open|type)`)
|
||||
fs_GLSL_Matcher_0 = substring.Regexp(`(?m)^\s*(#version|precision|uniform|varying|vec[234])`)
|
||||
fs_Filterscript_Matcher_0 = substring.Regexp(`(?m)#include|#pragma\s+(rs|version)|__attribute__`)
|
||||
gs_Gosu_Matcher_0 = substring.Regexp(`(?m)^uses java\.`)
|
||||
h_ObjectiveDashC_Matcher_0 = substring.Regexp(`(?m)^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])`)
|
||||
h_CPlusPlus_Matcher_0 = substring.Regexp(`(?m)^\s*#\s*include <(cstdint|string|vector|map|list|array|bitset|queue|stack|forward_list|unordered_map|unordered_set|(i|o|io)stream)>`)
|
||||
h_CPlusPlus_Matcher_1 = substring.Regexp(`(?m)^\s*template\s*<`)
|
||||
h_CPlusPlus_Matcher_2 = substring.Regexp(`(?m)^[ \t]*try`)
|
||||
h_CPlusPlus_Matcher_3 = substring.Regexp(`(?m)^[ \t]*catch\s*\(`)
|
||||
h_CPlusPlus_Matcher_4 = substring.Regexp(`(?m)^[ \t]*(class|(using[ \t]+)?namespace)\s+\w+`)
|
||||
h_CPlusPlus_Matcher_5 = substring.Regexp(`(?m)^[ \t]*(private|public|protected):$`)
|
||||
h_CPlusPlus_Matcher_6 = substring.Regexp(`(?m)std::\w+`)
|
||||
inc_PHP_Matcher_0 = substring.Regexp(`(?m)^<\?(?:php)?`)
|
||||
inc_POVDashRaySDL_Matcher_0 = substring.Regexp(`(?m)^\s*#(declare|local|macro|while)\s`)
|
||||
l_CommonLisp_Matcher_0 = substring.Regexp(`(?m)\(def(un|macro)\s`)
|
||||
l_Lex_Matcher_0 = substring.Regexp(`(?m)^(%[%{}]xs|<.*>)`)
|
||||
l_Roff_Matcher_0 = substring.Regexp(`(?mi)^\.[a-z][a-z](\s|$)`)
|
||||
l_PicoLisp_Matcher_0 = substring.Regexp(`(?m)^\((de|class|rel|code|data|must)\s`)
|
||||
ls_LoomScript_Matcher_0 = substring.Regexp(`(?m)^\s*package\s*[\w\.\/\*\s]*\s*{`)
|
||||
lsp_CommonLisp_Matcher_0 = substring.Regexp(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
lsp_NewLisp_Matcher_0 = substring.Regexp(`(?m)^\s*\(define `)
|
||||
lisp_CommonLisp_Matcher_0 = substring.Regexp(`(?mi)^\s*\((defun|in-package|defpackage) `)
|
||||
lisp_NewLisp_Matcher_0 = substring.Regexp(`(?m)^\s*\(define `)
|
||||
m_ObjectiveDashC_Matcher_0 = substring.Regexp(`(?m)^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])`)
|
||||
m_Mercury_Matcher_0 = substring.Regexp(`(?m):- module`)
|
||||
m_MUF_Matcher_0 = substring.Regexp(`(?m)^: `)
|
||||
m_M_Matcher_0 = substring.Regexp(`(?m)^\s*;`)
|
||||
m_Mathematica_Matcher_0 = substring.Regexp(`(?m)\*\)$`)
|
||||
m_Matlab_Matcher_0 = substring.Regexp(`(?m)^\s*%`)
|
||||
m_Limbo_Matcher_0 = substring.Regexp(`(?m)^\w+\s*:\s*module\s*{`)
|
||||
md_Markdown_Matcher_0 = substring.Regexp(`(?mi)(^[-a-z0-9=#!\*\[|>])|<\/`)
|
||||
md_Markdown_Matcher_1 = substring.Regexp(`^$`)
|
||||
md_GCCMachineDescription_Matcher_0 = substring.Regexp(`(?m)^(;;|\(define_)`)
|
||||
ml_OCaml_Matcher_0 = substring.Regexp(`(?m)(^\s*module)|let rec |match\s+(\S+\s)+with`)
|
||||
ml_StandardML_Matcher_0 = substring.Regexp(`(?m)=> |case\s+(\S+\s)+of`)
|
||||
mod_XML_Matcher_0 = substring.Regexp(`(?m)<!ENTITY `)
|
||||
mod_ModulaDash2_Matcher_0 = substring.Regexp(`(?mi)^\s*MODULE [\w\.]+;`)
|
||||
mod_ModulaDash2_Matcher_1 = substring.Regexp(`(?mi)^\s*END [\w\.]+;`)
|
||||
ms_Roff_Matcher_0 = substring.Regexp(`(?mi)^[.'][a-z][a-z](\s|$)`)
|
||||
n_Roff_Matcher_0 = substring.Regexp(`(?m)^[.']`)
|
||||
n_Nemerle_Matcher_0 = substring.Regexp(`(?m)^(module|namespace|using)\s`)
|
||||
ncl_Text_Matcher_0 = substring.Regexp(`(?m)THE_TITLE`)
|
||||
nl_NL_Matcher_0 = substring.Regexp(`(?m)^(b|g)[0-9]+ `)
|
||||
php_Hack_Matcher_0 = substring.Regexp(`(?m)<\?hh`)
|
||||
php_PHP_Matcher_0 = substring.Regexp(`(?m)<?[^h]`)
|
||||
pl_Prolog_Matcher_0 = substring.Regexp(`(?m)^[^#]*:-`)
|
||||
pl_Perl_Matcher_0 = substring.Regexp(`(?m)use strict|use\s+v?5\.`)
|
||||
pl_Perl6_Matcher_0 = substring.Regexp(`(?m)^(use v6|(my )?class|module)`)
|
||||
pm_Perl6_Matcher_0 = substring.Regexp(`(?m)^\s*(?:use\s+v6\s*;|(?:\bmy\s+)?class|module)\b`)
|
||||
pm_Perl_Matcher_0 = substring.Regexp(`(?m)\buse\s+(?:strict\b|v?5\.)`)
|
||||
pod_Pod_Matcher_0 = substring.Regexp(`(?m)^=\w+\b`)
|
||||
pro_Prolog_Matcher_0 = substring.Regexp(`(?m)^[^#]+:-`)
|
||||
pro_INI_Matcher_0 = substring.Regexp(`(?m)last_client=`)
|
||||
pro_QMake_Matcher_0 = substring.Regexp(`(?m)HEADERS`)
|
||||
pro_QMake_Matcher_1 = substring.Regexp(`(?m)SOURCES`)
|
||||
pro_IDL_Matcher_0 = substring.Regexp(`(?m)^\s*function[ \w,]+$`)
|
||||
props_XML_Matcher_0 = substring.Regexp(`(?mi)^(\s*)(<Project|<Import|<Property|<?xml|xmlns)`)
|
||||
props_INI_Matcher_0 = substring.Regexp(`(?mi)\w+\s*=\s*`)
|
||||
r_Rebol_Matcher_0 = substring.Regexp(`(?mi)\bRebol\b`)
|
||||
r_R_Matcher_0 = substring.Regexp(`(?m)<-|^\s*#`)
|
||||
rno_RUNOFF_Matcher_0 = substring.Regexp(`(?mi)^\.!|^\.end lit(?:eral)?\b`)
|
||||
rno_Roff_Matcher_0 = substring.Regexp(`(?m)^\.\\" `)
|
||||
rpy_Python_Matcher_0 = substring.Regexp(`(?ms)(^(import|from|class|def)\s)`)
|
||||
rs_Rust_Matcher_0 = substring.Regexp(`(?m)^(use |fn |mod |pub |macro_rules|impl|#!?\[)`)
|
||||
rs_RenderScript_Matcher_0 = substring.Regexp(`(?m)#include|#pragma\s+(rs|version)|__attribute__`)
|
||||
sc_SuperCollider_Matcher_0 = substring.Regexp(`(?m)\^(this|super)\.`)
|
||||
sc_SuperCollider_Matcher_1 = substring.Regexp(`(?m)^\s*(\+|\*)\s*\w+\s*{`)
|
||||
sc_SuperCollider_Matcher_2 = substring.Regexp(`(?m)^\s*~\w+\s*=\.`)
|
||||
sc_Scala_Matcher_0 = substring.Regexp(`(?m)^\s*import (scala|java)\.`)
|
||||
sc_Scala_Matcher_1 = substring.Regexp(`(?m)^\s*val\s+\w+\s*=`)
|
||||
sc_Scala_Matcher_2 = substring.Regexp(`(?m)^\s*class\b`)
|
||||
sql_PLpgSQL_Matcher_0 = substring.Regexp(`(?mi)^\\i\b|AS \$\$|LANGUAGE '?plpgsql'?`)
|
||||
sql_PLpgSQL_Matcher_1 = substring.Regexp(`(?mi)SECURITY (DEFINER|INVOKER)`)
|
||||
sql_PLpgSQL_Matcher_2 = substring.Regexp(`(?mi)BEGIN( WORK| TRANSACTION)?;`)
|
||||
sql_SQLPL_Matcher_0 = substring.Regexp(`(?mi)(alter module)|(language sql)|(begin( NOT)+ atomic)`)
|
||||
sql_SQLPL_Matcher_1 = substring.Regexp(`(?mi)signal SQLSTATE '[0-9]+'`)
|
||||
sql_PLSQL_Matcher_0 = substring.Regexp(`(?mi)\$\$PLSQL_|XMLTYPE|sysdate|systimestamp|\.nextval|connect by|AUTHID (DEFINER|CURRENT_USER)`)
|
||||
sql_PLSQL_Matcher_1 = substring.Regexp(`(?mi)constructor\W+function`)
|
||||
sql_SQL_Matcher_0 = substring.Regexp(`(?mi)! /begin|boolean|package|exception`)
|
||||
srt_SubRipText_Matcher_0 = substring.Regexp(`(?m)^(\d{2}:\d{2}:\d{2},\d{3})\s*(-->)\s*(\d{2}:\d{2}:\d{2},\d{3})$`)
|
||||
t_Turing_Matcher_0 = substring.Regexp(`(?m)^\s*%[ \t]+|^\s*var\s+\w+\s*:=\s*\w+`)
|
||||
t_Perl6_Matcher_0 = substring.Regexp(`(?m)^\s*(?:use\s+v6\s*;|\bmodule\b|\b(?:my\s+)?class\b)`)
|
||||
t_Perl_Matcher_0 = substring.Regexp(`(?m)\buse\s+(?:strict\b|v?5\.)`)
|
||||
toc_WorldofWarcraftAddonData_Matcher_0 = substring.Regexp(`(?m)^## |@no-lib-strip@`)
|
||||
toc_TeX_Matcher_0 = substring.Regexp(`(?m)^\\(contentsline|defcounter|beamer|boolfalse)`)
|
||||
ts_XML_Matcher_0 = substring.Regexp(`(?m)<TS`)
|
||||
tst_GAP_Matcher_0 = substring.Regexp(`(?m)gap> `)
|
||||
tsx_TypeScript_Matcher_0 = substring.Regexp(`(?m)^\s*(import.+(from\s+|require\()['"]react|\/\/\/\s*<reference\s)`)
|
||||
tsx_XML_Matcher_0 = substring.Regexp(`(?mi)^\s*<\?xml\s+version`)
|
||||
)
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var LanguagesByExtension = map[string][]string{
|
||||
".1": {"Roff"},
|
||||
@ -19,8 +19,8 @@ var LanguagesByExtension = map[string][]string{
|
||||
".4th": {"Forth"},
|
||||
".5": {"Roff"},
|
||||
".6": {"Roff"},
|
||||
".6pl": {"Perl6"},
|
||||
".6pm": {"Perl6"},
|
||||
".6pl": {"Perl 6"},
|
||||
".6pm": {"Perl 6"},
|
||||
".7": {"Roff"},
|
||||
".8": {"Roff"},
|
||||
".8xk": {"TI Program"},
|
||||
@ -227,6 +227,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".dylan": {"Dylan"},
|
||||
".e": {"E", "Eiffel"},
|
||||
".eam.fs": {"Formatted"},
|
||||
".eb": {"Easybuild"},
|
||||
".ebnf": {"EBNF"},
|
||||
".ebuild": {"Gentoo Ebuild"},
|
||||
".ec": {"eC"},
|
||||
@ -557,7 +558,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".nlogo": {"NetLogo"},
|
||||
".no": {"Text"},
|
||||
".nproj": {"XML"},
|
||||
".nqp": {"Perl6"},
|
||||
".nqp": {"Perl 6"},
|
||||
".nr": {"Roff"},
|
||||
".nse": {"Lua"},
|
||||
".nsh": {"NSIS"},
|
||||
@ -590,9 +591,9 @@ var LanguagesByExtension = map[string][]string{
|
||||
".oz": {"Oz"},
|
||||
".p": {"OpenEdge ABL"},
|
||||
".p4": {"P4"},
|
||||
".p6": {"Perl6"},
|
||||
".p6l": {"Perl6"},
|
||||
".p6m": {"Perl6"},
|
||||
".p6": {"Perl 6"},
|
||||
".p6l": {"Perl 6"},
|
||||
".p6m": {"Perl 6"},
|
||||
".pac": {"JavaScript"},
|
||||
".pan": {"Pan"},
|
||||
".parrot": {"Parrot"},
|
||||
@ -626,8 +627,8 @@ var LanguagesByExtension = map[string][]string{
|
||||
".pkgproj": {"XML"},
|
||||
".pkl": {"Pickle"},
|
||||
".pks": {"PLSQL"},
|
||||
".pl": {"Perl", "Perl6", "Prolog"},
|
||||
".pl6": {"Perl6"},
|
||||
".pl": {"Perl", "Perl 6", "Prolog"},
|
||||
".pl6": {"Perl 6"},
|
||||
".plb": {"PLSQL"},
|
||||
".plist": {"XML"},
|
||||
".plot": {"Gnuplot"},
|
||||
@ -636,8 +637,8 @@ var LanguagesByExtension = map[string][]string{
|
||||
".plt": {"Gnuplot"},
|
||||
".pluginspec": {"Ruby", "XML"},
|
||||
".plx": {"Perl"},
|
||||
".pm": {"Perl", "Perl6"},
|
||||
".pm6": {"Perl6"},
|
||||
".pm": {"Perl", "Perl 6"},
|
||||
".pm6": {"Perl 6"},
|
||||
".pmod": {"Pike"},
|
||||
".po": {"Gettext Catalog"},
|
||||
".pod": {"Perl", "Pod"},
|
||||
@ -723,6 +724,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".rexx": {"REXX"},
|
||||
".rg": {"Rouge"},
|
||||
".rhtml": {"RHTML"},
|
||||
".ring": {"Ring"},
|
||||
".rkt": {"Racket"},
|
||||
".rktd": {"Racket"},
|
||||
".rktl": {"Racket"},
|
||||
@ -832,7 +834,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".svh": {"SystemVerilog"},
|
||||
".swift": {"Swift"},
|
||||
".syntax": {"YAML"},
|
||||
".t": {"Perl", "Perl6", "Terra", "Turing"},
|
||||
".t": {"Perl", "Perl 6", "Terra", "Turing"},
|
||||
".tab": {"SQL"},
|
||||
".tac": {"Python"},
|
||||
".targets": {"XML"},
|
||||
@ -1104,6 +1106,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"EJS": {".ejs"},
|
||||
"EQ": {".eq"},
|
||||
"Eagle": {".sch", ".brd"},
|
||||
"Easybuild": {".eb"},
|
||||
"Ecere Projects": {".epj"},
|
||||
"Eiffel": {".e"},
|
||||
"Elixir": {".ex", ".exs"},
|
||||
@ -1295,7 +1298,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Pascal": {".pas", ".dfm", ".dpr", ".inc", ".lpr", ".pascal", ".pp"},
|
||||
"Pep8": {".pep"},
|
||||
"Perl": {".pl", ".al", ".cgi", ".fcgi", ".perl", ".ph", ".plx", ".pm", ".pod", ".psgi", ".t"},
|
||||
"Perl6": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".t"},
|
||||
"Perl 6": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".t"},
|
||||
"Pic": {".pic", ".chem"},
|
||||
"Pickle": {".pkl"},
|
||||
"PicoLisp": {".l"},
|
||||
@ -1341,6 +1344,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Regular Expression": {".regexp", ".regex"},
|
||||
"Ren'Py": {".rpy"},
|
||||
"RenderScript": {".rs", ".rsh"},
|
||||
"Ring": {".ring"},
|
||||
"RobotFramework": {".robot"},
|
||||
"Roff": {".man", ".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".l", ".me", ".ms", ".n", ".nr", ".rno", ".roff", ".tmac"},
|
||||
"Rouge": {".rg"},
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var LanguagesByFilename = map[string][]string{
|
||||
".Rprofile": {"R"},
|
||||
@ -107,7 +107,7 @@ var LanguagesByFilename = map[string][]string{
|
||||
"README.mysql": {"Text"},
|
||||
"ROOT": {"Isabelle ROOT"},
|
||||
"Rakefile": {"Ruby"},
|
||||
"Rexfile": {"Perl6"},
|
||||
"Rexfile": {"Perl 6"},
|
||||
"SConscript": {"Python"},
|
||||
"SConstruct": {"Python"},
|
||||
"Settings.StyleCop": {"XML"},
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var LanguagesByInterpreter = map[string][]string{
|
||||
"Rscript": {"R"},
|
||||
@ -60,7 +60,7 @@ var LanguagesByInterpreter = map[string][]string{
|
||||
"osascript": {"AppleScript"},
|
||||
"parrot": {"Parrot Assembly", "Parrot Internal Representation"},
|
||||
"perl": {"Perl"},
|
||||
"perl6": {"Perl6"},
|
||||
"perl6": {"Perl 6"},
|
||||
"php": {"PHP"},
|
||||
"picolisp": {"PicoLisp"},
|
||||
"pike": {"Pike"},
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var LanguagesType = map[string]int{
|
||||
"1C Enterprise": 2,
|
||||
@ -107,6 +107,7 @@ var LanguagesType = map[string]int{
|
||||
"EJS": 3,
|
||||
"EQ": 2,
|
||||
"Eagle": 3,
|
||||
"Easybuild": 1,
|
||||
"Ecere Projects": 1,
|
||||
"Eiffel": 2,
|
||||
"Elixir": 2,
|
||||
@ -302,7 +303,7 @@ var LanguagesType = map[string]int{
|
||||
"Pascal": 2,
|
||||
"Pep8": 2,
|
||||
"Perl": 2,
|
||||
"Perl6": 2,
|
||||
"Perl 6": 2,
|
||||
"Pic": 3,
|
||||
"Pickle": 1,
|
||||
"PicoLisp": 2,
|
||||
@ -349,6 +350,7 @@ var LanguagesType = map[string]int{
|
||||
"Regular Expression": 1,
|
||||
"Ren'Py": 2,
|
||||
"RenderScript": 2,
|
||||
"Ring": 2,
|
||||
"RobotFramework": 2,
|
||||
"Roff": 3,
|
||||
"Rouge": 2,
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
|
||||
@ -35,6 +35,7 @@ var VendorMatchers = substring.Or(
|
||||
substring.Regexp(`(^|/)font-awesome\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)foundation\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)normalize\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)skeleton\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)[Bb]ourbon/.*\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)animate\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`third[-_]?party/`),
|
||||
|
461
type.go
Normal file
461
type.go
Normal file
@ -0,0 +1,461 @@
|
||||
package enry
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var languagesType = map[string]Type{
|
||||
"1C Enterprise": Programming,
|
||||
"ABAP": Programming,
|
||||
"ABNF": Data,
|
||||
"AGS Script": Programming,
|
||||
"AMPL": Programming,
|
||||
"ANTLR": Programming,
|
||||
"API Blueprint": Markup,
|
||||
"APL": Programming,
|
||||
"ASN.1": Data,
|
||||
"ASP": Programming,
|
||||
"ATS": Programming,
|
||||
"ActionScript": Programming,
|
||||
"Ada": Programming,
|
||||
"Agda": Programming,
|
||||
"Alloy": Programming,
|
||||
"Alpine Abuild": Programming,
|
||||
"Ant Build System": Data,
|
||||
"ApacheConf": Markup,
|
||||
"Apex": Programming,
|
||||
"Apollo Guidance Computer": Programming,
|
||||
"AppleScript": Programming,
|
||||
"Arc": Programming,
|
||||
"Arduino": Programming,
|
||||
"AsciiDoc": Prose,
|
||||
"AspectJ": Programming,
|
||||
"Assembly": Programming,
|
||||
"Augeas": Programming,
|
||||
"AutoHotkey": Programming,
|
||||
"AutoIt": Programming,
|
||||
"Awk": Programming,
|
||||
"Batchfile": Programming,
|
||||
"Befunge": Programming,
|
||||
"Bison": Programming,
|
||||
"BitBake": Programming,
|
||||
"Blade": Markup,
|
||||
"BlitzBasic": Programming,
|
||||
"BlitzMax": Programming,
|
||||
"Bluespec": Programming,
|
||||
"Boo": Programming,
|
||||
"Brainfuck": Programming,
|
||||
"Brightscript": Programming,
|
||||
"Bro": Programming,
|
||||
"C": Programming,
|
||||
"C#": Programming,
|
||||
"C++": Programming,
|
||||
"C-ObjDump": Data,
|
||||
"C2hs Haskell": Programming,
|
||||
"CLIPS": Programming,
|
||||
"CMake": Programming,
|
||||
"COBOL": Programming,
|
||||
"COLLADA": Data,
|
||||
"CSON": Data,
|
||||
"CSS": Markup,
|
||||
"CSV": Data,
|
||||
"CWeb": Programming,
|
||||
"Cap'n Proto": Programming,
|
||||
"CartoCSS": Programming,
|
||||
"Ceylon": Programming,
|
||||
"Chapel": Programming,
|
||||
"Charity": Programming,
|
||||
"ChucK": Programming,
|
||||
"Cirru": Programming,
|
||||
"Clarion": Programming,
|
||||
"Clean": Programming,
|
||||
"Click": Programming,
|
||||
"Clojure": Programming,
|
||||
"Closure Templates": Markup,
|
||||
"CoffeeScript": Programming,
|
||||
"ColdFusion": Programming,
|
||||
"ColdFusion CFC": Programming,
|
||||
"Common Lisp": Programming,
|
||||
"Component Pascal": Programming,
|
||||
"Cool": Programming,
|
||||
"Coq": Programming,
|
||||
"Cpp-ObjDump": Data,
|
||||
"Creole": Prose,
|
||||
"Crystal": Programming,
|
||||
"Csound": Programming,
|
||||
"Csound Document": Programming,
|
||||
"Csound Score": Programming,
|
||||
"Cuda": Programming,
|
||||
"Cycript": Programming,
|
||||
"Cython": Programming,
|
||||
"D": Programming,
|
||||
"D-ObjDump": Data,
|
||||
"DIGITAL Command Language": Programming,
|
||||
"DM": Programming,
|
||||
"DNS Zone": Data,
|
||||
"DTrace": Programming,
|
||||
"Darcs Patch": Data,
|
||||
"Dart": Programming,
|
||||
"Diff": Data,
|
||||
"Dockerfile": Data,
|
||||
"Dogescript": Programming,
|
||||
"Dylan": Programming,
|
||||
"E": Programming,
|
||||
"EBNF": Data,
|
||||
"ECL": Programming,
|
||||
"ECLiPSe": Programming,
|
||||
"EJS": Markup,
|
||||
"EQ": Programming,
|
||||
"Eagle": Markup,
|
||||
"Easybuild": Data,
|
||||
"Ecere Projects": Data,
|
||||
"Eiffel": Programming,
|
||||
"Elixir": Programming,
|
||||
"Elm": Programming,
|
||||
"Emacs Lisp": Programming,
|
||||
"EmberScript": Programming,
|
||||
"Erlang": Programming,
|
||||
"F#": Programming,
|
||||
"FLUX": Programming,
|
||||
"Factor": Programming,
|
||||
"Fancy": Programming,
|
||||
"Fantom": Programming,
|
||||
"Filebench WML": Programming,
|
||||
"Filterscript": Programming,
|
||||
"Formatted": Data,
|
||||
"Forth": Programming,
|
||||
"Fortran": Programming,
|
||||
"FreeMarker": Programming,
|
||||
"Frege": Programming,
|
||||
"G-code": Data,
|
||||
"GAMS": Programming,
|
||||
"GAP": Programming,
|
||||
"GCC Machine Description": Programming,
|
||||
"GDB": Programming,
|
||||
"GDScript": Programming,
|
||||
"GLSL": Programming,
|
||||
"GN": Data,
|
||||
"Game Maker Language": Programming,
|
||||
"Genie": Programming,
|
||||
"Genshi": Programming,
|
||||
"Gentoo Ebuild": Programming,
|
||||
"Gentoo Eclass": Programming,
|
||||
"Gettext Catalog": Prose,
|
||||
"Gherkin": Programming,
|
||||
"Glyph": Programming,
|
||||
"Gnuplot": Programming,
|
||||
"Go": Programming,
|
||||
"Golo": Programming,
|
||||
"Gosu": Programming,
|
||||
"Grace": Programming,
|
||||
"Gradle": Data,
|
||||
"Grammatical Framework": Programming,
|
||||
"Graph Modeling Language": Data,
|
||||
"GraphQL": Data,
|
||||
"Graphviz (DOT)": Data,
|
||||
"Groovy": Programming,
|
||||
"Groovy Server Pages": Programming,
|
||||
"HCL": Programming,
|
||||
"HLSL": Programming,
|
||||
"HTML": Markup,
|
||||
"HTML+Django": Markup,
|
||||
"HTML+ECR": Markup,
|
||||
"HTML+EEX": Markup,
|
||||
"HTML+ERB": Markup,
|
||||
"HTML+PHP": Markup,
|
||||
"HTTP": Data,
|
||||
"Hack": Programming,
|
||||
"Haml": Markup,
|
||||
"Handlebars": Markup,
|
||||
"Harbour": Programming,
|
||||
"Haskell": Programming,
|
||||
"Haxe": Programming,
|
||||
"Hy": Programming,
|
||||
"HyPhy": Programming,
|
||||
"IDL": Programming,
|
||||
"IGOR Pro": Programming,
|
||||
"INI": Data,
|
||||
"IRC log": Data,
|
||||
"Idris": Programming,
|
||||
"Inform 7": Programming,
|
||||
"Inno Setup": Programming,
|
||||
"Io": Programming,
|
||||
"Ioke": Programming,
|
||||
"Isabelle": Programming,
|
||||
"Isabelle ROOT": Programming,
|
||||
"J": Programming,
|
||||
"JFlex": Programming,
|
||||
"JSON": Data,
|
||||
"JSON5": Data,
|
||||
"JSONLD": Data,
|
||||
"JSONiq": Programming,
|
||||
"JSX": Programming,
|
||||
"Jasmin": Programming,
|
||||
"Java": Programming,
|
||||
"Java Server Pages": Programming,
|
||||
"JavaScript": Programming,
|
||||
"Jison": Programming,
|
||||
"Jison Lex": Programming,
|
||||
"Jolie": Programming,
|
||||
"Julia": Programming,
|
||||
"Jupyter Notebook": Markup,
|
||||
"KRL": Programming,
|
||||
"KiCad": Programming,
|
||||
"Kit": Markup,
|
||||
"Kotlin": Programming,
|
||||
"LFE": Programming,
|
||||
"LLVM": Programming,
|
||||
"LOLCODE": Programming,
|
||||
"LSL": Programming,
|
||||
"LabVIEW": Programming,
|
||||
"Lasso": Programming,
|
||||
"Latte": Markup,
|
||||
"Lean": Programming,
|
||||
"Less": Markup,
|
||||
"Lex": Programming,
|
||||
"LilyPond": Programming,
|
||||
"Limbo": Programming,
|
||||
"Linker Script": Data,
|
||||
"Linux Kernel Module": Data,
|
||||
"Liquid": Markup,
|
||||
"Literate Agda": Programming,
|
||||
"Literate CoffeeScript": Programming,
|
||||
"Literate Haskell": Programming,
|
||||
"LiveScript": Programming,
|
||||
"Logos": Programming,
|
||||
"Logtalk": Programming,
|
||||
"LookML": Programming,
|
||||
"LoomScript": Programming,
|
||||
"Lua": Programming,
|
||||
"M": Programming,
|
||||
"M4": Programming,
|
||||
"M4Sugar": Programming,
|
||||
"MAXScript": Programming,
|
||||
"MQL4": Programming,
|
||||
"MQL5": Programming,
|
||||
"MTML": Markup,
|
||||
"MUF": Programming,
|
||||
"Makefile": Programming,
|
||||
"Mako": Programming,
|
||||
"Markdown": Prose,
|
||||
"Marko": Markup,
|
||||
"Mask": Markup,
|
||||
"Mathematica": Programming,
|
||||
"Matlab": Programming,
|
||||
"Maven POM": Data,
|
||||
"Max": Programming,
|
||||
"MediaWiki": Prose,
|
||||
"Mercury": Programming,
|
||||
"Meson": Programming,
|
||||
"Metal": Programming,
|
||||
"MiniD": Programming,
|
||||
"Mirah": Programming,
|
||||
"Modelica": Programming,
|
||||
"Modula-2": Programming,
|
||||
"Module Management System": Programming,
|
||||
"Monkey": Programming,
|
||||
"Moocode": Programming,
|
||||
"MoonScript": Programming,
|
||||
"Myghty": Programming,
|
||||
"NCL": Programming,
|
||||
"NL": Data,
|
||||
"NSIS": Programming,
|
||||
"Nemerle": Programming,
|
||||
"NetLinx": Programming,
|
||||
"NetLinx+ERB": Programming,
|
||||
"NetLogo": Programming,
|
||||
"NewLisp": Programming,
|
||||
"Nginx": Markup,
|
||||
"Nim": Programming,
|
||||
"Ninja": Data,
|
||||
"Nit": Programming,
|
||||
"Nix": Programming,
|
||||
"Nu": Programming,
|
||||
"NumPy": Programming,
|
||||
"OCaml": Programming,
|
||||
"ObjDump": Data,
|
||||
"Objective-C": Programming,
|
||||
"Objective-C++": Programming,
|
||||
"Objective-J": Programming,
|
||||
"Omgrofl": Programming,
|
||||
"Opa": Programming,
|
||||
"Opal": Programming,
|
||||
"OpenCL": Programming,
|
||||
"OpenEdge ABL": Programming,
|
||||
"OpenRC runscript": Programming,
|
||||
"OpenSCAD": Programming,
|
||||
"OpenType Feature File": Data,
|
||||
"Org": Prose,
|
||||
"Ox": Programming,
|
||||
"Oxygene": Programming,
|
||||
"Oz": Programming,
|
||||
"P4": Programming,
|
||||
"PAWN": Programming,
|
||||
"PHP": Programming,
|
||||
"PLSQL": Programming,
|
||||
"PLpgSQL": Programming,
|
||||
"POV-Ray SDL": Programming,
|
||||
"Pan": Programming,
|
||||
"Papyrus": Programming,
|
||||
"Parrot": Programming,
|
||||
"Parrot Assembly": Programming,
|
||||
"Parrot Internal Representation": Programming,
|
||||
"Pascal": Programming,
|
||||
"Pep8": Programming,
|
||||
"Perl": Programming,
|
||||
"Perl 6": Programming,
|
||||
"Pic": Markup,
|
||||
"Pickle": Data,
|
||||
"PicoLisp": Programming,
|
||||
"PigLatin": Programming,
|
||||
"Pike": Programming,
|
||||
"Pod": Prose,
|
||||
"PogoScript": Programming,
|
||||
"Pony": Programming,
|
||||
"PostScript": Markup,
|
||||
"PowerBuilder": Programming,
|
||||
"PowerShell": Programming,
|
||||
"Processing": Programming,
|
||||
"Prolog": Programming,
|
||||
"Propeller Spin": Programming,
|
||||
"Protocol Buffer": Markup,
|
||||
"Public Key": Data,
|
||||
"Pug": Markup,
|
||||
"Puppet": Programming,
|
||||
"Pure Data": Programming,
|
||||
"PureBasic": Programming,
|
||||
"PureScript": Programming,
|
||||
"Python": Programming,
|
||||
"Python console": Programming,
|
||||
"Python traceback": Data,
|
||||
"QML": Programming,
|
||||
"QMake": Programming,
|
||||
"R": Programming,
|
||||
"RAML": Markup,
|
||||
"RDoc": Prose,
|
||||
"REALbasic": Programming,
|
||||
"REXX": Programming,
|
||||
"RHTML": Markup,
|
||||
"RMarkdown": Prose,
|
||||
"RPM Spec": Data,
|
||||
"RUNOFF": Markup,
|
||||
"Racket": Programming,
|
||||
"Ragel": Programming,
|
||||
"Rascal": Programming,
|
||||
"Raw token data": Data,
|
||||
"Reason": Programming,
|
||||
"Rebol": Programming,
|
||||
"Red": Programming,
|
||||
"Redcode": Programming,
|
||||
"Regular Expression": Data,
|
||||
"Ren'Py": Programming,
|
||||
"RenderScript": Programming,
|
||||
"Ring": Programming,
|
||||
"RobotFramework": Programming,
|
||||
"Roff": Markup,
|
||||
"Rouge": Programming,
|
||||
"Ruby": Programming,
|
||||
"Rust": Programming,
|
||||
"SAS": Programming,
|
||||
"SCSS": Markup,
|
||||
"SMT": Programming,
|
||||
"SPARQL": Data,
|
||||
"SQF": Programming,
|
||||
"SQL": Data,
|
||||
"SQLPL": Programming,
|
||||
"SRecode Template": Markup,
|
||||
"STON": Data,
|
||||
"SVG": Data,
|
||||
"Sage": Programming,
|
||||
"SaltStack": Programming,
|
||||
"Sass": Markup,
|
||||
"Scala": Programming,
|
||||
"Scaml": Markup,
|
||||
"Scheme": Programming,
|
||||
"Scilab": Programming,
|
||||
"Self": Programming,
|
||||
"ShaderLab": Programming,
|
||||
"Shell": Programming,
|
||||
"ShellSession": Programming,
|
||||
"Shen": Programming,
|
||||
"Slash": Programming,
|
||||
"Slim": Markup,
|
||||
"Smali": Programming,
|
||||
"Smalltalk": Programming,
|
||||
"Smarty": Programming,
|
||||
"SourcePawn": Programming,
|
||||
"Spline Font Database": Data,
|
||||
"Squirrel": Programming,
|
||||
"Stan": Programming,
|
||||
"Standard ML": Programming,
|
||||
"Stata": Programming,
|
||||
"Stylus": Markup,
|
||||
"SubRip Text": Data,
|
||||
"Sublime Text Config": Data,
|
||||
"SuperCollider": Programming,
|
||||
"Swift": Programming,
|
||||
"SystemVerilog": Programming,
|
||||
"TI Program": Programming,
|
||||
"TLA": Programming,
|
||||
"TOML": Data,
|
||||
"TXL": Programming,
|
||||
"Tcl": Programming,
|
||||
"Tcsh": Programming,
|
||||
"TeX": Markup,
|
||||
"Tea": Markup,
|
||||
"Terra": Programming,
|
||||
"Text": Prose,
|
||||
"Textile": Prose,
|
||||
"Thrift": Programming,
|
||||
"Turing": Programming,
|
||||
"Turtle": Data,
|
||||
"Twig": Markup,
|
||||
"Type Language": Data,
|
||||
"TypeScript": Programming,
|
||||
"Unified Parallel C": Programming,
|
||||
"Unity3D Asset": Data,
|
||||
"Unix Assembly": Programming,
|
||||
"Uno": Programming,
|
||||
"UnrealScript": Programming,
|
||||
"UrWeb": Programming,
|
||||
"VCL": Programming,
|
||||
"VHDL": Programming,
|
||||
"Vala": Programming,
|
||||
"Verilog": Programming,
|
||||
"Vim script": Programming,
|
||||
"Visual Basic": Programming,
|
||||
"Volt": Programming,
|
||||
"Vue": Markup,
|
||||
"Wavefront Material": Data,
|
||||
"Wavefront Object": Data,
|
||||
"Web Ontology Language": Markup,
|
||||
"WebAssembly": Programming,
|
||||
"WebIDL": Programming,
|
||||
"World of Warcraft Addon Data": Data,
|
||||
"X10": Programming,
|
||||
"XC": Programming,
|
||||
"XCompose": Data,
|
||||
"XML": Data,
|
||||
"XPages": Programming,
|
||||
"XProc": Programming,
|
||||
"XQuery": Programming,
|
||||
"XS": Programming,
|
||||
"XSLT": Programming,
|
||||
"Xojo": Programming,
|
||||
"Xtend": Programming,
|
||||
"YAML": Data,
|
||||
"YANG": Data,
|
||||
"Yacc": Programming,
|
||||
"Zephir": Programming,
|
||||
"Zimpl": Programming,
|
||||
"desktop": Data,
|
||||
"eC": Programming,
|
||||
"edn": Data,
|
||||
"fish": Programming,
|
||||
"mupad": Programming,
|
||||
"nesC": Programming,
|
||||
"ooc": Programming,
|
||||
"reStructuredText": Prose,
|
||||
"wisp": Programming,
|
||||
"xBase": Programming,
|
||||
}
|
Loading…
Reference in New Issue
Block a user