Commit graph

1011 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
Aaron Power
8f028b7aac updated docs link to docs.rs 2016-10-27 11:59:56 +01:00
Aaronepower
9699db777e Version bump 2016-10-27 00:56:18 +01:00
Aaronepower
5fab02a76d Simplified language definitions. 2016-10-27 00:55:22 +01:00
Liigo Zhuang
f0287837b3 Added long verbose arg name (#74) 2016-10-21 19:56:33 +00: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
Aaron Power
86c4517977 Update CHANGELOG.md 2016-09-20 23:20:42 +01:00
Aaron Power
f73091587b Update README.md 2016-09-20 23:15:47 +01:00
Aaronepower
3c3da8f8f3 fixed typo in cargo.toml 2016-09-20 22:59:45 +01:00
Aaronepower
073c64fc72 updated cargo.lock 2016-09-20 22:57:35 +01:00
Aaron Power
4541d2f394 Version bump, and updated changelog 2016-09-20 22:57:34 +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
5f86629e17 fixes #57 2016-09-10 11:15:49 +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
704e47a01a updated changelog 2016-08-21 20:45:13 +01:00
Aaronepower
2b75021a8d Merge branch 'tune-up' 2016-08-21 20:29:44 +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
Aaronepower
c52597c806 version bump, speed increase 2016-08-16 00:29:52 +01:00
Aaron Power
d5fa7da937 Version 4.1.0 2016-08-08 09:18:32 +01:00
Aaron Power
e44a0c7ce7 Merge pull request #49 from acdha/patch-1
Document that `--exclude` accepts a list of values
2016-08-01 19:25:43 +01:00
Aaronepower
a266e6e7da changed to toml on crates.io 2016-08-01 18:06:01 +01:00
Aaronepower
87a7b44af5 Increased stack size for builds 2016-08-01 14:01:12 +01:00
Aaronepower
62853f7840 fixed travis 2016-08-01 13:39:03 +01:00
Aaronepower
2d7829c956 fixed build issue on main 2016-08-01 12:48:46 +01:00
Aaronepower
0f44c5b291 4.0.0 2016-08-01 12:22:53 +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