Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ ignore files with `loc -u`, and include hidden files/dirs with `loc -uu`.
- FORTRAN Legacy
- FORTRAN Modern
- F# (Fsharp)
- GDScript
- GLSL
- Go
- Groovy
Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ pub enum Lang {
PureScript,
Pyret,
Python,
GDScript,
Qcl,
Qml,
R,
Expand Down Expand Up @@ -254,6 +255,7 @@ impl Lang {
PureScript => "PureScript",
Pyret => "Pyret",
Python => "Python",
GDScript => "GDScript",
Qcl => "Qcl",
Qml => "Qml",
R => "R",
Expand Down Expand Up @@ -419,6 +421,7 @@ pub fn lang_from_ext(filepath: &str) -> Lang {
"purs" => PureScript,
"arr" => Pyret,
"py" => Python,
"gd" => GDScript,
"r" => R,
"rake" | "rb" => Ruby,
"re" | "rei" => Reason,
Expand Down Expand Up @@ -539,8 +542,7 @@ pub fn counter_config_for_lang<'a>(lang: Lang) -> (SmallVec<[&'a str; 3]>, Small
Html | Polly | RubyHtml | XML => html_style,

BourneShell | Make | Awk | CShell | Gherkin | Makefile | Nim | R | SaltStack | Tcl
| Toml | Yaml | Zsh | Elixir => sh_style,

| Toml | Yaml | Zsh | Elixir | GDScript => sh_style,

// TODO(cgag): not 100% sure that yacc belongs here.
AmbientTalk | C | CCppHeader | Rust | Yacc | ActionScript | ColdFusionScript | Css | Cpp | CUDA
Expand Down