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

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

[elpa] externals/auto-header 408aab1dec 06/26: Ignore symbols in strings


From: ELPA Syncer
Subject: [elpa] externals/auto-header 408aab1dec 06/26: Ignore symbols in strings
Date: Sun, 26 Mar 2023 07:57:34 -0400 (EDT)

branch: externals/auto-header
commit 408aab1dec2593c27d361f6dd0d81291bd8e25aa
Author: Philip Kaludercic <philip.kaludercic@fau.de>
Commit: Philip Kaludercic <philip.kaludercic@fau.de>

    Ignore symbols in strings
---
 auto-header.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/auto-header.el b/auto-header.el
index 3ca3f0a56d..b338b028a2 100644
--- a/auto-header.el
+++ b/auto-header.el
@@ -3,7 +3,7 @@
 ;; Copyright (C) 2022  Philip Kaludercic
 
 ;; Author: Philip Kaludercic <philip.kaludercic@fau.de>
-;; Version: $Id: auto-header.el,v 1.4 2022/04/30 07:53:03 oj14ozun Exp 
oj14ozun $
+;; Version: $Id: auto-header.el,v 1.5 2022/04/30 08:05:31 oj14ozun Exp 
oj14ozun $
 ;; Package-Version: 1.0
 ;; Keywords: c
 
@@ -138,8 +138,9 @@ NAME."
                  symbol-end
                  (* space) "(")
              nil t)
-       (unless (member (match-string-no-properties 1)
-                       auto-header-c-keywords)
+       (unless (or (member (match-string-no-properties 1)
+                           auto-header-c-keywords)
+                   (nth 4 (syntax-ppss)))
          (push (match-string-no-properties 1) headers)))
       (auto-header-insert-headers
        (apply #'append (mapcar #'auto-header-find-headers



reply via email to

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