]> code.delx.au - gnu-emacs-elpa/commitdiff
company-clang--annotation: include method qualifiers in the annotation
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 18 May 2014 12:38:33 +0000 (15:38 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 18 May 2014 12:38:33 +0000 (15:38 +0300)
Fixes #113

company-clang.el

index 041754fb8b73bcf131538a8c2d2d1765651b7cbe..cc7660c345314603b80e511ef22f88c3ffdfa778 100644 (file)
@@ -147,7 +147,7 @@ or automatically through a custom `company-clang-prefix-guesser'."
      ((null meta) nil)
      ((string-match "[^:]:[^:]" meta)
       (substring meta (1+ (match-beginning 0))))
-     ((string-match "\\((.*)\\'\\)" meta)
+     ((string-match "\\((.*)[ a-z]*\\'\\)" meta)
       (match-string 1 meta)))))
 
 (defun company-clang--strip-formatting (text)