Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit baed4f0

Browse files
committed
Updated README with list of valid completion-scopes
1 parent 6dfdab9 commit baed4f0

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,46 @@ $ gem install xcodesnippet
99

1010
## Usage
1111

12+
### Example
13+
1214
#### Sourcefile.swift
1315

1416
```swift
1517
---
1618
title: "Hello, World!"
1719
summary: "Prints 'Hello World'"
18-
completion-scope: Function or Method
20+
completion-scopes:
21+
- CodeBlock
1922
---
2023

2124
println("Hello, World!")
2225
```
2326

24-
#### Terminal Command
27+
### Completion Scopes
28+
29+
#### Objective-C
30+
31+
* `ClassImplementation`
32+
* `CodeExpression`
33+
* `Preprocessor`
34+
* `ClassInterfaceVariables`
35+
* `All`
36+
* `TopLevel`
37+
* `ClassInterfaceMethods`
38+
* `CodeBlock`
39+
* `StringOrComment`
40+
41+
#### Swift
42+
43+
* `TopLevel`
44+
* `ClassImplementation`
45+
* `CodeBlock`
46+
* `All`
47+
* `CodeExpression`
48+
* `StringOrComment`
49+
50+
51+
### Terminal Command
2552

2653
```
2754
$ xcodesnippet install path/to/source.m

0 commit comments

Comments
 (0)