|
@@ -39,7 +39,7 @@ define [], () ->
|
|
|
return commands
|
|
return commands
|
|
|
|
|
|
|
|
# Ignore single letter commands since auto complete is moot then.
|
|
# 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: () ->
|
|
nextCommand: () ->
|
|
|
i = @doc.search(@commandRegex)
|
|
i = @doc.search(@commandRegex)
|