From 336d2c4561f2b56ded92e2fa8a58f5042fcd7c8c Mon Sep 17 00:00:00 2001 From: Vitalie Spinu Date: Sun, 4 Sep 2022 11:14:43 +0200 Subject: [PATCH] Pass through to next backend when inside string --- company-terraform.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/company-terraform.el b/company-terraform.el index 234f8e9..1db0fca 100644 --- a/company-terraform.el +++ b/company-terraform.el @@ -148,7 +148,8 @@ which lasts serval seconds." (skip-syntax-backward "w") (point)))))) ;; Inside resource/data block - ((and (eq ?{ (char-after curr-ppos)) + ((and (not string-state) + (eq ?{ (char-after curr-ppos)) (save-excursion (goto-char curr-ppos) (re-search-backward "\\(resource\\|data\\|module\\)[[:space:]\n]*\"\\([^\"]*\\)\"[[:space:]\n]*\\(\"[^\"]*\"[[:space:]\n]*\\)?\\=" nil t)))