[TxMt] Re: Question on .tm_properties

Allan Odgaard mailinglist at textmate.org
Wed Jul 6 16:03:05 UTC 2016


On 6 Jul 2016, at 17:25, Allan Odgaard wrote:

> The gotcha here is that a scoped setting (like `text.xml`) takes 
> precedence over a file pattern match (like `*.xml`), even when the 
> latter is “more local” (in the file system).

Just a correction, the precedence is file patterns (globs) → scopes 
→ untargeted settings.

The file patterns are ranked based on locality where the scope selectors 
are ranked based on how much of the scope they match, e.g. a global 
`text.plain` wins over a local `text`, and finally the untargeted 
settings are ranked based on locality (like the file patterns).

It should probably just be intermixed, so a local untargeted setting 
wins over less local but targeted settings.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160706/7a732731/attachment.html>


More information about the textmate mailing list