branch: elpa/lua-mode
commit 7f8fbf296fbbc2d65cad329dcce0671a7ad1df4f
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
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)