Skip to content

Fontify neocaml-utop transcript input with tree-sitter#74

Merged
bbatsov merged 1 commit into
mainfrom
utop-fontify-input
Jun 30, 2026
Merged

Fontify neocaml-utop transcript input with tree-sitter#74
bbatsov merged 1 commit into
mainfrom
utop-fontify-input

Conversation

@bbatsov

@bbatsov bbatsov commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Quick follow-up to the neocaml-utop PR: the transcript wasn't syntax-highlighting the OCaml you type, which neocaml-repl already does. This mirrors that setup - comint-fontify-input-mode with an indirect buffer in neocaml-mode - so typed input gets full tree-sitter highlighting while the toplevel's output keeps its own. Gated by neocaml-utop-fontify-input (default on), matching neocaml-repl-fontify-input.

Mirror neocaml-repl: enable comint-fontify-input-mode with an indirect
buffer in neocaml-mode so OCaml code typed in the transcript gets full
tree-sitter highlighting, while toplevel output keeps its own. Gated by
the new neocaml-utop-fontify-input option (default on).
@bbatsov bbatsov merged commit 1a7296c into main Jun 30, 2026
2 of 3 checks passed
@bbatsov bbatsov deleted the utop-fontify-input branch June 30, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant