Add a comment to explain where to change the regex to better match hblang

This commit is contained in:
Able 2024-12-04 15:57:10 -06:00
parent eda407ff48
commit e809e9ddba

View file

@ -87,14 +87,13 @@
(modify-syntax-entry ?/ ". 124b" table)
(modify-syntax-entry ?* ". 23" table)
(modify-syntax-entry ?\n "> b" table)
;; Lisp-style comments.
;; (modify-syntax-entry ?\; "< b" table)
table)
"Syntax table for `hblang-mode'.")
(defvar hblang-font-lock-keywords
'(("[a-zA-Z]+" (1 font-lock-function-name-face))
("[a-z]" (1 font-lock-variable-name-face)))
;; Change the "" quoted regex to do various forms of highlighting.
'(("" (1 font-lock-function-name-face))
("" (1 font-lock-variable-name-face)))
"Highlight rules for `hblang-mode'.")
(define-derived-mode hblang-mode prog-mode "hb"