Skip to content

Commit

Permalink
Merge pull request #46 from hhatto/support-languages
Browse files Browse the repository at this point in the history
Support more languages
  • Loading branch information
hhatto committed May 13, 2021
2 parents b2dad38 + 40c3d8c commit 22f33eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions language.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ var Exts = map[string]string{
"Rmd": "RMarkdown",
"rake": "Ruby",
"rb": "Ruby",
"resx": "XML resource", // ref: https://docs.microsoft.com/en-us/dotnet/framework/resources/creating-resource-files-for-desktop-apps#ResxFiles
"ring": "Ring",
"rkt": "Racket",
"rhtml": "Ruby HTML",
Expand Down Expand Up @@ -247,7 +248,9 @@ var Exts = map[string]string{
"vala": "Vala",
"Verilog": "Verilog",
"csproj": "MSBuild script",
"vbproj": "MSBuild script",
"vcproj": "MSBuild script",
"vb": "Visual Basic",
"vim": "VimL",
"vue": "Vue",
"vy": "Vyper",
Expand Down Expand Up @@ -567,10 +570,12 @@ func NewDefinedLanguages() *DefinedLanguages {
"Vala": NewLanguage("Vala", []string{"//"}, [][]string{{"/*", "*/"}}),
"Verilog": NewLanguage("Verilog", []string{"//"}, [][]string{{"/*", "*/"}}),
"VimL": NewLanguage("VimL", []string{`"`}, [][]string{{"", ""}}),
"Visual Basic": NewLanguage("Visual Basic", []string{"'"}, [][]string{{"", ""}}),
"Vue": NewLanguage("Vue", []string{"<!--"}, [][]string{{"<!--", "-->"}}),
"Vyper": NewLanguage("Vyper", []string{"#"}, [][]string{{"\"\"\"", "\"\"\""}}),
"WiX": NewLanguage("WiX", []string{"<!--"}, [][]string{{"<!--", "-->"}}),
"XML": NewLanguage("XML", []string{"<!--"}, [][]string{{"<!--", "-->"}}),
"XML resource": NewLanguage("XML resource", []string{"<!--"}, [][]string{{"<!--", "-->"}}),
"XSLT": NewLanguage("XSLT", []string{"<!--"}, [][]string{{"<!--", "-->"}}),
"XSD": NewLanguage("XSD", []string{"<!--"}, [][]string{{"<!--", "-->"}}),
"YAML": NewLanguage("YAML", []string{"#"}, [][]string{{"", ""}}),
Expand Down

0 comments on commit 22f33eb

Please sign in to comment.