[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/yaml-mode 3dc2212 065/124: Remove obsolete `font-lock-synt
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/yaml-mode 3dc2212 065/124: Remove obsolete `font-lock-syntactic-keywords` use |
Date: |
Sun, 29 Aug 2021 11:36:14 -0400 (EDT) |
branch: elpa/yaml-mode
commit 3dc22127daa6788bad2934485785c45231c416f9
Author: Vasilij Schneidermann <v.schneidermann@gmail.com>
Commit: Vasilij Schneidermann <v.schneidermann@gmail.com>
Remove obsolete `font-lock-syntactic-keywords` use
---
yaml-mode.el | 29 +----------------------------
1 file changed, 1 insertion(+), 28 deletions(-)
diff --git a/yaml-mode.el b/yaml-mode.el
index a04fc13..3b01a15 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -222,13 +222,10 @@ that key is pressed to begin a block literal."
(set (make-local-variable 'indent-line-function) 'yaml-indent-line)
(set (make-local-variable 'indent-tabs-mode) nil)
(set (make-local-variable 'fill-paragraph-function) 'yaml-fill-paragraph)
- (set (make-local-variable 'font-lock-defaults)
- '(yaml-font-lock-keywords
- nil nil nil nil
- (font-lock-syntactic-keywords . yaml-font-lock-syntactic-keywords)))
(set (make-local-variable 'syntax-propertize-function)
'yaml-mode-syntax-propertize-function)
+ (setq font-lock-defaults '(yaml-font-lock-keywords))
(if (fboundp 'font-lock-flush)
(font-lock-flush)
(with-no-warnings
@@ -248,10 +245,6 @@ that key is pressed to begin a block literal."
("^[\t]+" 0 'yaml-tab-face t))
"Additional expressions to highlight in YAML mode.")
-(defvar yaml-font-lock-syntactic-keywords
- (list '(yaml-syntactic-block-literals 0 "."))
- "Additional syntax features to highlight in YAML mode.")
-
(defun yaml-mode-syntax-propertize-function (beg end)
"Unhighlight foo#bar tokens between BEG and END."
(save-excursion
@@ -304,26 +297,6 @@ artificially limitted to the value of
bound t))
(set-match-data (nthcdr 2 (match-data))) t))))))
-(defun yaml-syntactic-block-literals (bound)
- "Find quote characters within block literals.
-Finds the first quote character within a block literal (if any) after
-point and prior to BOUND. Returns the position of the quote character
-in the match data, as consumed by matcher functions in
-`font-lock-syntactic-keywords'. This allows the mode to treat ['\"]
-characters in block literals as punctuation syntax instead of string
-syntax, preventing unmatched quotes in block literals from painting
-the entire buffer in `font-lock-string-face'."
- (let ((found nil))
- (while (and (not found)
- (/= (point) bound)
- (yaml-font-lock-block-literals bound))
- (let ((begin (match-beginning 0)) (end (match-end 0)))
- (goto-char begin)
- (cond
- ((re-search-forward "['\"]" end t) (setq found t))
- ((goto-char end)))))
- found))
-
;; Indentation and electric keys
- [nongnu] elpa/yaml-mode 522d464 022/124: added changes, (continued)
- [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
- [nongnu] elpa/yaml-mode 059c255 030/124: Merge branch 'master' of github.com:yoshiki/yaml-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 9e07024 032/124: Changed version to 0.0.9, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 737c7fc 034/124: Remove default C-j binding, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode fb17c37 036/124: Bumping version to 0.0.10, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 34b6367 041/124: Use font-lock-flush when available, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode a817e46 045/124: Bumping version to 0.0.12, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 93dd95c 051/124: remove regexp details from test-file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode e9937d2 063/124: Backquote FTW, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 3dc2212 065/124: Remove obsolete `font-lock-syntactic-keywords` use,
ELPA Syncer <=
- [nongnu] elpa/yaml-mode 8d1f218 071/124: Spelling fix, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 5abb2f4 078/124: update yaml-mode-version, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 10dddc5 080/124: Fix typo in yaml-mode-version docstring, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 162f7e4 082/124: Treat alias nodes as punctuation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 756e64b 084/124: Don't consider a line a document delimiter if it has leading whitespace, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 78b3ba5 095/124: fill while in a comment should behave as in text modes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 20d12a2 001/124: init, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 00ac9e5 116/124: Merge pull request #67 from HParker/fix-comment-indent, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 6694896 002/124: change e-mail, ELPA Syncer, 2021/08/29
- [nongnu] elpa/yaml-mode 67348f3 014/124: dash (-) is a word character, see YAML spec 1.2 section 5.6, ELPA Syncer, 2021/08/29