[TxMt] I figured out how to evade inherited soft-wrap indenting!
Matt Neuburg
matt at tidbits.com
Sat Apr 5 00:54:39 UTC 2014
As I've complained here before, it disturbs me that that my AsciiDoc single-line (double-slashed) comments are affected by the Source bundle's soft-wrap indenting:
{ indentedSoftWrap = {
match = '.*(//?)\s+';
format = '${0/(\s*)(.{,4}).*/$1${2/./ /g}/}';
};
softWrap = :true;
}
My comments are comment.line.double-slash.asciidoc, so they fall under the purview of the Source bundle's setting for comment.line.double-slash.
I have considered changing the scope name of my comments in order to evade this, for example to comment.line.doubleslash.asciidoc (no hyphen). That works.
However, I've just discovered that I can do it with a settings file like this:
{ indentedSoftWrap = {};
softWrap = :true;
}
That "shelters" me from the inherited soft-wrap indenting, which is what I was trying to achieve. m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
More information about the textmate
mailing list