Skip to content

Commit

Permalink
Fix URL issues, add example
Browse files Browse the repository at this point in the history
See #37
  • Loading branch information
keith committed Apr 18, 2015
1 parent d11cae4 commit 5404d28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions example/URL.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import UIKit

class Foo: FooViewController, BarScrollable {

var canScroll = false

override func viewDidLoad() {
baseURL = "http://www.oaklandpostonline.com/search/?q=&t=article&c[]=blogs*"
super.viewDidLoad()
}
}
2 changes: 1 addition & 1 deletion syntax/swift.vim
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ syntax keyword swiftStructure

syntax region swiftTypeWrapper start="\v:\s*" end="\v[^\w]" contains=swiftString,swiftBoolean,swiftNumber,swiftType,swiftGenericsWrapper transparent oneline
syntax region swiftGenericsWrapper start="\v\<" end="\v\>" contains=swiftType transparent oneline
" syntax region swiftLiteralWrapper start="\v\=\s*" skip="\v[^\[\]]\(\)" end="\v(\[\]|\(\))" contains=swiftType transparent oneline
syntax region swiftLiteralWrapper start="\v\=\s*" skip="\v[^\[\]]\(\)" end="\v(\[\]|\(\))" contains=swiftType,swiftString transparent oneline
syntax region swiftReturnWrapper start="\v-\>\s*" end="\v(\{|$)" contains=swiftType transparent oneline
syntax match swiftType "\v\u\w*" contained containedin=swiftGenericsWrapper,swiftTypeWrapper,swiftLiteralWrapper,swiftGenericsWrapper

Expand Down

0 comments on commit 5404d28

Please sign in to comment.