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

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

[nongnu] elpa/lua-mode 7f8fbf2 308/468: lua-mode: don't remove syntax-ta


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 7f8fbf2 308/468: lua-mode: don't remove syntax-table during unfontification
Date: Thu, 5 Aug 2021 04:58:59 -0400 (EDT)

branch: elpa/lua-mode
commit 7f8fbf296fbbc2d65cad329dcce0671a7ad1df4f
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    lua-mode: don't remove syntax-table during unfontification
    
    Putting syntax-table to font-lock-extra-managed-props means that
    syntax-table character properties are removed during unfontification of
    a region and that might remove markers previously put by
    syntax-propertize function.
---
 lua-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lua-mode.el b/lua-mode.el
index b098ab7..6c0c4c4 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -723,8 +723,8 @@ Groups 6-9 can be used in any of argument regexps."
     (with-no-warnings
       ;; font-lock-syntactic-keywords are deprecated since 24.1
       (lua--setq-local
-       font-lock-syntactic-keywords 'lua-font-lock-syntactic-keywords)))
-  (lua--setq-local font-lock-extra-managed-props  '(syntax-table))
+       font-lock-syntactic-keywords 'lua-font-lock-syntactic-keywords)
+      (lua--setq-local font-lock-extra-managed-props  '(syntax-table))))
   (lua--setq-local parse-sexp-lookup-properties   t)
   (lua--setq-local indent-line-function           'lua-indent-line)
   (lua--setq-local beginning-of-defun-function    'lua-beginning-of-proc)



reply via email to

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