[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 04/52: company-clang: tweak the objc args recognition
From: |
Dmitry Gutov |
Subject: |
[elpa] 04/52: company-clang: tweak the objc args recognition |
Date: |
Tue, 01 Jul 2014 11:53:04 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit ee3e77d86246b5a46f76a810bd10e9e78f385721
Author: Dmitry Gutov <address@hidden>
Date: Tue Apr 29 12:21:49 2014 +0400
company-clang: tweak the objc args recognition
---
company-clang.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/company-clang.el b/company-clang.el
index 1ddb7ca..a53a296 100644
--- a/company-clang.el
+++ b/company-clang.el
@@ -146,7 +146,7 @@ or automatically through a custom
`company-clang-prefix-guesser'."
(cond
((null meta) nil)
((string-match "[^:]:[^:]" meta)
- (substring meta (match-beginning 0)))
+ (substring meta (1+ (match-beginning 0))))
((string-match "\\((.*)\\'\\)" meta)
(match-string 1 meta)))))
@@ -316,7 +316,7 @@ passed via standard input."
(post-completion (let ((anno (company-clang--annotation arg)))
(when (and company-clang-insert-arguments anno)
(insert anno)
- (if (string-match "[^:]:[^:]" anno)
+ (if (string-match "\\`:[^:]" anno)
(company-clang-objc-templatify anno)
(company-template-c-like-templatify anno)))))))
- [elpa] branch master updated (9b6551e -> c828ee6), Dmitry Gutov, 2014/07/01
- [elpa] 01/52: Don't require pysmell during compile., Dmitry Gutov, 2014/07/01
- [elpa] 04/52: company-clang: tweak the objc args recognition,
Dmitry Gutov <=
- [elpa] 02/52: Fix #103, Dmitry Gutov, 2014/07/01
- [elpa] 05/52: Respect tooltip align annotations in company-yasnippet., Dmitry Gutov, 2014/07/01
- [elpa] 08/52: company-search-map: bind DEL to company-search-other-char, Dmitry Gutov, 2014/07/01
- [elpa] 07/52: Account for the line continuation column in graphical mode, Dmitry Gutov, 2014/07/01
- [elpa] 09/52: company-sort-by-occurrence: include words on the same line, too, Dmitry Gutov, 2014/07/01
- [elpa] 06/52: Merge pull request #106 from proofit404/master, Dmitry Gutov, 2014/07/01
- [elpa] 11/52: company-clang--build-complete-args: don't call -cc1 directly, Dmitry Gutov, 2014/07/01
- [elpa] 10/52: company--multi-backend-adapter-candidates: compare string values of prefix, Dmitry Gutov, 2014/07/01
- [elpa] 12/52: company-clang--annotation: include method qualifiers in the annotation, Dmitry Gutov, 2014/07/01
- [elpa] 13/52: NEWS: document the change in clang invocation, Dmitry Gutov, 2014/07/01