Permalink
Commits on Nov 6, 2017
  1. Merge pull request #56 from dlech/typescript

    notalex committed Nov 6, 2017
    Add support for TypeScript language
Commits on Nov 2, 2017
Commits on Oct 20, 2017
  1. Add support for TypeScript language

    dlech committed Oct 20, 2017
    http://www.typescriptlang.org/
    
    TypeScript is basically a derivitave of JavaScript, so using the existing JavaScript parser to parse TypeScript files.
Commits on Sep 13, 2017
  1. Merge pull request #55 from blackducksoftware/OTWO-4920

    notalex committed Sep 13, 2017
    OTWO-4920 Add tests for puppet parsing changes in a4748c7
Commits on Sep 11, 2017
  1. OTWO-4920 Add tests for puppet parsing changes in a4748c7

    notalex committed Sep 11, 2017
  2. Merge pull request #42 from raphink/dev/pp_disambiguation

    notalex committed Sep 11, 2017
    Try harder to disambiguate Puppet from Pascal
Commits on Aug 22, 2017
  1. Merge pull request #51 from blackducksoftware/johnkeeping-fix-shell

    drubio1989 committed Aug 22, 2017
    Johnkeeping fix shell
Commits on Aug 10, 2017
  1. Merge branch 'fix-shell' of https://github.com/johnkeeping/ohcount in…

    drubio1989 committed Aug 10, 2017
    …to johnkeeping-fix-shell
Commits on Aug 8, 2017
Commits on Aug 1, 2017
  1. Merge pull request #50 from blackducksoftware/OTWO-3080

    notalex committed Aug 1, 2017
    Add support for AMPL language
Commits on Jul 19, 2017
  1. OTWO-3080 Fix ampl comment parsing

    notalex committed Jul 19, 2017
    The existing parser counts multiline ampl comments as code.
    Added parser tests.
Commits on Jul 6, 2017
Commits on Jul 3, 2017
  1. Merge pull request #49 from blackducksoftware/OTWO-3061

    notalex committed Jul 3, 2017
    Fix mathematica comment parsing
Commits on Jun 29, 2017
  1. OTWO-3061 Detect alternate mathematica extensions

    notalex committed Jun 29, 2017
Commits on Jun 28, 2017
  1. OTWO-3061 Octave comments nested within mathematica

    notalex committed Jun 28, 2017
    When octave comments were nested within mathematica comments, the parser
    incorrectly detected the file as Octave. To fix this we moved around an
    If/Else block which placed mathematica at the bottom of the conditional.
    We have also tried adding mathematica comments within Octave comments to
    see if the reverse was true. We found that Octave parsing worked
    correctly without any further change in code.
  2. OTWO-3061 Fix mathematica comment parsing

    notalex committed Jun 28, 2017
    The original code in PR#23 did not consider multiline comments. We
    compared and copied the code from OCaml parser which has a similar
    comment structure and it worked.
    The existing test files in test/expected_dir & test/src_dir needed
    fixing for some mismatch in whitespace characters and expected lines.
  3. Merge pull request #23 from eschnett/master

    notalex committed Jun 28, 2017
    Add support for new language Mathematica
Commits on Jun 21, 2017
  1. Merge pull request #48 from blackducksoftware/OTWO-3077

    notalex committed Jun 21, 2017
    Expand Grace lang test cases
  2. OTWO-3077 Expand Grace lang test cases

    notalex committed Jun 21, 2017
  3. Merge pull request #25 from mwh/master

    notalex committed Jun 21, 2017
    Add Grace language
Commits on Jun 20, 2017
  1. Merge pull request #47 from blackducksoftware/OTWO-3061

    notalex committed Jun 20, 2017
    Fix incorrect comment pattern for objective_c detection
  2. Fix incorrect comment pattern for objective_c detection

    notalex committed Jun 20, 2017
    Objective_c comments always start with a /. The existing code matches
    the * character in the second column of a line to decide that a file is
    objective_c. This leads it to detect mathematica comments "(*" as
    objective_c comments.
Commits on Feb 25, 2015
  1. Try harder to disambiuate Puppet from Pascal

    raphink committed Feb 25, 2015
    These two constructs are considered Puppet code:
    
        class <word> (
    
    and
    
        include <word>
Commits on Aug 14, 2014
  1. Merge pull request #41 from blackducksw/ubuntu_14

    PDegenPortnoy committed Aug 14, 2014
    Update Ohcount to work with Ubuntu 14
Commits on Aug 6, 2014
  1. Update Ohcount to work with Ubuntu 14

    PDegenPortnoy committed Aug 6, 2014
    The most significant change is that the perl script
    that generates HTML, especially with the "<!DOCTYPE html" heading,
    is now identified as HTML.  This is due to differences in the
    libmagic database between CentOS 5 and Ubuntu 14.
    
    It may be possible to generate a different database, or modify the
    existing database to change the identification order.  However,
    it is also worth acknowledging that, in the years since this code
    was first developed, it may be more correct to recognize a script
    that generates a complete HTML document as 'HTML', even if that
    script is written in something like perl.
Commits on Apr 22, 2014
  1. Merge pull request #27 from nnsathish/master

    PDegenPortnoy committed Apr 22, 2014
    Upgrade Ohcount to support ruby 1.9.x
Commits on Dec 30, 2013
Commits on Dec 27, 2013
  1. shell: Fix identification following escaped newlines

    johnkeeping committed Dec 27, 2013
    When a string contains an escaped newline, the internal state gets
    out-of-sync with the source, leading to comments being incorrectly
    identified as code.
    
    Handle '\\' + newline specially in order to account for this.
Commits on Dec 20, 2013
  1. Merge pull request #30 from chris-morgan/rust

    amujumdar committed Dec 20, 2013
    Add support for Rust
Commits on Dec 18, 2013
Commits on Dec 13, 2013
  1. Disambiguate RenderScript .rs files from Rust.

    chris-morgan committed Dec 13, 2013
    RenderScript isn't implemented, so if a file matches the RenderScript
    detection it is just left as undetected.
Commits on Dec 11, 2013
  1. OTWO-2506 Update lang detector to prefer extension over emacs mode line

    nnsathish committed Dec 11, 2013
    File extensions seems more reliable than emac line,
    as a javascript file can have a java emac mode.
Commits on Nov 15, 2013