ini-mode.el: add reference font-locking
Highlight ${var}, {var} and %var% constructs.
This commit is contained in:
parent
79c7ccf762
commit
226cf35571
1 changed files with 9 additions and 1 deletions
10
ini-mode.el
10
ini-mode.el
|
@ -35,7 +35,15 @@
|
||||||
'(("\\([#;].*$\\)" . font-lock-comment-face)
|
'(("\\([#;].*$\\)" . font-lock-comment-face)
|
||||||
("\\[\\(.+\\)\\]" 1 'font-lock-type-face)
|
("\\[\\(.+\\)\\]" 1 'font-lock-type-face)
|
||||||
("\\(^.+\\)=" 1 'font-lock-variable-name-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'.")
|
"Keywords for font locking in `ini-mode'.")
|
||||||
|
|
||||||
(define-derived-mode ini-mode nil "INI"
|
(define-derived-mode ini-mode nil "INI"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue