mirror of
https://github.com/keith/swift.vim.git
synced 2025-12-17 12:00:25 +01:00
Add an example script
This commit is contained in:
23
example/example.swift
Normal file
23
example/example.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -i
|
||||
|
||||
// This is a comment
|
||||
|
||||
let foo = 5 // another comment
|
||||
|
||||
/* this is also a comment */
|
||||
|
||||
/* this is
|
||||
a multi-line
|
||||
comment
|
||||
*/
|
||||
|
||||
"this is a string"
|
||||
"this is a string\" with an escaped quote"
|
||||
|
||||
// TODO: This is a todo comment
|
||||
// XXX: This is another todo comment
|
||||
// FIXME: this is another todo comment
|
||||
// NOTE: this is another todo comment
|
||||
/* TODO multiple */
|
||||
|
||||
// MARK: this is a marker
|
||||
Reference in New Issue
Block a user