branch: elpa/yaml-mode commit e9937d24680c50f9c48fdf80295a616998b91abb Author: Vasilij Schneidermann <v.schneiderm...@gmail.com> Commit: Vasilij Schneidermann <v.schneiderm...@gmail.com>
Backquote FTW --- yaml-mode.el | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/yaml-mode.el b/yaml-mode.el index 7e66a35..9cb8cfc 100644 --- a/yaml-mode.el +++ b/yaml-mode.el @@ -235,15 +235,14 @@ that key is pressed to begin a block literal." ;; Font-lock support (defvar yaml-font-lock-keywords - (list - (cons yaml-constant-scalars-re '(1 font-lock-constant-face)) - (cons yaml-tag-re '(0 font-lock-type-face)) - (cons yaml-node-anchor-alias-re '(0 font-lock-function-name-face)) - (cons yaml-hash-key-re '(1 font-lock-variable-name-face)) - (cons yaml-document-delimiter-re '(0 font-lock-comment-face)) - (cons yaml-directive-re '(1 font-lock-builtin-face)) - '(yaml-font-lock-block-literals 0 font-lock-string-face) - '("^[\t]+" 0 'yaml-tab-face t)) + `((,yaml-constant-scalars-re . (1 font-lock-constant-face)) + (,yaml-tag-re . (0 font-lock-type-face)) + (,yaml-node-anchor-alias-re . (0 font-lock-function-name-face)) + (,yaml-hash-key-re . (1 font-lock-variable-name-face)) + (,yaml-document-delimiter-re . (0 font-lock-comment-face)) + (,yaml-directive-re . (1 font-lock-builtin-face)) + (yaml-font-lock-block-literals 0 font-lock-string-face) + ("^[\t]+" 0 'yaml-tab-face t)) "Additional expressions to highlight in YAML mode.") (defvar yaml-font-lock-syntactic-keywords