Permalink
Commits on Apr 18, 2012
  1. Merge pull request #10 from raphink/master

    robinluckey committed Apr 18, 2012
    Add support for the Augeas language (based on Ocaml)
  2. Merge pull request #11 from raphink/tex

    robinluckey committed Apr 18, 2012
    Add sty and cls for LANG_TEX, add dtx and LANG_TEX_DTX
Commits on Apr 13, 2012
  1. Merge pull request #12 from blackducksw/libmagic

    amujumdar committed Apr 13, 2012
    Libmagic
Commits on Apr 12, 2012
  1. Add .cls to LANG_TEX

    raphink committed Apr 12, 2012
Commits on Apr 11, 2012
  1. Add dtx and sty for LANG_TEX

    raphink committed Apr 11, 2012
Commits on Apr 9, 2012
  1. Fixes recursion bug in disambiguate_in().

    robinluckey committed Apr 9, 2012
    The basic strategy of disambiguate_in() is to strip the trailing *.in
    extension from the filepath, and then to disambiguate the file as if it
    originally had that name. Thus, given file "foo.in", disambiguate_in()
    will disambiguate "foo".
    
    disambiguate_in() achieves this while re-using the exact same file on
    disk. This is possible because a SourceFile struct has both a `filepath`
    (the name we use for disambiguation purposes) and the `diskpath` (the
    actual name on disk).
    
    So disambiguate_in() instantiates a new SourceFile with a stripped
    filepath, yet the same diskpath and same file contents.
    
    The bug is that the code did this incorrectly: when assigning the
    diskpath of the new SourceFile, it would mistakenly assign it the
    previous SourceFile's *filepath* instead of the previous SourceFile's
    diskpath.
    
    If disambiguate_in() runs just once (when the file has just a single
    *.in extension, the usual case), this mistake does not matter because
    the filepath and diskpath are the same.
    
    But if disambiguate_in() recurses on itself (when the file has multiple
    *.in.in extensions), then during the second pass the filepath and
    diskpath will not be equal -- they will differ by one missing *.in
    extension. Thus the diskpath of the new SourceFile will refer to a
    (probably) non-existent file.
    
    The bug is hard to explain but was simple to correct.
    
    In addition to correcting the diskpath assignment, I've fixed a memory
    leak: it was possible to allocate a new SourceFile, and then immediately
    return NULL, which fails to free the SourceFile. I've moved the
    allocation *after* the NULL return check to avoid this.
Commits on Mar 8, 2012
Commits on Mar 6, 2012
  1. Merge pull request #11 from dcsobral/forth

    robinluckey committed Mar 6, 2012
    Initial support for Forth
  2. Merge pull request #9 from haraldkl/master

    robinluckey committed Mar 6, 2012
    Fixing Bug in Fortran disambiguation
Commits on Feb 23, 2012
  1. Initial support for Forth

    dcsobral committed Feb 23, 2012
    This is based on the Scala parser, which is actually quite
    incorrect -- assumes existence of single-quote strings (which
    will cause problem on any file with symbols), doesn't know
    multiline strings, doesn't handle nested comments: all of which
    made it a pretty good starting point for Forth.
    
    Parsing Forth is impossible, but this will recognize comments,
    strings and blank lines on most projects. Tested against FreeBSD
    source.
Commits on Feb 13, 2012
  1. Merge pull request #10 from blackducksw/OTWO-1300

    amujumdar committed Feb 13, 2012
    OTWO-1300 Improves *.pl disambiguation to ignore smileys :-)
Commits on Feb 8, 2012
  1. OTWO-1300 Improves *.pl disambiguation to ignore smileys :-)

    robinluckey committed Feb 8, 2012
    Smiley faces in Perl strings and comments look similar to Prolog
    rule syntax. This patch makes two improvements:
    
     - Better detection of perl shebangs (#!%PERL% now recognized)
     - A prolog ':-' token must be followed by a space or a newline
Commits on Jan 3, 2012
  1. Changed the logic to disambiguate free and fixed formatted Fortran

    haraldkl committed Jan 3, 2012
    Test the assumption of a fixed format code and indicate free
    format, as soon as any line breaks this assumption.
    (It is easier to check for fixed form constraints)
    Rules for fixed format are taken from the standard, see
    ftp://ftp.nag.co.uk/sc22wg5/N1801-N1850/N1830.pdf p. 47.
Commits on Jan 2, 2012
Commits on Dec 31, 2011
  1. Return free format in the Fortran disambiguation,

    haraldkl committed Dec 31, 2011
    if the code is definetly not fixed.
Commits on Dec 22, 2011
Commits on Dec 21, 2011
Commits on Dec 16, 2011
  1. Adds additional comment styles for MS-DOS batch files

    robinluckey committed Dec 16, 2011
    In addition to 'REM', we now accept '@REM' and '::'.
    
    Note that test/expected_dir/bat1.bat should be tab-delimited (not
    space-delimited), so this patch also corrects that.
Commits on Dec 15, 2011
  1. Fixes crash in disambiguate_r() when source file is empty

    robinluckey committed Dec 15, 2011
    Thanks to ehsan for discovering this bug.
  2. Merge pull request #6 from cmarcelo/qml

    robinluckey committed Dec 15, 2011
    Add support for Qt's QML language
  3. Merge pull request #5 from koraktor/ruby

    robinluckey committed Dec 15, 2011
    Added more filenames and extensions for Ruby
  4. Merge pull request #4 from koraktor/mustache

    robinluckey committed Dec 15, 2011
    Treat Mustache templates as HTML
Commits on Oct 22, 2011
  1. Add support for Qt's QML language

    cmarcelo committed Oct 22, 2011
    Reusing the JS parser, since QML is 'almost' JavaScript. The
    approximation is good enough for the line counting purposes.
Commits on Aug 29, 2011