Open WieeRd opened 7 months ago
PascalCase
"languages": {
<Key>: {
"line_comment": [<"//">],
"multi_line_comments": [[<"/*">, <"*/">]],
"quotes": [[<"\\\">, <"\\\">]],
"extensions": [<".ext">]
},
}
Pascal Case
,PascalCase
, KEBAB-CASE
Mixed<Key>:
type: <programming>
extensions:
- <".ext">
extension.go
<idx>: LanguageInfo{
Name: <"C++">,
Type: TypeForString("programming"),
Aliases: []string{
"cpp",
},
Extensions: []string{
<".ext">,
},
},
lowercase
lower_snake_case
lower_snake_case
, UPPERCASE
Mixedlowercase
lowercase
, snake_case
, UPPERCASE
, KEBAB-CASE
, PascalCase
, camelCase
cplusplus
vs cpp
vs c++
.cpp
vs cpp
, whether to include leading .
The reason we are doing this research is to write a converter that can convert all of above resources into our own format. The provided information is not enough to write such converter.
dead
We need to build a huge registry of various languages, and we cannot hope to add each and every one of them by hand.
Tier 1
tokei/languages.json
linguist/lib/linguist/*.yml
go-enry/data/*.go
Tier 2
devicon/devicon.json
nerd-fonts/glyphnames.json
Tier 3
helix/languages.toml
neovim/runtime/lua/vim/filetype.lua
Comment.nvim/lua/Comment/ft.lua