mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Note that the documentation is a bit outdated as it hasn’t been touched since the first public alpha — updated documentation will appear when closer to final release, in the meantime interested parties should watch the release notes, wiki, and mailing list. Closes #822.
723 B
723 B
title: Scope Selector Syntax
Scope Selector Syntax
atom: «string» | '*'
scope: «atom» ('.' «atom»)*
path: '^'? «scope» ('>'? «scope»)* '$'?
group: '(' «selector» ')'
filter: ("L:"|"R:"|"B:") («group» | «path»)
expression: '-'? («filter» | «group» | «path»)
composite: «expression» ([|&-] «expression»)*
selector: «composite» (',' «composite»)*
We need to add priority (to path rule): (':' «integer»)?. This is when multiple commands handle the same event and are using same scope (which can be the case when chaining e.g. documentation commands).
We probably need ~ for negative-look ahead, e.g.: text.html ~ meta.embedded.