#23 Support for Haskell

open
nobody
None
5
2004-01-04
2004-01-04
Peter Strand
No

This patch (against 5.5.2) adds support for haskell
(.hs) and literate haskell (.lhs) to ctags.

Discussion

  • Nick Treleaven
    Nick Treleaven
    2008-07-07

    Logged In: YES
    user_id=1268692
    Originator: NO

    Thanks for this patch. We're using it in Geany. We found a hang in inside_datatype() when reaching an unexpected EOF:

    Index: ctags/haskell.c

    --- ctags/haskell.c (working copy)
    +++ ctags/haskell.c (revision 2757)
    @@ -152,7 +152,7 @@
    return c;
    }
    }
    - } while (c != EOF && c != '=');
    + } while (c != '=');
    st = Find_Constr;
    }
    else if (st == Find_Constr)
    @@ -202,7 +202,7 @@
    st = Find_Bar;
    break;
    }
    - } while (c != EOF && c != ',');
    + } while (c != ',');
    }
    else if (st == Find_Bar)
    {

     
  • Nick Treleaven
    Nick Treleaven
    2008-07-07

    Logged In: YES
    user_id=1268692
    Originator: NO

    Sorry, that patch was the wrong way round!

    Index: ctags/haskell.c

    --- ctags/haskell.c (revision 2757)
    +++ ctags/haskell.c (working copy)
    @@ -152,7 +152,7 @@
    return c;
    }
    }
    - } while (c != '=');
    + } while (c != EOF && c != '=');
    st = Find_Constr;
    }
    else if (st == Find_Constr)
    @@ -202,7 +202,7 @@
    st = Find_Bar;
    break;
    }
    - } while (c != ',');
    + } while (c != EOF && c != ',');
    }
    else if (st == Find_Bar)
    {