diff options
Diffstat (limited to 'generic/proof-syntax.el')
| -rw-r--r-- | generic/proof-syntax.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/proof-syntax.el b/generic/proof-syntax.el index db19ce4e..03bd7b00 100644 --- a/generic/proof-syntax.el +++ b/generic/proof-syntax.el @@ -115,8 +115,8 @@ nil if a region cannot be found." If so, return non-nil." (or (proof-buffer-syntactic-context) - (proof-looking-at-safe proof-script-comment-start-regexp) - (proof-looking-at-safe proof-string-start-regexp))) + (when (proof-looking-at-safe proof-script-comment-start-regexp) 'comment) + (when (proof-looking-at-safe proof-string-start-regexp) 'string))) |
