[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/yaml-mode df66d7f 091/124: Merge pull request #59 from Kaa
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/yaml-mode df66d7f 091/124: Merge pull request #59 from Kaali/master |
Date: |
Sun, 29 Aug 2021 11:36:19 -0400 (EDT) |
branch: elpa/yaml-mode
commit df66d7f31eeec1c8446694bcbffbe008408f5cc0
Merge: 7f41037 c7c2994
Author: Vasilij Schneidermann <mail@vasilij.de>
Commit: GitHub <noreply@github.com>
Merge pull request #59 from Kaali/master
Support non-whitespace preceded apostrophe
---
yaml-mode.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/yaml-mode.el b/yaml-mode.el
index 00f0c2d..25848e8 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -262,14 +262,18 @@ that key is pressed to begin a block literal."
;; after a non-whitespace character, then mark it as syntactic word.
(save-excursion
(goto-char beg)
- (while (search-forward "'" end t)
+ (while (re-search-forward "['\"]" end t)
(when (nth 8 (syntax-ppss))
(save-excursion
(forward-char -1)
- (when (and (not (bolp))
- (not (memq (preceding-char) '(?\s ?\t))))
- (put-text-property (point) (1+ (point))
- 'syntax-table (string-to-syntax "w"))))))))
+ (cond ((and (char-equal ?' (char-before (point)))
+ (char-equal ?' (char-after (point)))
+ (put-text-property (1- (point)) (1+ (point))
+ 'syntax-table (string-to-syntax
"w"))))
+ ((and (not (bolp))
+ (char-equal ?w (char-syntax (char-before (point)))))
+ (put-text-property (point) (1+ (point))
+ 'syntax-table (string-to-syntax
"w")))))))))
(defun yaml-font-lock-block-literals (bound)
"Find lines within block literals.
- [nongnu] elpa/yaml-mode 45e52cb 006/124: merge TEST-JULIAN-PATCH, (continued)
- [nongnu] elpa/yaml-mode 45e52cb 006/124: merge TEST-JULIAN-PATCH, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode f297efe 012/124: YAML imenu outline integration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 2c0359f 004/124: change VERSION, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 18c9135 020/124: replace `last-command-char` to `last-command-event`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode ef3546b 047/124: allow spaces before '-' in yaml-scalar-context-re, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode bdc47a4 056/124: added two more test files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 236832c 068/124: Merge branch 'liangfu-master', ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode f378589 079/124: Merge pull request #45 from dunn/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode f991710 086/124: Support for apostrophe in words, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode b83482e 089/124: Support double quote in implicit keys, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode df66d7f 091/124: Merge pull request #59 from Kaali/master,
ELPA Syncer <=
- [nongnu] elpa/yaml-mode fc7bac0 092/124: Formatting fixes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 2522b3c 101/124: Fix typos, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 8105718 105/124: Simplify the implementation; move a comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode add6156 113/124: yaml-mode-syntax-propertize-function: Clear ppss cache, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode bce5aa1 011/124: changed version and added Changes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 9d5a888 025/124: Merge pull request #6 from gvalkov/yaml-file-type, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode a87ab36 046/124: add RECRUITMENTS, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode dcdcd81 049/124: Add myself as maintainer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 6ddd552 058/124: Merge pull request #34 from antalk2/again-p2, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 75c8f36 064/124: Unhighlight foo#bar tokens, ELPA Syncer, 2021/08/29