Commit graph

165 commits

Author SHA1 Message Date
Gabe Weiner 797eab0027
Adds support for GameMaker Language (GML) (#702) 2021-01-23 17:57:52 +00:00
Spenser Black 14d5adb534
Add support for pug (#679)
* Add pug support

Closes #671

* Add test for Pug
2021-01-11 11:34:00 +00:00
Guy Bianco IV b6f873f231
add asciidoc support and test (#692) 2021-01-11 11:33:35 +00:00
Lucas Franceschino 5cd3a38392
FStar language: add single-line comments (#670) 2020-12-15 21:10:48 +00:00
Jérémie Astor feb0631414
🎨 Add support for Gwion (#659) 2020-11-19 14:41:11 +01:00
Mike J Innes 62d2a8db52
add stan language (#633) 2020-10-26 16:28:34 +01:00
Alexander Lyon b0720c9276
Add jsonnet to language list (#634) 2020-10-24 14:06:19 +02:00
Louis Pilfold fc327c34bc
Add support for the Gleam language (#646)
Hiya! Teaching Tokei to spot [Gleam](https://gleam.run/). Thanks :)
2020-10-21 07:39:14 +02:00
Felix 0d87e84b43
added beancount file format (#630) 2020-09-29 09:28:01 +02:00
Emmanuel Alap 82429f5c32
Add support for TTCN-3 (#621)
* Add support for TTCN-3

* Fix TTCN's expected lines
2020-09-20 15:29:57 +02:00
TheAlgorythm 3a898483fe
add Tera templating language (#627)
* add Tera templating language

* Add Tera test

* changed maybe to the right counting

```html
    <!--
        document.write("Multi-line and Code comment!");{# comment #}
        //-->
```
as 2 comments

* changed code count

* updated comment count

* changed comments

* Update Tera.tera
2020-09-15 17:53:00 +02:00
Alex Mason bce9242ba4
Add definition for DAML (#620)
* Adds DAML, essentially a dialect of Haskell

* Update README.md

* Update languages.json

* Create Daml.daml

* Update Daml.daml

* Line comments are specifically "-- " not just "--"

* Add test for comment-esque function

* Fix number of lines

* Fix DAML example (again)

* Add line using --$ operator

* Update Daml.daml

* Update Daml.daml
2020-09-04 16:56:22 +02:00
Spenser Black 420afd3573
Add Stylus language (#619)
* Create stylus.styl

* Add Stylus language
2020-09-01 18:41:34 +02:00
Jos van Bakel 724c8e8995
Add LiveScript to languages.json (#607)
LiveScript is a language which compiles to JavaScript.  (http://livescript.net/)
2020-08-10 11:51:06 +02:00
Michael Rodler 2b5ab4fa1c Added CodeQL language support 2020-08-05 17:55:30 +02:00
Alexandru Macovei 404e664267
Add support for ABNF grammar specs (#577) 2020-06-29 09:30:13 +02:00
XAMPPRocky 3485cd3f58
Delete markdown.md 2020-06-28 08:20:14 +02:00
Erin Power af326fd73c Fix empty tags causing panics and support markdown code identifiers to be split by , 2020-06-24 14:03:25 +02:00
Erin Power e4ff3c2b5b fix panic if empty 2020-06-22 15:20:46 +02:00
Erin Power fedb1cd3b0 remove markdown test 2020-06-21 21:28:32 +02:00
Erin Power 28917c4ad3 Add jupyter support 2020-06-21 18:59:17 +02:00
Erin Power efde7bdcc7 Refactor important syntax and add support for templates 2020-06-21 16:29:12 +02:00
Erin Power d4ef84320b Refactor context parsing and add initial support for HTML. 2020-06-21 15:15:16 +02:00
Erin Power 4fbae4984d Refactor print and summarise code 2020-06-19 12:45:02 +02:00
Erin Power c06fa65dd9 Refactor cli_utils into Printer and add Rust context 2020-06-19 08:44:03 +02:00
Erin Power 7eee4cbea1 move test file 2020-06-10 17:04:34 +02:00
jmesheridan 82781e3cdb
Add support for q/k languages (#549) 2020-06-02 14:05:14 +02:00
Erin Power 9974f017e8 Added better blank detection 2020-05-31 13:55:17 +02:00
Erin Power ec8edf27e7 Replace lazy_static with once_cell 2020-05-28 08:01:52 +02:00
Nick Hackman 96b47ab404
Verbatim strings (#535)
* Added CSharp example

Using example from #330, for testing purposes

* Updated Rust test case

Rust test case now has a verbatim string that fails, with current
version of Tokei.

* Added C++ verbatim string to example

C++ Syntax makes this incredibly difficult to parse using the current
infrastructure, `R"PREFIX(    )PREFIX"` where PREFIX can be almost anything.

* Updated F# Test to have verbatim string

* Add support for "verbatim_quotes"

Quotes that neglect the `\"` rule, in the case of python as mentioned
in #330 it produces the correct outcome with Tokei currently.

* Add support for verbatim_quotes in syntax

Properly keeps track of current state and handles escapes properly in
the case of being inside of a verbatim_quote

* Added `verbatim_quotes` to CONTRIBUTING.md
2020-05-28 07:55:14 +02:00
Bruno Michel 156e7b7dc9
Add Alloy language (#541)
Alloy is an open source language and analyzer for software modeling.

Homepage: http://alloytools.org/
2020-05-23 12:11:55 +02:00
Nick Hackman 765dfb1097
Fixed HTML counting JS and CSS comments (#534)
Previously all lines that were `CSS` or `JavaScript` comments were
counted as code, these are now properly counted as comments.
2020-05-19 17:59:50 +02:00
Nick Hackman 4448dc4ea1
Add language Svelte (#522)
* Added Support for Svelte

* Added Svelte test

* Removed Prettier formatting

* Removed unnecessary name in Svelte

* Added Svelte to README

* Removed README formatting
2020-05-19 17:56:07 +02:00
Alexandru Macovei e88eabe7d9
Add support for Dhall lang (#532) 2020-05-19 17:55:38 +02:00
Nick Hackman 89f1fde9d3
Vue test (#523)
* Fixed bug in Vue Counting Comments

Didn't support Javascript multi line comments or Javascript single line
comments, removed duplicate quotes

* Added Vue Test

* Trigger Rebuild

* Removed Prettier formatting

* Fixed typo, closing ] in multi_line_comments
2020-05-18 18:26:25 +02:00
NickHackman 7ea0feb645 Javascript test 2020-05-10 17:27:21 +02:00
NickHackman 1a08ae29b1 Added Typescript test 2020-05-10 17:27:21 +02:00
NickHackman c32be3069c Added Lifetimes edge case to Rust example 2020-05-09 23:47:30 +02:00
Samantha Abbott add326ef78
Separate TSX and Typescript Support (#516)
* Follows the JSX and Javascript separation
* Separate TSX and Typescript for clearer stats
* Add TSX test
2020-05-08 14:11:54 +02:00
David Backeus 45ef479b47
Add .erb extension for "Ruby HTML" (#510)
* Add .erb extension for "Ruby HTML"

The `.erb` extension has been used over `.rhtml` in Ruby on Rails for over a decade at this point.

* Add an .erb file to test Ruby HTML
2020-05-01 11:32:33 +02:00
Markus Wiegand ab1b317621
Add Go HTML template support (#506)
* add gohtml support

* add gohtml test
2020-04-20 19:39:44 +02:00
Lucas Menezes a98eda4f3c
Added Headache Program Language (#503) 2020-04-18 22:56:00 +02:00
Troels Henriksen 1a5c38dd7b
Add Futhark (#502) 2020-04-16 22:32:24 +02:00
Erin Power 5225f61d75 Add OpenType Feature File 2020-04-15 18:38:12 +02:00
Erin Power c4a4734967 Fixed stats statistics and add test 2020-04-02 18:18:37 +02:00
Ruben De Smet da8053c96e
Add Arduino support (#475)
* Add Arduino support

Fixes #474

* Add Arduino test file
2020-03-27 08:08:39 +01:00
Daniel Luque 337b7b4d8d
Adds support for Ren'Py scripting (#477) 2020-03-27 08:07:59 +01:00
Andy Georges 1425c670a7
feat: add support for the Pan DSL (#479) 2020-03-26 19:39:45 +01:00
Erin Power a536707b9e Use aho_corasick and fix escaping applying outside the string context. 2020-03-18 01:58:44 +01:00
Ben Widawsky c8da8869ae
Split out GNU style assembly (#457)
.asm is generally associated with MASM,NASM,YASM, while .s and .S are
associated with traditionally what is fed into the GNU assembler.

To support this, create two different assembly file types.
2020-03-10 13:58:06 +01:00
XAMPPRocky 1b3e6d01fa
Add support for GDB scripts (#456) 2020-03-04 19:56:46 +01:00
Ian Kerins 4e9723719b
Add support for Velocity and Dust (#450)
* Add support for Dust.js

Dust.js is a JavaScript-based templating language by
LinkedIn. https://www.dustjs.com/

* Add support for Apache Velocity

Velocity is a JVM-based templating language.
https://velocity.apache.org/

* Fix incorrectly named line_comment property in CONTRIBUTING.md

* Fix typo in WebAssembly configuration
2020-02-20 11:19:12 +01:00
Andre Blanke 633a77b982
Add FreeMarker language support (#425)
* Add FreeMarker language support

* Add missing ftl.ftl test file

* Fix incorrect test data in ftl.ftl by including first line in statistic
2020-02-17 22:11:32 +01:00
Erik Axel Nielsen e827e38dcf Added Gherkin (Cucumber) (#408) 2019-11-26 18:33:14 +01:00
Felix b1d3688cb7 Added Rusty Object Notation (#395)
* Added Rusty Object Notation

* added ron example file

* added stats
2019-11-08 09:03:56 +01:00
Scitoshi Nakayobro 1eedbdcab4 Add support for Odin (#402)
* Add support for Odin

* Add test data for Odin
2019-11-05 10:36:43 +01:00
Atul Bhosale fcd555ad9f Format code using 'cargo fmt' (#399) 2019-10-30 20:31:24 +01:00
Jakub Kądziołka 7cc6e01f59 Add Emojicode support (#384) 2019-10-15 17:06:19 +02:00
Marcin Puc ee3c7ff9c7 Add support for FlatBuffers (#362) 2019-10-09 18:14:11 +02:00
Jacob Haig 8500cbaf4d 63: Add test for YAML files (#364)
* 63: Add test for YAML files

* change manually checked analysis to correct syntax
2019-10-02 16:57:46 +02:00
Kai Wells cdec6efe5e 63: Add basic test for Go language (#355) 2019-08-29 10:01:46 +02:00
David Tolnay d8888438f8 Add thrift language (#358) 2019-08-29 10:01:03 +02:00
Max Cohn ca5c141d4b Added tests for C and SQL (#353) 2019-08-05 09:02:40 +02:00
Jason Shirk b36284f9e1 Add PowerShell support (#346)
Resolves #339
2019-07-06 10:36:55 +02:00
Korny Sietsma afcaf0418f Added config so "/usr/bin/env ruby" works (#344) 2019-06-25 13:29:54 +02:00
Erin Power b70450171d
Fixed parsing bug 2019-06-02 11:55:01 +02:00
Erin d9bfe81174
Added ASN.1 Support 2019-05-19 16:16:14 +02:00
Erin e10c19a53f
fixed postcss file 2019-05-06 19:41:58 +02:00
yjh b199b5b398 Add support for wasm, llvm ,postCSS, pest (#323)
* add support for wasm

* add test data for wasm

* add support for llvm

* add support for postCSS

* add support for pest

* refactor test data fmt

* rename wasm to webassembly

* update
2019-04-26 19:16:19 +02:00
alexmaco 06270d4254 add Pony support with test (#328) 2019-04-26 19:13:57 +02:00
evitalis b55653ba00 Add RPM specfile language (#327)
* Add RPM specfile language definition

* Correct syntax for hash inheritance

* Fix line count to avoid failed test
2019-04-14 17:54:54 +02:00
Jacob Pratt 8b16ce6cc6 Add PostCSS to languages (#325)
* Add PostCSS to languages

Resolves #314

* Add PostCSS test file
2019-04-03 09:36:02 +02:00
Jeff Smits e4f218cbb2 Add Stratego language, also known as Stratego/XT, strategoxt.org (#296) 2019-03-14 16:47:32 +01:00
Aaron Power 1035614b9a Added arguments to allow for disabling ignoring 2019-03-11 17:00:17 +01:00
Stefan Maric d46d511cd8 Add GraphQL support (#306)
* Add GraphQL support

* Fix line count on Graphql test file

* Add extra final new line to GraphQL test file

* Fix line counts on graphql test file

* Fix typo on graphql test file
2019-03-04 09:08:15 +01:00
Maximilian Goisser 41b120ad2d Add solidity support (#303) 2019-02-14 14:11:51 +01:00
Aaron Power 755070ee84 Implemented config files 2019-01-10 11:11:39 +01:00
n0m1s 62e000dec8 Add SWIG support (#285) 2019-01-03 10:23:12 +00:00
Alek Ratzloff 21f6fc0c11 Add language rules for Perl6 and its cousin Not Quite Perl (#274)
* Add Perl6 rule

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>

* Add Not Quite Perl rule

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>

* Add Perl6 test

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>

* Fix Perl6 test, oops

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>

* Add Not Quite Perl test

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2018-10-15 22:33:53 +01:00
Paulo Moura 9d8e28af51 Added support for Logtalk (#273) 2018-10-15 16:50:57 +01:00
Ahmed El Gabri 6f84d85ae8 Add twig support (#265) 2018-09-22 19:21:41 +01:00
Tom Richards b55687462b Liquid template language support (#260)
* Add liquid and liquid test file

* Fix test file
2018-09-07 08:38:34 +01:00
John Schmidt 82df93f866 Add support for edn (#239) 2018-07-16 11:34:51 +01:00
Pieter-Jan Briers 20414bccb5 Adds Dream Maker support. (#236)
"Dream Maker" is the language used by the 2000-era engine "BYOND":
https://secure.byond.com/

It's about as awful as the name implies.
2018-06-16 15:46:52 +01:00
Brandon Boone 14814526be Added VBScript Support (#234)
https://en.wikipedia.org/wiki/VBScript
2018-06-09 13:21:10 +01:00
Igor Alpert 6ec6a363a7 Add BrightScript language and test (#233) 2018-06-08 19:37:04 +01:00
Brandon Boone a1ed92df28 Added VB6 Support (#232)
* Added VB6 Support

https://en.wikipedia.org/wiki/Visual_Basic

* Added tests and removed frx

Removed frx: .frx is a compainon binary file to .frm (vb6 forms). It contains binary artifacts like images, but its format is proprietary.
2018-06-08 19:33:59 +01:00
Aaron Power 9d3103e3bb Updated to use fs::read 2018-05-12 10:35:23 +01:00
Khalid Jebbari 349fe2b585 Add support for ClojureC + tests for all Clojure (#224)
* Add cljc lang + first pass for testing all Clojure

* Fix the special comment in tests + Small precision in CONTRIBUTING
2018-04-26 16:34:47 +01:00
Mark Keisler 26663ac1ee add HCL/Terraform support (#222)
* add HCL/Terraform support

* update README with HCL language listed
2018-04-26 14:54:35 +01:00
Cyprien Le Pannérer eade044d53 Add xsl support (#214)
* add xsl support

* add tests for xsl

* Fix grammar and spelling (#217)

* update README.md with how install output features (#216)

Informs the user that additional dependencies must be installed to use the output features.

* Updated dependencies

* Removed CONTRIBUTORS.md, use GitHub to see contributors

* Removed logo

* Updated CI

* Update .travis.yml

* Add Racket to the supported languages. (#219)

* Add Racket to the supported languages.

* Changed Racket test to count s-expr comments as code.

* Add ReasonML (#213)

https://reasonml.github.io/
14fcd75773/lib/linguist/languages.yml (L3879)

* Cleaned up unused var and made crate version clearer.
2018-04-23 13:38:27 +01:00
Aaron Weiss e6617c1d78 Add Racket to the supported languages. (#219)
* Add Racket to the supported languages.

* Changed Racket test to count s-expr comments as code.
2018-04-18 18:08:01 +01:00
notramo 616b0ae984 Added Kakoune script. (#204)
* Added Kakoune script.
http://kakoune.org

* Added test for Kakoune script.
2018-03-20 14:25:17 +00:00
notramo dae2bcdfed Added Elvish shell. (#205)
* Added Elvish language.
https://elvish.io

* Added test for Elvish.
2018-03-20 14:24:52 +00:00
Marc Tiehuis 503f613edd Add support for zig (#202) 2018-03-07 10:24:59 +00:00
Steve Sprang fe4b8b3b37 Fix typos. Add Scheme. (#197)
* Fix typos in comments.

* Add Scheme.
2018-02-25 15:53:09 +00:00
Igor Gnatenko 01791bd793 add support for Meson (#169)
* add support for Meson

Fixes: https://github.com/Aaronepower/tokei/issues/168
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

* tests: add meson.build

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

* remove unused variable

warning: unused variable: `key`
  --> build.rs:31:10
   |
31 |     for (key, ref mut item) in json.get_mut("languages")
   |          ^^^
   |
   = note: #[warn(unused_variables)] on by default
   = note: to avoid this warning, consider using `_key` instead

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-01-27 16:47:52 +00:00
Ty Overby 86ffefd259 Add the visual basic and msbuild language (#146)
* add visual basic

* add msbuild language definitions

* Update names for Visual Basic and MSBuild

* Fix json
2017-11-01 10:20:07 +00:00
Kaushal Modi b5e415d6e2 Add support for .el, .ede, .org and .srt files (#151) 2017-10-30 14:42:51 +00:00
francesco-dipi 5726c46efd Add Xtend support (#155)
* Add Xtend support

* Add test for xtend files

* Fix typo in test files
2017-10-30 14:42:10 +00:00