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

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

[nongnu] elpa/evil-matchit 04e1d796b9 042/244: support "# ifdef" in c


From: ELPA Syncer
Subject: [nongnu] elpa/evil-matchit 04e1d796b9 042/244: support "# ifdef" in c
Date: Thu, 6 Jan 2022 02:58:48 -0500 (EST)

branch: elpa/evil-matchit
commit 04e1d796b901c95ea5704deb90274f87657db553
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    support "# ifdef" in c
---
 evil-matchit-c.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/evil-matchit-c.el b/evil-matchit-c.el
index 386f599bcb..5c7d68f9db 100644
--- a/evil-matchit-c.el
+++ b/evil-matchit-c.el
@@ -29,7 +29,7 @@
 
 ;; ruby/bash/lua/vimrc
 (defvar evilmi-c-match-tags
-  '((("#ifdef" "#ifndef" "#if") ("#elif" "#else")  "#endif")
+  '((("ifdef" "ifndef" "if") ("elif" "else")  "endif")
     ("switch" "case" "default"))
   "The table we look up match tags. This is a three column table.
 The first column contains the open tag(s).
@@ -39,7 +39,7 @@ The third column contains the closed tags(s).
   )
 
 (defvar evilmi-c-extract-keyword-howtos
-  '(("^[ \t]*\\(#[a-z]+\\)\\( .*\\| *\\)$" 1)
+  '(("^[ \t]*#[ \t]*\\([a-z]+\\)\\( .*\\| *\\)$" 1)
     ("^[ \t]*\\([a-z]+\\)\\([ (:].*\\| *\\)$" 1))
   "The list of HOWTO on extracting keyword from current line.
 Each howto is actually a pair. The first element of pair is the regular



reply via email to

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