Looking for help with language grammar. Coding in perl, and adding pod (documentation) within a codeblock, pod code gets automatically indented. Is there a way to have lines that begin with a = symbol auto- 'out-dent'? And then any subsequent lines, before a '=cut' line to be indented to match the previous line?
It's been a long time since I've looked at the language grammars in TM and, if they've changed in TM2 then I'm starting afresh. Any clues where to start would be gratefully received.
On Nov 5, 2013, at 13:56, Justin Catterall 100621.1@masonsmusic.co.uk wrote:
Looking for help with language grammar. Coding in perl, and adding pod (documentation) within a codeblock, pod code gets automatically indented. Is there a way to have lines that begin with a = symbol auto- 'out-dent'? And then any subsequent lines, before a '=cut' line to be indented to match the previous line?
I assume decrease indent only by a single unit? If so, you can make the line be matched by both the increase and decrease indent pattern, e.g.:
increaseIndentPattern = '^\s*=\w+'; decreaseIndentPattern = '^\s*=\w+';
This should give the behavior. Note though that if the indent is zero when the cut line is used, the current build will not cause the indent to be increased for the following lines, but this will be fixed in next build.
Also, we disable indent-as-you-type for source.comment, so if you setup useful indent patterns for the documentation blocks (which I assume are scoped as block comments) then it might be useful to re-enable indent-as-you-type:
disableIndentCorrections = :false;
When I run my RSpec specs from within TextMate2, since a few weeks, the links that point directly to the failed test is not a link anymore:
(I hope screenshots are okay on a mailing list?)
Any help is highly appreciated.
On 06 Nov 2013, at 15:02, Joshua Muheim forum@josh.ch wrote:
When I run my RSpec specs from within TextMate2, since a few weeks, the links that point directly to the failed test is not a link anymore: […]
You can use ⌥⌘U with focus in the output view, that will give you the raw source, perhaps this might help figure out why the link is output as it is.
If not, it would be good to have “steps to reproduce”, see https://github.com/textmate/textmate/wiki/Writing-Bug-Reports