mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Ignore commands within comments when parsing document
This commit is contained in:
parent
db80f8ca1c
commit
cfe51089f6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue