emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 7d47e3c 079/495: remove old go-propertize-syntax c


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 7d47e3c 079/495: remove old go-propertize-syntax code
Date: Sat, 7 Aug 2021 09:04:47 -0400 (EDT)

branch: elpa/go-mode
commit 7d47e3c8a16ccd6bdd45d91b700e81cca728b6bb
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    remove old go-propertize-syntax code
---
 go-mode.el | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index a9130e3..fd1839d 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -541,32 +541,6 @@ buffer. Tries to look for a URL at point."
         (go-mode)
         (switch-to-buffer buffer)))))
 
-;; "However, it should not call syntax-ppss-flush-cache; so, it is not allowed 
to call syntax-ppss on some position and later modify the buffer at an earlier 
position."
-;; ↑ let's hope this doesn't screw me over
-
-;; TODO do we have to deal with removing the text property again, too?
-;; and what happens when we edit a string? etc...
-;; FIXME make this work :D
-;; (set (make-local-variable 'syntax-propertize-function) 
'go-propertize-syntax)
-(defun go-propertize-syntax (start end)
-  (save-excursion
-    (let (start-of-string end-of-string)
-      (goto-char start)
-      ;; TODO loop this
-      (skip-chars-forward "^`" end)
-      (if (go-in-string-p)
-          (progn
-            (setq end-of-string (point))
-            (go-goto-beginning-of-string-or-comment)
-            (if (looking-at "`")
-                (progn
-                  (setq start-of-string (point))
-                  ;; (syntax-code . matching-char)
-                  (skip-chars-forward "^\\" end-of-string) ;; TODO loop this
-                  (if (looking-at "\\")
-                      (message "%s" (point))
-                    (put-text-property (1- (point)) (point) 'syntax-table 
(string-to-syntax "."))))))))))
-
 ;; ;; Commented until we actually make use of this function
 ;; (defun go--common-prefix (sequences)
 ;;   ;; mismatch and reduce are cl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]