Added support for Objective Caml (OCaml) language, provided by Vincent Berthoux [Patch #2738723].

git-svn-id: svn://svn.code.sf.net/p/ctags/code/trunk@717 c5d04d22-be80-434c-894e-aa346cc9e8e8
This commit is contained in:
dhiebert 2009-07-07 03:40:50 +00:00
parent 1f1933c6b9
commit 4d5518856a
7 changed files with 1876 additions and 2 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
Current Version: @VERSION@
ctags-@VERSION@ (@DATE@)
* Removed ".ml" as a Lisp extension (now OCaml) [Lisp].
* Added support for Objective Camel (OCaml), provided by Vincent Berthoux [OCaml, Patch #2738723].
* Added support for Pyrex/Cython declarations [Python].
* Added support for "v" kind for variables [Python].
* Added support for new language: VHDL, contributed by Nicolas Vincent [VHDL, Bug #1943306].

26
Test/ocamlAllKinds.ml Normal file
View File

@ -0,0 +1,26 @@
module ModuleFoo = struct
type foobar =
ConstructorFoo
| ConstructorBar of int * char list
end
type 'a foorecord =
{ foofield : 'a;
barfield : int;
mutable foobarfield : list char -> int -> unit }
(* op redif *)
let (+-) a b =
let aplus = a + b
and aminus = a - b
in
(aplus, aminus)
let foo_function a b = (a, b)
class fooClass =
object (self)
val x = ()
method fooMethod = x
end

2
lisp.c
View File

@ -126,7 +126,7 @@ static void findLispTags (void)
extern parserDefinition* LispParser (void)
{
static const char *const extensions [] = {
"cl", "clisp", "el", "l", "lisp", "lsp", "ml", NULL
"cl", "clisp", "el", "l", "lisp", "lsp", NULL
};
parserDefinition* def = parserNew ("Lisp");
def->kinds = LispKinds;

1842
ocaml.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -38,6 +38,7 @@
LuaParser, \
MakefileParser, \
MatLabParser, \
OcamlParser, \
PascalParser, \
PerlParser, \
PhpParser, \

View File

@ -34,6 +34,7 @@ SOURCES = \
make.c \
matlab.c \
nestlevel.c \
ocaml.c \
options.c \
parse.c \
pascal.c \
@ -96,6 +97,7 @@ OBJECTS = \
make.$(OBJEXT) \
matlab.$(OBJEXT) \
nestlevel.$(OBJEXT) \
ocaml.$(OBJEXT) \
options.$(OBJEXT) \
parse.$(OBJEXT) \
pascal.$(OBJEXT) \
@ -120,4 +122,3 @@ OBJECTS = \
vim.$(OBJEXT) \
yacc.$(OBJEXT) \
vstring.$(OBJEXT)

View File

@ -27,6 +27,8 @@ Languages Supported by Exuberant Ctags:
<li>Lisp</li>
<li>Lua</li>
<li>Make</li>
<li>MATLAB</li>
<li>Objective Caml</li>
<li>Pascal</li>
<li>Perl</li>
<li>PHP</li>