Add a comment to explain where to change the regex to better match hblang
This commit is contained in:
parent
eda407ff48
commit
e809e9ddba
|
@ -87,14 +87,13 @@
|
||||||
(modify-syntax-entry ?/ ". 124b" table)
|
(modify-syntax-entry ?/ ". 124b" table)
|
||||||
(modify-syntax-entry ?* ". 23" table)
|
(modify-syntax-entry ?* ". 23" table)
|
||||||
(modify-syntax-entry ?\n "> b" table)
|
(modify-syntax-entry ?\n "> b" table)
|
||||||
;; Lisp-style comments.
|
|
||||||
;; (modify-syntax-entry ?\; "< b" table)
|
|
||||||
table)
|
table)
|
||||||
"Syntax table for `hblang-mode'.")
|
"Syntax table for `hblang-mode'.")
|
||||||
|
|
||||||
(defvar hblang-font-lock-keywords
|
(defvar hblang-font-lock-keywords
|
||||||
'(("[a-zA-Z]+" (1 font-lock-function-name-face))
|
;; Change the "" quoted regex to do various forms of highlighting.
|
||||||
("[a-z]" (1 font-lock-variable-name-face)))
|
'(("" (1 font-lock-function-name-face))
|
||||||
|
("" (1 font-lock-variable-name-face)))
|
||||||
"Highlight rules for `hblang-mode'.")
|
"Highlight rules for `hblang-mode'.")
|
||||||
|
|
||||||
(define-derived-mode hblang-mode prog-mode "hb"
|
(define-derived-mode hblang-mode prog-mode "hb"
|
||||||
|
|
Loading…
Reference in a new issue