Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andorsk committed Feb 10, 2023
1 parent bc9e0a4 commit 522a333
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion d2-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@
(defconst d2-font-lock-keywords
`((,(regexp-opt '("shape" "md" ) 'words) . font-lock-keyword-face)
("---\\|-?->*\\+?\\|==>\\|===|->" . font-lock-variable-name-face)
("#.*" . font-lock-comment-face )
(":\\|{\\|}\\|\|\\|+" . font-lock-builtin-face)
(,(regexp-opt '("go" "js") 'lang) . font-lock-preprocessor-face)
(,(regexp-opt '("class" "string" ) 'words2) . font-lock-type-face)))

(defvar d2-syntax-table
(let ((syntax-table (make-syntax-table)))
;; Comment style "%% ..."
;; Comment style "# ..."
(modify-syntax-entry ?% ". 124" syntax-table)
(modify-syntax-entry ?\n ">" syntax-table)
syntax-table)
Expand Down

0 comments on commit 522a333

Please sign in to comment.