Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Auto merge of #21 - kbknapp:v0.2.1, r=kbknapp
Browse files Browse the repository at this point in the history
V0.2.1
  • Loading branch information
homu committed Dec 24, 2015
2 parents 4755363 + bc4c84a commit 1840551
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 18 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
<a name="v0.2.1"></a>
### v0.2.1 (2015-12-24)


#### Improvements

* adds C, h++, cc, cxx, cp, and htm extensions ([ea4f540a](https://github.com/kbknapp/cargo-count/commit/ea4f540ac356dc946c42aaebe683f8c6d70fd362), closes [#19](https://github.com/kbknapp/cargo-count/issues/19))


<a name="v0.2.0"></a>
## v0.2.0 (2015-12-24)


#### Improvements

* Ignore files in accordance with .gitignore ([a0c30706](https://github.com/kbknapp/cargo-count/commit/a0c307061413972b973f148802abe06e80a01099), Closes [#8](https://github.com/kbknapp/cargo-count/issues/8), [#9](https://github.com/kbknapp/cargo-count/issues/9))

#### Bug Fixes

* fixes building on windows due to upstream dep ([3333f252](https://github.com/kbknapp/cargo-count/commit/3333f252f4c7e5e1324d5a178b9f020823283bc7))



<a name="v0.1.4"></a>
### v0.1.4 (2015-11-14)

Expand Down
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-count"
version = "0.1.5"
version = "0.2.1"
authors = ["Kevin K <kbknapp@gmail.com>"]
exclude = ["*.png"]
description = "Cargo subcommand for displaying statistics about projects, such as code, comments, and unsafe counters"
Expand Down
7 changes: 7 additions & 0 deletions src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ impl Language {
pub fn from_ext(ext: &str) -> Option<Language> {
match ext {
"cpp" => Some(Language::Cpp),
"cp" => Some(Language::Cpp),
"cc" => Some(Language::Cpp),
"cxx" => Some(Language::Cpp),
"c++" => Some(Language::Cpp),
"C" => Some(Language::Cpp),
"hpp" => Some(Language::Hpp),
"h++" => Some(Language::Hpp),
"c" => Some(Language::C),
"h" => Some(Language::Header),
"css" => Some(Language::Css),
Expand All @@ -35,6 +41,7 @@ impl Language {
"rs" => Some(Language::Rust),
"xml" => Some(Language::Xml),
"html" => Some(Language::Html),
"htm" => Some(Language::Html),
"py" => Some(Language::Python),
"rb" => Some(Language::Ruby),
"php" => Some(Language::Php),
Expand Down

0 comments on commit 1840551

Please sign in to comment.