summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-12-07 17:04:57 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-12-07 17:04:57 +0100
commitee571c70e6386d978bc9878c0012f70571a21ca5 (patch)
treeca9d5dc5441bd710649bec3537529caa56532cb8
parent18a30f48bb8754421cb10dad99e0a406173d4551 (diff)
cape-keyword: Add OCaml keywords
-rw-r--r--cape-keyword.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/cape-keyword.el b/cape-keyword.el
index 775f652..214f32a 100644
--- a/cape-keyword.el
+++ b/cape-keyword.el
@@ -51,6 +51,13 @@
"float" "for" "goto" "if" "inline" "int" "long" "register" "restrict"
"return" "short" "signed" "sizeof" "static" "struct" "switch" "typedef"
"union" "unsigned" "void" "volatile" "while")
+ (caml-mode ;; ocaml, from https://v2.ocaml.org/manual/lex.html#sss:keywords
+ "and" "as" "asr" "assert" "begin" "class" "constraint" "do" "done" "downto"
+ "else" "end" "exception" "external" "false" "for" "fun" "function"
+ "functor" "if" "in" "include" "inherit" "initializer" "land" "lazy" "let"
+ "lor" "lsl" "lsr" "lxor" "match" "method" "mod" "module" "mutable" "new"
+ "nonrec" "object" "of" "open" "or" "private" "rec" "sig" "struct" "then"
+ "to" "true" "try" "type" "val" "virtual" "when" "while" "with")
(crystal-mode ;; https://github.com/crystal-lang/crystal-book "abstract"
"alias" "annotation" "as" "as?" "asm" "begin" "break" "case" "class" "def"
"do" "else" "elsif" "end" "ensure" "enum" "extend" "false" "for" "fun" "if"
@@ -369,18 +376,19 @@
(js2-mode javascript-mode)
(phps-mode php-mode)
(rjsx-mode javascript-mode)
+ (tuareg-mode caml-mode)
;; Emacs 29 treesitter modes
(c++-ts-mode c++-mode)
(c-ts-mode c-mode)
(csharp-ts-mode csharp-mode)
(css-ts-mode css-mode)
+ (elixir-ts-mode elixir-mode)
(go-ts-mode go-mode)
(java-ts-mode java-mode)
(js-ts-mode javascript-mode)
(python-ts-mode python-mode)
(ruby-ts-mode ruby-mode)
- (rust-ts-mode rust-mode)
- (elixir-ts-mode elixir-mode))
+ (rust-ts-mode rust-mode))
"Alist of major modes and keywords."
:type 'alist
:group 'cape)