mirror of
https://github.com/textmate/textmate.git
synced 2026-01-23 13:47:54 -05: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.
767 B
767 B
title: Glob String Syntax
Glob String Syntax
\«char» -- Literal «char»
? -- Match one character
* -- Match zero or more characters¹
** -- Match zero or more path components
{«a»,«b»,«c»} -- Match «a» or «b» or «c»
[«a»«b»«c»] -- Match an «a», «b» or «c» character
[«a»-«b»] -- Match one character in the range «a»-«b»
[^«a»-«b»] -- Match one character not in the range «a»-«b»
Braces can be nested and contain other glob characters. Example:
{*.{cc,mm,h},target,Makefile,.tm_properties}
Will match these files:
source.cc
source.mm
source.h
target
Makefile
.tm_properties
¹ The asterisk will not match slashes nor a leading period.