Commit graph

101 commits

Author SHA1 Message Date
Aaron Power 913752de0c Switched to using ignore, more parallelisation 2016-11-27 15:57:22 +00:00
Aaronepower a72121f67b Added heuristics 2016-11-26 16:33:28 +00:00
Łukasz Jan Niemier 04f6e1e3e4 Add Elixir support (#78) 2016-11-26 15:36:15 +00:00
Michael Bryan ed4f89816d Exit gracefully instead of panicking when using a feature that isn't compiled in (#77)
* fix: Exit gracefully instead of panicking when trying to use features

* removed an unnecessary empty line

* Added logging of any errors encountered writing to stderr.
2016-11-26 14:19:52 +00:00
Mack Stump 24fec6788f Only add regular files to path list (#75)
* only add regular files to path list

This fixes multiple issues. Before this commit, a directory with
a known file extension in its name would be added to the list of
"files" to open and read from. Another issue occurred with broken
symbolic links being added to the files list.

* add test to ensure directories not treated as file

* replace `unwrap()` with `rs_error!`
2016-11-15 22:09:10 +00:00
Aaronepower 5fab02a76d Simplified language definitions. 2016-10-27 00:55:22 +01:00
not-fl3 94ac1f6f2c Added support for elm (#71) 2016-10-15 16:32:35 +00:00
Sven-Hendrik Haase d98133347e Added GLSL support (#72) 2016-10-15 15:47:59 +00:00
Gabriel Ebner 9faa8d4210 Add support for lean, and fixed single comment regression (#70)
* Add Lean

* Handle single-line comments inside multi-line ones.
2016-09-29 23:42:31 +01:00
Aaron Power 5ced28ab86 fixed regression where lines and files weren't being sorted 2016-09-26 14:57:25 +01:00
llogiq 2fffe17787 pulled two if statements together and removed one needless reference (#69) 2016-09-22 18:59:13 +01:00
Xavier Payn 0b7a2493b6 add .pm to Perl extensions (#66) 2016-09-21 10:18:52 +01:00
Corentin Henry c9ca419b71 support tcl (#64) 2016-09-21 01:44:07 +01:00
Aaronepower 1839132aa5 Changed logging behaviour based on feedback. 2016-09-20 22:26:25 +01:00
Aaronepower 2e5c46d71a Enabled logging, using log & env_logger. Fixes #54 2016-09-20 21:49:47 +01:00
Aaronepower 9ec7499a2d Added encoding dependency, so now tokei can handle all files that encoding supports, fixes #53 2016-09-17 22:45:37 +01:00
Matthew Williamson 3f5fb6ca11 Fixes issue #52 (#61)
Modification on comments:
Batch - Add ::
Lisp - Comments can be nested (www.rosettacode.org/wiki/Comments#Common_Lisp)
Python - Reverted to hash, based on comment thread from pull #59 as
string has a return value

Changes to the quotes
Assembly - Uses ' ' or " "
Bash - Uses ' ' or " "
Batch - They don't use quotes for strings
Cold Fusion - Uses ' ' or " "
D - Uses " " or
Dart - Uses " " or ' ' or """ """ or ''' '''
Forth - Uses " " but new, doesn't have a preset
Fortrans - Use " " or ' '
Idris - Uses " " or """ """
Julia - Uses " " or """ """
Kotlin - Uses " " or """ """
Moustache - Uses " " or ' '
Nim - Uses " " or """ """
Pascal - Uses ' '
Perl - Uses " " or ' '
Php - Uses " " or ' '
Python - Uses " " or ' ' or """ """ or ''' '''
Ruby - Uses " " or ' '
Sass - Uses " " or ' '
Sql - Uses ' '
Toml - Uses " " or ' ' or """ """ or ''' '''
Typescript - Uses " " or ' ' or
Vimscript - Uses " " or ' '
Yaml - Uses " " or ' '
Zsh - Uses " " or ' '
2016-09-11 12:15:29 +01:00
Matthew Williamson d13af4d177 Made a series of modifications to the languages comments: (#59)
* Made a series of modifications to the comments:

	Clojure - Removed #
	Forth   - ( Comment) style comments need a space after the opening paren
	Haskell - Has nested comments
        Idris - Has nested comments
	Jai     - Has nested block comments
	Julia   - Has nested block comments
	Kotlin  - Has nested block comments
	Pascal  - Pascal should be multiline from { or (* to } or *)
	Perl    - Perl5 and earlier for multiline comments need =pod to =cut.
	Python  - Python can use """ or ''' for comments
	Swift   - Has nested block comments
2016-09-10 18:57:43 +01:00
Aaronepower 0da50fc544 fixes #58 2016-09-10 11:11:28 +01:00
Aaron Power dc1fe7bf1f Support lossy over strict utf8 2016-09-09 14:34:42 +01:00
Liigo Zhuang df2689a2d5 Avoid panicking on non-character-boundary inside string slice (#56)
Fixes #55
2016-09-09 07:38:59 +01:00
Aaronepower bfc80d5b69 fixed regression, moved to tempdir for testing. 2016-09-08 20:52:11 +01:00
Aaron Power e2b7328275 add hex ihex rst 2016-08-30 17:54:45 +01:00
Aaron Power 88bc1935c8 Added Asp, Asp.NET, Assmebly extension, Razor 2016-08-23 09:10:50 +01:00
Aaronepower 68c62f8dc2 4.2.0 fixes #51 2016-08-21 20:24:00 +01:00
Aaron Power e1a4529e2d Implmented stack based functionality 2016-08-16 17:35:22 +01:00
Aaronepower e2d3de4a2e half completed rework of handling multilines 2016-08-16 00:34:58 +01:00
Aaron Power d5fa7da937 Version 4.1.0 2016-08-08 09:18:32 +01:00
Aaronepower 87a7b44af5 Increased stack size for builds 2016-08-01 14:01:12 +01:00
Aaronepower 2d7829c956 fixed build issue on main 2016-08-01 12:48:46 +01:00
Aaronepower e4435402de Minimal version 2016-08-01 12:11:40 +01:00
Aaronepower b2790c4eee Weird trait problem 2016-08-01 09:53:09 +01:00
Aaronepower c0c916beab unfisnished move 2016-07-23 14:47:41 +01:00
Aaronepower bfbfaa60fc First draft 2016-07-17 22:17:49 +01:00
Aaronepower 4e671b5fa9 removed syntex used new serde build process 2016-06-12 18:27:05 +01:00
Aaronepower a2bf592ff6 version 3.0.1 updated dependencies 2016-06-12 15:27:32 +01:00
Aaronepower b46bf60ab8 Fixed tests 2016-06-10 22:33:27 +01:00
Aaronepower 9a3dbf1a4a added documentation 2016-06-09 15:35:11 +01:00
Aaronepower b48de870d6 removed print from language 2016-06-07 14:08:28 +01:00
Aaronepower 4f6cf406e7 forgot files 2016-06-07 12:09:38 +01:00
Aaronepower 1e6a4c1015 feature parity 2016-06-07 12:09:22 +01:00
Aaronepower 76be54b67d first attempt at moving stuff around 2016-06-01 15:08:36 +01:00
Aaronepower 5ecad644f4 Re ordering the files 2016-05-29 20:31:57 +01:00
Phlosioneer 33395b9c56 Fixed parameter count mismatch.
Tests weren't updated to include the correct number of parameters when has_trailing_comments was updated (c5750f9).
nested=true uses the original, pre-change codepath for the tests.
2016-05-26 14:08:22 -04:00
Aaronepower f65a8c9825 fixes #39 2016-05-22 19:47:17 +01:00
Aaronepower c5750f9911 fixed tests 2016-05-22 18:43:42 +01:00
Aaron Power 350cb5f30f 2.1.0 IO 2016-05-22 18:07:16 +01:00
Aaronepower bc83358d82 ICE error 2016-05-20 12:44:24 +01:00
Aaronepower 77c52b4aea fixed miscounting total files 2016-05-17 11:27:03 +01:00
Aaronepower a126328d2e Merge branch 'master' into io 2016-05-17 11:24:47 +01:00