Commit graph

143 commits

Author SHA1 Message Date
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 d7c548537c
Unify format (#631)
* format file

* retab (convert tabs to spaces)
2020-09-29 09:28:59 +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
Erin Power 7272d67ae1 Enabled support for svelte, vue, rubyhtml and fixed edge case 2020-06-22 10:02:15 +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
Arie van Luttikhuizen bf1bc3b1c6
Remove duplicate keys from languages.json (#561) 2020-06-15 21:08:28 +02:00
Erin Power 9068a72622 Implement literate languages and context parsing for markdown 2020-06-14 10:46:56 +02:00
yuki yano c9949fe10f
Fixed the language name Vim Script to Vim script (#555) 2020-06-11 04:57:18 +02:00
Erin Power c6ef1d9988 Refactor parse_lines, add literate support and continue working on contexts 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 733bc1ff05 Add initial context to json and stats 2020-05-30 14:02:33 +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
人造电子小猫咪 223813a43c
Add .csx extension for C# (#538)
`.csx` is used by [dotnet script](https://github.com/filipw/dotnet-script) for C# scripting.
2020-05-20 16:21:25 +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
Alexandru Macovei e554b3cb89
Add shebang and env for crystal scripts (#533) 2020-05-18 09:02:31 +02:00
XAMPPRocky 72dc3ffba9
Display Perl6 as Rakudo 2020-05-08 16:19:47 +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
Erin Power d86048001a Fix Rust quotes
fixes #514
2020-05-06 10:31:04 +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
XAMPPRocky 38f4727f07
Add single quotes syntax to Rust.
fixes #482
2020-03-29 09:56:33 +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
solanav 5cf5bd235b
Fix shebang language detection (#471)
* Add property shebang_paths to languages.json

* Fix shebang detection bug

* Add from_file_extension and from_shebang_path to language detection

* Fix shebang function names and OR matching in hbs

* Small clarity fix

* Fix shebang env detection and from_shebang documentation

* Change from_shebang argument to be generic
2020-03-23 10:25:00 +01:00
Erin Power 12e47836b1 Remove base property, use AhoCorasick for searching 2020-03-18 05:55:54 +01:00
Erin Power f356d27ab2 Format JSON 2020-03-18 04:11:46 +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