Skip to content

Commit

Permalink
Globbing: Add globbing documentation
Browse files Browse the repository at this point in the history
Fixes #396
  • Loading branch information
fneu committed Jun 23, 2015
1 parent 146eaae commit d8017c7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/Glob_Patterns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Glob - Extended unix style pathname expansion

In coala, files and directories are specified by file name. To allow input of
multiple files without requiring a large number of filenames, coala supports
a number of wildcards. These are based on the unix-style glob syntax and they
are *not* the same as regular expressions.

## Syntax

The special characters used in shell-style wildcards are:

```
+-----------------+-----------------------------------------------------------+
| PATTERN | MEANING |
+=================+===========================================================+
| '[seq]' | Matches any character in seq. Cannot be empty. Any special|
| | character looses its special meaning in a set. |
+-----------------+-----------------------------------------------------------+
| '[!seq]' | Matches any character not in seq. Cannot be empty. Any |
| | special character looses its special meaning in a set. |
+-----------------+-----------------------------------------------------------+
| '(seq_a|seq_b)' | Matches either sequence_a or sequence_b as a whole. More |
| | than two or just one sequence can be given. |
+-----------------+-----------------------------------------------------------+
| '?' | Matches any single character. |
+-----------------+-----------------------------------------------------------+
| '*' | Matches everything but the directory separator |
+-----------------+-----------------------------------------------------------+
| '**' | Matches everything. |
+-----------------+-----------------------------------------------------------+
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pages:
- 'Introduction': 'index.md'
- 'Installation': 'Install.md'
- 'Tutorial': 'Tutorial.md'
- 'Glob Patterns': 'Glob_Patterns.md'
- 'Exit Codes': 'Exit_Codes.md'
- Getting Involved:
- 'Introduction': 'Getting_Involved/README.md'
Expand Down

0 comments on commit d8017c7

Please sign in to comment.