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

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

[nongnu] elpa/lua-mode 167e046 147/468: lua-calculate-indentation-overri


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 167e046 147/468: lua-calculate-indentation-override: fix typo (caddr was a reference to wrong field of token table)
Date: Thu, 5 Aug 2021 04:58:25 -0400 (EDT)

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

    lua-calculate-indentation-override: fix typo (caddr was a reference to 
wrong field of token table)
---
 lua-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua-mode.el b/lua-mode.el
index bc41c8e..d352b03 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -972,7 +972,7 @@ to the left by the amount specified in lua-indent-level."
                (looking-at lua-indentation-modifier-regexp)
                (let ((token-info (lua-get-block-token-info (match-string 0))))
                  (and token-info
-                      (not (eq 'open (caddr token-info))))))
+                      (not (eq 'open (lua-get-token-type token-info))))))
           (when (lua-goto-matching-block-token nil nil 'backward)
             ;; Exception cases: when the start of the line is an assignment,
             ;; go to the start of the assignment instead of the matching item



reply via email to

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