[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/yaml-mode 3fcb36d603 2/2: Merge pull request #103 from yos
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/yaml-mode 3fcb36d603 2/2: Merge pull request #103 from yoshiki/add-remaining-highlighting-tests |
Date: |
Sun, 23 Oct 2022 06:59:20 -0400 (EDT) |
branch: elpa/yaml-mode
commit 3fcb36d6039bef57e2a0f6e24c51f623c0bf5fb7
Merge: 3fedb4ee38 a00de52c4a
Author: Vasilij Schneidermann <mail@vasilij.de>
Commit: GitHub <noreply@github.com>
Merge pull request #103 from yoshiki/add-remaining-highlighting-tests
Add remaining highlighting tests
---
test/yaml-mode-test.el | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/test/yaml-mode-test.el b/test/yaml-mode-test.el
index 2755bb4aab..0ea659c027 100644
--- a/test/yaml-mode-test.el
+++ b/test/yaml-mode-test.el
@@ -126,6 +126,39 @@ correspond to FACES in the listed order."
;;; Regression tests:
+(ert-deftest highlighting/string-syntax ()
+ "Highlighting of string syntax.
+Detail: https://github.com/yoshiki/yaml-mode/issues/75
+PR: https://github.com/yoshiki/yaml-mode/pull/76"
+ (yaml-test-font-lock "«some's'strings'some's'nots»:
+- here: «syntax is not string»
+- this: «'is a string with \"quotes\"'»
+- and: «'to express one single quote, use '' two of them'»
+- finally: «syntax is not string»
+- singlequotedoesntfreeze: '
+"
+ '(font-lock-variable-name-face
+ nil
+ font-lock-string-face
+ font-lock-string-face
+ nil)))
+
+(ert-deftest highlighting/list-of-dicts-containing-literal-block ()
+ "Highlighting literal blocks in list of dicts.
+PR: https://github.com/yoshiki/yaml-mode/pull/81"
+ (yaml-test-font-lock "example:
+ - key1: «Correctly propertized»
+ key2: |
+ «Correctly propertized.»
+ - key3: |
+ «Correctly propertized»
+ key4: «Incorrectly propertized as part of preceding yaml-literal-block»
+"
+ '(nil
+ font-lock-string-face
+ font-lock-string-face
+ nil)))
+
(ert-deftest highlighting/constant-before-comment ()
"Highlighting constant before comment.
Detail: https://github.com/yoshiki/yaml-mode/issues/96"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/yaml-mode 3fcb36d603 2/2: Merge pull request #103 from yoshiki/add-remaining-highlighting-tests,
ELPA Syncer <=