[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 02/05: company-template-c-like-templatify: Use current syntax-tab
From: |
Dmitry Gutov |
Subject: |
[elpa] 02/05: company-template-c-like-templatify: Use current syntax-table as parent |
Date: |
Tue, 28 Oct 2014 01:38:56 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit 55c3a66b9e5e5c35b5469a30f6bd2b2977077e27
Author: Dmitry Gutov <address@hidden>
Date: Sat Oct 25 02:19:07 2014 +0700
company-template-c-like-templatify: Use current syntax-table as parent
Because that unbreaks indentation (!) in c++-mode, for some unfathomable
reason.
Fixes #212.
---
company-template.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/company-template.el b/company-template.el
index bc1055c..7b103e3 100644
--- a/company-template.el
+++ b/company-template.el
@@ -152,7 +152,7 @@ Leave point at the end of the field."
(cnt 0)
(templ (company-template-declare-template beg end))
paren-open paren-close)
- (with-syntax-table (make-char-table 'syntax-table nil)
+ (with-syntax-table (make-syntax-table (syntax-table))
(modify-syntax-entry ?\( "(")
(modify-syntax-entry ?\) ")")
(modify-syntax-entry ?< "(")