mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
Ignore commands within comments when parsing document
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user