Commit graph

114 commits

Author SHA1 Message Date
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