[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/yaml-mode 700dfda 093/124: Use block literal font-lock fir
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/yaml-mode 700dfda 093/124: Use block literal font-lock first |
Date: |
Sun, 29 Aug 2021 11:36:20 -0400 (EDT) |
branch: elpa/yaml-mode
commit 700dfda9932476352e1c0461efae83d7aea329eb
Author: Vasilij Schneidermann <mail@vasilij.de>
Commit: Vasilij Schneidermann <mail@vasilij.de>
Use block literal font-lock first
Later font-lock rules cannot override earlier ones unless explicitly
permitted, so if a key-value pair inside a block literal is
highlighted first, the block literal highlighting will apply to
everything outside it only. The easy way out here is to apply the
block literal highlighting first because nothing else should be
highlighted inside block literals.
---
yaml-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yaml-mode.el b/yaml-mode.el
index fd6b087..a9122ca 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -234,13 +234,13 @@ that key is pressed to begin a block literal."
;; Font-lock support
(defvar yaml-font-lock-keywords
- `((,yaml-constant-scalars-re . (1 font-lock-constant-face))
+ `((yaml-font-lock-block-literals 0 font-lock-string-face)
+ (,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.")
- [nongnu] elpa/yaml-mode eb46305 052/124: rename test-file, (continued)
- [nongnu] elpa/yaml-mode eb46305 052/124: rename test-file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode a96d09d 054/124: Description of behaviour updated., ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 73951dd 055/124: added test files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 3362e1b 057/124: Merge pull request #33 from antalk2/antalk2-patch-1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 4966854 061/124: Merge pull request #36 from mmckinst/license, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode e73adce 069/124: Fix regex in autoload as well, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode c0d6da0 073/124: Merge pull request #42 from scop/spelling, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode b03fba2 074/124: Merge pull request #43 from scop/raml, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 93252a0 076/124: Change dashes from word to symbol syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 64b2891 083/124: Merge pull request #47 from Wilfred/references_as_punctuation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 700dfda 093/124: Use block literal font-lock first,
ELPA Syncer <=
- [nongnu] elpa/yaml-mode 5b4a0db 098/124: Bump version, summarize changes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode ad8685c 104/124: yaml-mode-syntax-propertize-function: Speed up in large strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 0b33131 115/124: Merge pull request #78 from dgutov/spf-correctness, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 04c30ea 119/124: Fix propertization for lists of dicts with literal block, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 63b637f 124/124: Merge pull request #88 from scop/feature/magic-mode-alist, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 0709258 005/124: Added dist to `Changes', ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 4377ee5 009/124: Apply patch from k-nagano, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode b738999 010/124: changed version, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 522d464 022/124: added changes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 1a779ba 029/124: Merge pull request #8 from holymonson/master, ELPA Syncer, 2021/08/29