Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/emacs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Provides a major mode for editing Dotprompt (`.prompt`) files with syntax highli

## Features

- **Syntax Highlighting**: Handlebars helpers, partials, Dotprompt markers
- **Syntax Highlighting**: Handlebars helpers, partials
- **LSP Integration**: Diagnostics, formatting, hover via eglot or lsp-mode
- **Format Buffer**: `C-c C-f` or `M-x dotprompt-format-buffer`
- **Format on Save**: Optional automatic formatting
Expand Down
5 changes: 1 addition & 4 deletions packages/emacs/dotprompt-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
;;; Commentary:

;; Major mode for editing Dotprompt files (.prompt).
;; Provides syntax highlighting for markers, helpers, and partials.
;; Provides syntax highlighting for helpers and partials.
;; Includes LSP integration via eglot or lsp-mode for diagnostics,
;; formatting, and hover documentation when `promptly` is installed.
;;
Expand Down Expand Up @@ -69,9 +69,6 @@
;; YAML numeric values
'(":\\s-+\\([0-9]+\\.?[0-9]*\\)$" 1 font-lock-constant-face)

;; Dotprompt markers <<<dotprompt:role:system>>> etc.
'("<<<dotprompt:[^>]+>>>" . font-lock-preprocessor-face)

;; Handlebars block comments {{!-- ... --}}
'("{{!--\\(.\\|\n\\)*?--}}" . font-lock-comment-face)

Expand Down
Loading