diff options
author | Damien Doligez <damien.doligez-inria.fr> | 2011-12-21 15:39:12 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 2011-12-21 15:39:12 +0000 |
commit | 19e2bca8ea639e0ce14a2b7f57ef05266c1633be (patch) | |
tree | 980a6a8f8eb6720e9da2ab4c2924ad5ace915e62 | |
parent | cca0035fbb25e0539c85a62b554c5b0abed66062 (diff) |
correct syntax highlighting in emacs (continued)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11923 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | Changes | 4 | ||||
-rw-r--r-- | emacs/caml-font.el | 7 |
2 files changed, 7 insertions, 4 deletions
@@ -42,9 +42,11 @@ Bug Fixes: - PR#5330: thread tag with '.top' and '.inferred.mli' targets - PR#5343: ocaml -rectypes is unsound wrt module subtyping - PR#5416: (Windows) Unix.(set|clear)_close_on_exec now preserves blocking mode +- emacs mode: colorization of comments and strings now works correctly Feature wishes: -- PR#5358: first class modules don't allow "with type" declarations for types in sub-modules +- PR#5358: first class modules don't allow "with type" declarations for types + in sub-modules - PR#5411: new directive for the toplevel: #load_rec - PR#5420: Unix.openfile share mode (Windows) diff --git a/emacs/caml-font.el b/emacs/caml-font.el index 425c07622..d0eeb5c83 100644 --- a/emacs/caml-font.el +++ b/emacs/caml-font.el @@ -338,9 +338,10 @@ (modify-syntax-entry ?' "w" tbl) (modify-syntax-entry ?_ "w" tbl) (modify-syntax-entry ?\" "." tbl) - (modify-syntax-entry '(?\300 . ?\326) "w" tbl) - (modify-syntax-entry '(?\330 . ?\366) "w" tbl) - (modify-syntax-entry '(?\370 . ?\377) "w" tbl) + (let ((i 192)) + (while (< i 256) + (or (= i 215) (= i 247) (modify-syntax-entry i "w" tbl)) + (setq i (1+ i)))) tbl)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |