Browse Source

ob-ocaml: Add a cautionary comment about dodgy regex use.

* lisp/ob-ocaml.el (org-babel-ocaml-read-list): Add comment
Aaron Ecay 5 years ago
1 changed files with 4 additions and 0 deletions
  1. 4 0

+ 4 - 0

@@ -150,6 +150,10 @@ VALUE and TYPE are string output from an ocaml process."
   "Convert RESULTS into an elisp table or string.
 If the results look like a table, then convert them into an
 Emacs-lisp table, otherwise return the results as a string."
+  ;; XXX: This probably does not behave as expected when a semicolon
+  ;; is in a string in a list.  The same comment applies to
+  ;; `org-babel-ocaml-read-array' below (with even more failure
+  ;; modes).
   (org-babel-script-escape (replace-regexp-in-string ";" "," results)))
 (defun org-babel-ocaml-read-array (results)