Roundup Tracker - Issues

Message3599

Author tobias-herp
Recipients richard, stefan, tobias-herp
Date 2009-02-26.19:32:14
Message-id <1235676734.87.0.757730131683.issue2550520@psf.upfronthosting.co.za>
In-reply-to
Since lots of our source files contain vim magical comments (at the top
or bottom), I reckon vim is more common in our community than emacs (-*-
coding: ... -*- being an "emacs cookie").

Python looks for something like "coding[:=]\s*([-\w.]+)" (pep 0263, see
http://www.python.org/dev/peps/pep-0263/; 'coding', a ':' or '=',
optional whitespace, and the encoding spec.).

Vim looks for 'enc=' or 'encoding='; the latter works for Python, too.
The emacs cookie is not recognised by vim (by default).
History
Date User Action Args
2009-02-26 19:32:14tobias-herpsetmessageid: <1235676734.87.0.757730131683.issue2550520@psf.upfronthosting.co.za>
2009-02-26 19:32:14tobias-herpsetrecipients: + tobias-herp, richard, stefan
2009-02-26 19:32:14tobias-herplinkissue2550520 messages
2009-02-26 19:32:14tobias-herpcreate