Permalink
Browse files

Added support for Objective Caml (OCaml) language, provided by Vincen…

…t Berthoux [Patch #2738723].
  • Loading branch information...
1 parent 1c54fbc commit 1df2284f7e26090458b8eea4807172c5afc28f16 Darren Hiebert committed Jul 7, 2009
Showing with 1,876 additions and 2 deletions.
  1. +2 −0 NEWS
  2. +26 −0 Test/ocamlAllKinds.ml
  3. +1 −1 lisp.c
  4. +1,842 −0 ocaml.c
  5. +1 −0 parsers.h
  6. +2 −1 source.mak
  7. +2 −0 website/languages.html
View
2 NEWS
@@ -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].
View
@@ -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
+
View
2 lisp.c
@@ -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;
Oops, something went wrong.

0 comments on commit 1df2284

Please sign in to comment.