branch: elpa/evil-matchit
commit 04e1d796b901c95ea5704deb90274f87657db553
Author: Chen Bin <[email protected]>
Commit: Chen Bin <[email protected]>
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