Fedor Korsakov [Fri, 15 Aug 2008 08:38:37 +0000 (03:38 -0500)]
Merge branch 'master' of git://github.com/mitchell/ohcount
Fedor Korsakov [Fri, 15 Aug 2008 08:37:26 +0000 (03:37 -0500)]
Haml support
Fedor Korsakov [Tue, 12 Aug 2008 01:47:12 +0000 (20:47 -0500)]
Updated Haml parser to recognize embedded Ruby, xhtml tag modifiers still need development.
mitchell [Fri, 8 Aug 2008 15:26:40 +0000 (11:26 -0400)]
Fixed important typo in PARSER_DOC.
Robin Luckey [Thu, 7 Aug 2008 22:08:17 +0000 (15:08 -0700)]
[CHANGE] Cut the feature to remove trailing punctuation from comments, since it can lead to runaway regex CPU churn
Robin Luckey [Thu, 7 Aug 2008 21:53:45 +0000 (14:53 -0700)]
[FIX] Forgotten files
Robin Luckey [Thu, 7 Aug 2008 21:53:14 +0000 (14:53 -0700)]
[FIX] More flexible detection of gpl3_or_later
Fedor Korsakov [Mon, 4 Aug 2008 11:07:14 +0000 (06:07 -0500)]
Partial Haml support with Ruby block detection.
Robin Luckey [Tue, 29 Jul 2008 16:57:18 +0000 (09:57 -0700)]
Merge git://github.com/korsakov/ohcount
mitchell [Tue, 29 Jul 2008 06:05:35 +0000 (02:05 -0400)]
Merge branch 'master' of git://github.com/korsakov/ohcount
Fedor Korsakov [Mon, 28 Jul 2008 15:19:05 +0000 (10:19 -0500)]
Support for Stratego.
mitchell [Mon, 21 Jul 2008 18:42:42 +0000 (14:42 -0400)]
Added unit tests for parent parsers.
mitchell [Sat, 19 Jul 2008 05:30:43 +0000 (01:30 -0400)]
Added embedded language entities to the rest of the parent parsers.
mitchell [Fri, 18 Jul 2008 22:33:07 +0000 (18:33 -0400)]
Added CSS, Javascript, and PHP entity parsing to phphtml parser.
Robin Luckey [Fri, 18 Jul 2008 22:24:57 +0000 (15:24 -0700)]
[BUG] This snapshot does not pass the rake! The php entity parser is not implemented; license parsing breaks for php.
[NEW] Add unit tests for license detection with line breaks.
Robin Luckey [Fri, 18 Jul 2008 21:00:29 +0000 (14:00 -0700)]
[FIX] Change load priority of libs -- local code first, gem second.
mitchell [Fri, 18 Jul 2008 20:40:12 +0000 (16:40 -0400)]
Merged ohcount changes that were overwritten by accident.
mitchell [Fri, 18 Jul 2008 20:34:41 +0000 (16:34 -0400)]
Ignore punctuation for comments in license detection.
mitchell [Fri, 18 Jul 2008 20:34:01 +0000 (16:34 -0400)]
Merge branch 'master' of git://github.com/robinluckey/ohcount
Fedor Korsakov [Fri, 18 Jul 2008 01:29:59 +0000 (20:29 -0500)]
Merge branch 'master' of git://github.com/mitchell/ohcount
Robin Luckey [Thu, 17 Jul 2008 20:46:48 +0000 (13:46 -0700)]
[FIX] Gem fixes: Add lib/license to the gem, also fix ticket #229.
There's still some trouble with RDoc in the gem install.
mitchell [Thu, 17 Jul 2008 19:50:02 +0000 (15:50 -0400)]
Added unit tests for partial entity parsers.
mitchell [Thu, 17 Jul 2008 19:46:08 +0000 (15:46 -0400)]
Added extra block comment to SQL parser's entity parser.
mitchell [Thu, 17 Jul 2008 19:45:36 +0000 (15:45 -0400)]
Added partial entity parser for Ruby.
mitchell [Thu, 17 Jul 2008 19:45:06 +0000 (15:45 -0400)]
Fixed Perl parser's entity parser.
mitchell [Thu, 17 Jul 2008 19:44:44 +0000 (15:44 -0400)]
Fixed Haskell parser's entity parser.
mitchell [Thu, 17 Jul 2008 19:44:10 +0000 (15:44 -0400)]
Fixed Actionscript parser's entity parser.
Robin Luckey [Thu, 17 Jul 2008 19:01:25 +0000 (12:01 -0700)]
[FIX] Improved apache_2 recognition -- may or may not include "Version" before "2.0"
mitchell [Thu, 17 Jul 2008 05:51:40 +0000 (01:51 -0400)]
Added partial entity parsers to all lexers; updated ohcount -l to use.
More specifically, added comment entities to all languages so ohcount's license
sniffer now uses parse_entities() and looks for :comment entities to build a
comment string for the buffer.
Robin Luckey [Mon, 14 Jul 2008 20:15:38 +0000 (13:15 -0700)]
[CHANGE] Simplify bin/ohcount -l output for easier post-processing
Robin Luckey [Mon, 14 Jul 2008 19:59:32 +0000 (12:59 -0700)]
[NEW] Add LGPL3 to the license_map
Fedor Korsakov [Fri, 11 Jul 2008 09:01:08 +0000 (04:01 -0500)]
Additional test cases for Lisp.
Fedor Korsakov [Fri, 11 Jul 2008 08:54:09 +0000 (03:54 -0500)]
Merge branch 'master' of git://labs.ohloh.net/git/ohcount
Fedor Korsakov [Fri, 11 Jul 2008 08:49:12 +0000 (03:49 -0500)]
[FIX] Added docstring support to Lisp.
Daniel Luz [Thu, 10 Jul 2008 22:55:21 +0000 (19:55 -0300)]
Merge branch 'master' of git://labs.ohloh.net/git/ohcount
Daniel Luz [Thu, 10 Jul 2008 06:15:53 +0000 (03:15 -0300)]
Allocate space for the null terminators on LanguageBreakdown
Robin Luckey [Wed, 9 Jul 2008 21:31:35 +0000 (14:31 -0700)]
Merge git://github.com/mitchell/ohcount
mitchell [Wed, 9 Jul 2008 21:22:08 +0000 (17:22 -0400)]
Possible fix for the "random" memory free errors.
Robin Luckey [Wed, 9 Jul 2008 21:09:08 +0000 (14:09 -0700)]
Merge git://github.com/mitchell/ohcount
mitchell [Wed, 9 Jul 2008 21:09:04 +0000 (17:09 -0400)]
Removed unnecessary ()'s in xml parser.
mitchell [Wed, 9 Jul 2008 21:07:23 +0000 (17:07 -0400)]
String escapes aren't allowed in XML; use ", ', etc.
Robin Luckey [Wed, 9 Jul 2008 21:06:03 +0000 (14:06 -0700)]
Merge git://github.com/mitchell/ohcount
Alfredo Beaumont [Wed, 9 Jul 2008 18:46:10 +0000 (20:46 +0200)]
Testsuite for factor programming language
Alfredo Beaumont [Wed, 9 Jul 2008 18:20:06 +0000 (20:20 +0200)]
Support for Factor programming language factorcode.org
mitchell [Wed, 9 Jul 2008 03:07:11 +0000 (23:07 -0400)]
Merge branch 'master' of git://github.com/robinluckey/ohcount
Jason Allen [Wed, 9 Jul 2008 01:29:37 +0000 (18:29 -0700)]
[FIX] Added a OHCOUNT_ROOT global so that included libs always work. We can now run tests just by calling 'ruby test/unit/xxx.rb'
[FIX] Added an exception to be thrown on Ohcount::parse if the polyglot passed is nil
[NEW] Ported the ohloh LicenseSniffer to ohcount. Made it easy to add/edit test files.
Robin Luckey [Mon, 7 Jul 2008 21:23:40 +0000 (14:23 -0700)]
[CHANGE] Bumping version number to 2.0.0
mitchell [Mon, 7 Jul 2008 19:41:08 +0000 (15:41 -0400)]
XML and friends shouldn't have multiline strings (like HTML).
Robin Luckey [Thu, 3 Jul 2008 21:15:16 +0000 (14:15 -0700)]
[FIX] Clean up .gitignores
Robin Luckey [Thu, 3 Jul 2008 20:48:03 +0000 (13:48 -0700)]
[FIX] 'objective c' parser name should be 'objective_c' to match sloc_info table
Robin Luckey [Tue, 1 Jul 2008 17:48:37 +0000 (10:48 -0700)]
[FIX] Whitespace cleanup
Fedor Korsakov [Tue, 1 Jul 2008 03:16:54 +0000 (22:16 -0500)]
Removed partial Haml support.
Fedor Korsakov [Mon, 30 Jun 2008 09:18:05 +0000 (04:18 -0500)]
Merged with Mitchell's branch and resolved conflicts. Haml support remains rudimentary.
mitchell [Fri, 27 Jun 2008 00:03:38 +0000 (20:03 -0400)]
Include stdlib to remove language_breakdown.c warnings.
Robin Luckey [Thu, 26 Jun 2008 23:52:28 +0000 (16:52 -0700)]
Merge from Ohcount main line
Conflicts:
ext/ohcount_native/generator.rb
test/unit/vhdl_test.rb
Robin Luckey [Thu, 26 Jun 2008 23:46:35 +0000 (16:46 -0700)]
[FIX] increase MAX_LANGUAGE_NAME
mitchell [Thu, 26 Jun 2008 22:37:23 +0000 (18:37 -0400)]
Deleted the code the new Ragel parser obsoletes.
Robin Luckey [Thu, 26 Jun 2008 21:24:31 +0000 (14:24 -0700)]
[FIX] bin/ohcount incorrectly output nothing at all in the case where comment % causes div/0
mitchell [Tue, 24 Jun 2008 19:20:40 +0000 (15:20 -0400)]
Ignore switches to executables in detector.rb.
e.g. 'a /usr/bin/perl -w script text executable'.
mitchell [Tue, 24 Jun 2008 05:38:48 +0000 (01:38 -0400)]
Check for buffer overflow before writing to lb so there's no segfaulting.
For now I'm ceasing callbacks when buffer overflows occur. In the future I'll
probably add a Ruby exception that will be thrown and can be caught to notify
the user of the file that wasn't parsed correctly.
mitchell [Mon, 23 Jun 2008 20:08:01 +0000 (16:08 -0400)]
Added enqueue..commit to lua.rl's longstrings.
mitchell [Mon, 23 Jun 2008 20:03:45 +0000 (16:03 -0400)]
Fixed parsers that could succomb to segfaulting.
It happens for parsers can cannot detect all language entities yet such as
HEREDOCs, or ones that have complicated entities.
I've ignored the other parsers that cover all of their language entities because
ohcount will only parser syntactically correct code.
mitchell [Mon, 23 Jun 2008 19:13:26 +0000 (15:13 -0400)]
Fixed another segfault; renamed 'queue' action to 'enqueue'.
mitchell [Sat, 21 Jun 2008 21:58:42 +0000 (17:58 -0400)]
Ruby.rl's regexen can of course include tabs and spaces.
mitchell [Sat, 21 Jun 2008 21:54:18 +0000 (17:54 -0400)]
Fixed issue with Ragel executing actions in real time; fixed some parsers.
Added a queue for callbacks in entities that span multiple lines and may not
have end delimitters. Ragel will backtrack if the complete match fails, so if
it's the case, the false callbacks will not be called. If the end delimitter is
reached, callbacks in the queue are committed and executed.
Samuel Bronson [Fri, 20 Jun 2008 23:26:14 +0000 (19:26 -0400)]
Fix indentation in Ada unit test
Samuel Bronson [Fri, 20 Jun 2008 22:59:41 +0000 (18:59 -0400)]
Update .gitignore
For some reason my ohcount_native.so is in lib/i486-linux/, and I didn't
like those *_parser.h files cluttering my "unstaged changes" pane.
Robin Luckey [Fri, 20 Jun 2008 21:18:10 +0000 (14:18 -0700)]
[CHANGE] Remove the verbose output from the unit tests.
Robin Luckey [Fri, 20 Jun 2008 21:16:45 +0000 (14:16 -0700)]
[CHANGE] 'configure' files are now considered autoconf, not shell
fperrad [Fri, 6 Jun 2008 07:00:00 +0000 (00:00 -0700)]
Add extension for Perl6
mitchell [Fri, 20 Jun 2008 20:28:12 +0000 (16:28 -0400)]
Added "padding" to fix some of the memory freeing crashes as in parser.c.
mitchell [Mon, 16 Jun 2008 18:26:53 +0000 (14:26 -0400)]
Fixed REXX parser to include nested block comments.
mitchell [Thu, 12 Jun 2008 18:15:47 +0000 (14:15 -0400)]
Added raw entity flag to Ohcount for debugging purposes.
mitchell [Thu, 12 Jun 2008 18:12:18 +0000 (14:12 -0400)]
Ohcount -e flag does a bit better than dumping entities to screen.
It now counts entity occurances for each language and puts them in a hash for
printing.
mitchell [Thu, 12 Jun 2008 17:36:43 +0000 (13:36 -0400)]
Integrated entity parsing into Ohcount.
See the documentation for Ohcount::parse_entities.
mitchell [Thu, 12 Jun 2008 17:33:41 +0000 (13:33 -0400)]
Fixed issue in c.rl's entity parsing machine.
mitchell [Tue, 10 Jun 2008 17:20:37 +0000 (13:20 -0400)]
Fixed typos in parsers as per the typo in PARSER_DOC.
mitchell [Tue, 10 Jun 2008 17:19:50 +0000 (13:19 -0400)]
More descriptive invalid polyglot error message.
mitchell [Tue, 10 Jun 2008 17:09:08 +0000 (13:09 -0400)]
Fixed important typo in PARSER_DOC. Please see revision.
mitchell [Tue, 10 Jun 2008 16:41:51 +0000 (12:41 -0400)]
Added Lua entity machine.
mitchell [Wed, 4 Jun 2008 21:31:52 +0000 (17:31 -0400)]
Removed printf statement for debugging in ragel_parser.c.
mitchell [Wed, 4 Jun 2008 21:12:45 +0000 (17:12 -0400)]
Added Perl parser.
mitchell [Wed, 4 Jun 2008 20:15:36 +0000 (16:15 -0400)]
Updated PHP unit tests and added PHP parser.
mitchell [Wed, 4 Jun 2008 20:04:58 +0000 (16:04 -0400)]
Updated Boo parser to better distinguish between '"' and '"""'.
mitchell [Wed, 4 Jun 2008 20:04:37 +0000 (16:04 -0400)]
Updated Python unit tests and added Python parser.
mitchell [Wed, 4 Jun 2008 18:59:04 +0000 (14:59 -0400)]
Added XMLSchema unit tests.
mitchell [Wed, 4 Jun 2008 18:45:55 +0000 (14:45 -0400)]
Fixed MATLAB parser and unit tests to include GNU Octave comments.
mitchell [Wed, 4 Jun 2008 18:40:55 +0000 (14:40 -0400)]
Added support for VHDL and accompanying unit tests.
For some reason a VHDL patch that was submitted is not in Robin's repos. I had
already written my unit tests so Robin can merge the two later if necessary.
mitchell [Wed, 4 Jun 2008 18:11:22 +0000 (14:11 -0400)]
Added Scheme unit tests.
mitchell [Wed, 4 Jun 2008 17:58:23 +0000 (13:58 -0400)]
Added Erlang parser.
mitchell [Wed, 4 Jun 2008 17:48:36 +0000 (13:48 -0400)]
Removed Scheme parser, moved it into Lisp parser.
mitchell [Wed, 4 Jun 2008 17:40:13 +0000 (13:40 -0400)]
Updated Boo unit tests and Boo parser.
mitchell [Wed, 4 Jun 2008 00:56:54 +0000 (20:56 -0400)]
Fixed ragel_parser.c and ragel_parser_macros.h to stop warnings on compile.
mitchell [Wed, 4 Jun 2008 00:25:30 +0000 (20:25 -0400)]
Forgot to comment out the parsers I haven't checked in yet (bad unit tests).
mitchell [Wed, 4 Jun 2008 00:24:25 +0000 (20:24 -0400)]
Alphabetized parsers in ragel_parser.c.
mitchell [Tue, 3 Jun 2008 23:57:40 +0000 (19:57 -0400)]
Added Metapost with Tex parser.
mitchell [Tue, 3 Jun 2008 23:57:17 +0000 (19:57 -0400)]
Fixed 'is_blank_entry' function in ragel_parser_macros.h.
mitchell [Tue, 3 Jun 2008 23:04:46 +0000 (19:04 -0400)]
Added Clearsilver and Clearsilver template parsers.
mitchell [Tue, 3 Jun 2008 22:34:50 +0000 (18:34 -0400)]
Updated MXML parser to use new embedded language parser techniques.
mitchell [Tue, 3 Jun 2008 22:31:10 +0000 (18:31 -0400)]
Added JSP parser.