Skip to content

Commit

Permalink
handle merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
cgag committed Oct 25, 2016
2 parents cd787a3 + 252d94b commit 22451a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Erlang
Forth
FortranLegacy
FortranModern
GLSL
Go
Handlebars
Haskell
Expand Down
10 changes: 6 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ pub enum Lang {
Forth,
FortranLegacy,
FortranModern,
Glsl,
Go,
Handlebars,
Haskell,
Expand Down Expand Up @@ -181,6 +182,7 @@ impl Lang {
Forth => "Forth",
FortranLegacy => "FORTRAN Legacy",
FortranModern => "FORTRAN Modern",
Glsl => "GLSL",
Go => "Go",
Handlebars => "Handlebars",
Haskell => "Haskell",
Expand Down Expand Up @@ -289,6 +291,7 @@ pub fn lang_from_ext(filepath: &str) -> Lang {
"dts" | "dtsi" => DeviceTree,
"el" | "lisp" | "lsp" => Lisp,
"erl" | "hrl" => Erlang,
"vert" | "tesc" | "tese" | "geom" | "frag" | "comp" => Glsl,
"go" => Go,
"h" | "hh" | "hpp" | "hxx" => CCppHeader,
"hbs" | "handlebars" => Handlebars,
Expand Down Expand Up @@ -442,10 +445,9 @@ pub fn counter_config_for_lang<'a>(lang: &Lang) -> LineConfig<'a> {

// TODO(cgag): not 100% sure that yacc belongs here.
C | CCppHeader | Rust | Yacc | ActionScript | ColdFusionScript | Css | Cpp | CSharp |
Dart | DeviceTree | Go | Jai | Java | JavaScript | Jsx | Kotlin | Less | LinkerScript |
ObjectiveC | ObjectiveCpp | Qcl | Sass | Scala | Swift | TypeScript | UnrealScript => {
c_style
}
Dart | DeviceTree | Glsl | Go | Jai | Java | JavaScript | Jsx | Kotlin | Less |
LinkerScript | ObjectiveC | ObjectiveCpp | Qcl | Sass | Scala | Swift | TypeScript |
UnrealScript => c_style,

Unrecognized => unreachable!(),
};
Expand Down

0 comments on commit 22451a1

Please sign in to comment.