ini-mode.el: add reference font-locking

Highlight ${var}, {var} and %var% constructs.
This commit is contained in:
Jeremy Baxter 2024-07-23 10:29:08 +12:00
parent 79c7ccf762
commit 226cf35571

View file

@ -35,7 +35,15 @@
'(("\\([#;].*$\\)" . font-lock-comment-face)
("\\[\\(.+\\)\\]" 1 'font-lock-type-face)
("\\(^.+\\)=" 1 'font-lock-variable-name-face)
("=\\(.+$\\)" 1 'font-lock-string-face))
("=\\(.+$\\)" 1 'font-lock-string-face)
("\\(\\$?{\\)\\(.+\\)\\(}\\)"
(1 'font-lock-bracket-face t)
(2 'font-lock-variable-use-face t)
(3 'font-lock-bracket-face t))
("\\(%\\)\\(.+\\)\\(%\\)"
(1 'font-lock-bracket-face t)
(2 'font-lock-variable-use-face t)
(3 'font-lock-bracket-face t)))
"Keywords for font locking in `ini-mode'.")
(define-derived-mode ini-mode nil "INI"