branch: externals/auto-header
commit 408aab1dec2593c27d361f6dd0d81291bd8e25aa
Author: Philip Kaludercic <[email protected]>
Commit: Philip Kaludercic <[email protected]>
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 <[email protected]>
-;; 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