Issue #15920 has been reported by Gleb Arshinov.
----------------------------------------
Bug #15920: In Emacs's puppet-mode.el forward-sexp is broken by comments with
unterminated strings
https://projects.puppetlabs.com/issues/15920
Author: Gleb Arshinov
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Problem:
--------
Try on the following manifest:
<pre>
foo {
# won'
}
</pre>
Put cursor on the opening brace and run C-M-f (forward-sexp). Will get
forward-sexp: Scan error: "Unbalanced parentheses"
Cause:
-----
The problem is that parse-sexp-ignore-comments is not set.
The problem got introduced in commit 1c02749e8b54616043f728ed18ddec1dc4353a2d
(Committed patch from #1160).
Workaround:
----------
<pre>
(defun my-puppet-mode-hook ()
;; fix forward-sexp behavior for unterminated strings in comments, e.g.
;; foo {
;; # won'
;; }
(make-local-variable 'parse-sexp-ignore-comments)
(setq parse-sexp-ignore-comments t))
(add-hook 'puppet-mode-hook 'my-puppet-mode-hook)
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.