Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs mode highlighting #4324

Closed
vicuna opened this issue Jun 22, 2007 · 1 comment
Closed

emacs mode highlighting #4324

vicuna opened this issue Jun 22, 2007 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 22, 2007

Original bug ID: 4324
Reporter: @oandrieu
Status: closed (set by @garrigue on 2007-10-29T07:19:07Z)
Resolution: fixed
Priority: normal
Severity: minor
OS: emacs
Version: 3.10.0
Fixed in version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @jmeber @yakobowski

Bug description

The highlighting code in emacs/caml-font.el doesn't work reliably with multi-line comments or strings. The reason is that it sets font-lock in "keywords-only" mode which is fine when highlighting keywords but doesn't work for multi-line constructs. The intent was apparently to colorize ocamldoc comments differently, but the clean way to do this is to use the font-lock-syntactic-face-function.

Here's the modified version I use which does this, plus some other minor improvements (see changelog at the beginning).

File attachments

@vicuna
Copy link
Author

vicuna commented Oct 29, 2007

Comment author: @garrigue

Merged the code with almost no modification.
Thanks!

@vicuna vicuna closed this as completed Oct 29, 2007
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant