From cfe51089f6dc2b18ca12f4b539612b2daf36a78c Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 29 Jun 2017 16:04:52 +0100 Subject: [PATCH] Ignore commands within comments when parsing document --- .../directives/aceEditor/auto-complete/SuggestionManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/SuggestionManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/SuggestionManager.coffee index 97241a90ce..e832be53dc 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/SuggestionManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/SuggestionManager.coffee @@ -39,7 +39,7 @@ define [], () -> return commands # Ignore single letter commands since auto complete is moot then. - commandRegex: /\\([a-zA-Z][a-zA-Z]+)/ + commandRegex: /^[^%]*?\\([a-zA-Z][a-zA-Z]+).*$/m nextCommand: () -> i = @doc.search(@commandRegex)