[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/yaml-mode 85f19ca45d 4/6: Fix by review
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/yaml-mode 85f19ca45d 4/6: Fix by review |
Date: |
Sat, 22 Oct 2022 06:59:29 -0400 (EDT) |
branch: elpa/yaml-mode
commit 85f19ca45de29b4edd70191d93a2ec35a107c98f
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>
Fix by review
---
test/yaml-mode-test.el | 22 ++++++++++------------
yaml-mode.el | 2 +-
2 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/test/yaml-mode-test.el b/test/yaml-mode-test.el
index 472a13f2fe..4934dcfae4 100644
--- a/test/yaml-mode-test.el
+++ b/test/yaml-mode-test.el
@@ -1,6 +1,6 @@
;;;; yaml-mode-test.el --- Tests for yaml-mode -*- lexical-binding: t; -*-
-;; Copyright (C) 2010-2022 Yoshiki Kurihara
+;; Copyright (C) 2022 - Shohei YOSHIDA
;; Author: Yoshiki Kurihara <clouder@gmail.com>
;; Marshall T. Vandegrift <llasram@gmail.com>
@@ -29,32 +29,27 @@
(require 'yaml-mode)
(require 'ert)
-(require 'cl-lib)
;; for version < 25
(defconst yaml-test-font-lock-function
(if (fboundp 'font-lock-ensure)
- #'font-lock-ensure #'font-lock-fontify-buffer))
+ #'font-lock-ensure
+ #'font-lock-fontify-buffer))
-(defmacro yaml-test-string-mode (mode string &rest body)
+(defmacro yaml-test-string (string &rest body)
"Run BODY in a temporary buffer containing STRING in MODE."
- (declare (indent 2))
+ (declare (indent 1))
`(let ((win (selected-window)))
(unwind-protect
(with-temp-buffer
(set-window-buffer win (current-buffer) t)
(erase-buffer)
(insert ,string)
- (funcall ,mode)
+ (yaml-mode)
(funcall yaml-test-font-lock-function)
(setq-default indent-tabs-mode nil)
(goto-char (point-min))
(prog1 ,@body (kill-buffer))))))
-
-(defmacro yaml-test-string (string &rest body)
- "Run BODY in a temporary buffer containing STRING in `yaml-mode'."
- (declare (indent 1))
- `(yaml-test-string-mode 'yaml-mode ,string ,@body))
(def-edebug-spec yaml-test-string (form body))
(defun yaml-test-report-property-range (begin end prop)
@@ -108,9 +103,12 @@ Detail: https://github.com/yoshiki/yaml-mode/issues/96"
tls: True
- horizon:
tls: True # comment
+ - nova:
+ tls: True#123
"
(yaml-test-range-has-face 34 37 'font-lock-constant-face)
- (yaml-test-range-has-face 61 64 'font-lock-constant-face)))
+ (yaml-test-range-has-face 61 64 'font-lock-constant-face)
+ (yaml-test-range-has-face 95 102 nil)))
(provide 'yaml-mode-test)
diff --git a/yaml-mode.el b/yaml-mode.el
index 9de7293324..fc46e0582a 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -178,7 +178,7 @@ that key is pressed to begin a block literal."
"y" "Y" "yes" "Yes" "YES" "n" "N" "no" "No" "NO"
"true" "True" "TRUE" "false" "False" "FALSE"
"on" "On" "ON" "off" "Off" "OFF") t)
- "\\b")
+ "\\_>")
"Regexp matching certain scalar constants in scalar context.")
- [nongnu] elpa/yaml-mode updated (9969207f60 -> 141b85f9e0), ELPA Syncer, 2022/10/22
- [nongnu] elpa/yaml-mode 211db42f5a 2/6: Simplify regular expression, ELPA Syncer, 2022/10/22
- [nongnu] elpa/yaml-mode ebeb27cbbc 3/6: Add unit test and github actions configuration, ELPA Syncer, 2022/10/22
- [nongnu] elpa/yaml-mode ab695983d0 5/6: more fix, ELPA Syncer, 2022/10/22
- [nongnu] elpa/yaml-mode e859daf525 1/6: fix: #96 highlight error with inline comments, ELPA Syncer, 2022/10/22
- [nongnu] elpa/yaml-mode 85f19ca45d 4/6: Fix by review,
ELPA Syncer <=
- [nongnu] elpa/yaml-mode 141b85f9e0 6/6: Merge pull request #101 from yoshiki/support-ci, ELPA Syncer, 2022/10/22