Commit Graph

36 Commits

Author SHA1 Message Date
Keith Smiley
5404d287f6 Fix URL issues, add example
See #37
2015-04-18 10:39:51 -07:00
Keith Smiley
d11cae4af0 Remove swiftLiteralWrapper for now.
I could get this to work. The failed use case is this:

baseURL = "http://www.oaklandpostonline.com/search/?q&tarticle&c[]blogs*"

The start pattern matches the `=` right after baseURL and ends on `[]`
in the URL. I couldn't get this to ignore the swiftString type or ignore
if there was a quote right after the URL. Mainly everything is horrible.

Closes #37
2015-02-22 19:49:03 -06:00
Akshay Hegde
e1f922bb1b Add syntax highlighting for swift methods. 2014-12-14 23:12:16 -08:00
Keith Smiley
f405c0d391 Fix * highlighting
Closes #33
2014-12-14 15:30:23 -08:00
Keith Smiley
2d00be335b Move comment pattern, update division operator
This fixes an issue where the beginning /* in a C-style block comment
was interpreted as an operator. I read somewhere in syntax.txt (I think)
that the order rules appear in the syntax definition file affects the
interpretation. This is one of those times. The comment block needs to
be after the operator definitions.
2014-12-07 16:04:34 -08:00
Keith Smiley
be757db8a8 Remove oneline argument from swiftString
This should fix the issue where, if you start a string which a single
non-matched quote, the string and interpolated string isn't highlighted
until the quote was closed. This seems like a bad idea since strings
only function when they are on a single line and this example:

"foo
" bar

highlights like they can spread over multiple lines. Where `bar` is
highlighted like a keyword and not part of an unclosed string. This is
also how ruby.vim does this so I assume this is the way to do it.

This fixes #28
2014-12-05 19:49:58 -08:00
Akshay Hegde
83b452558c Add syntax highlighting for new swift attributes.
Source:
developer.apple.com/library/ios/documentation/swift/conceptual/Swift_Programming_Language/Attributes.html
2014-11-19 14:16:28 -08:00
tokorom
48ffa96671 Fix the syntax for Type 2014-08-17 15:59:40 +09:00
tokorom
bb44e71630 Fix swiftOperator syntax for / and * 2014-08-14 18:42:30 +09:00
Keith Smiley
bcc90ad493 Fix indented block comments
Closes #13
2014-08-04 10:49:35 -07:00
Keith Smiley
0b3fdad8b1 Multi line comment folding 2014-08-04 10:45:05 -07:00
Keith Smiley
b816d9a6d5 Comment spell checking 2014-08-04 10:42:54 -07:00
Keith Smiley
dab9639426 Beta 5 updates 2014-08-04 10:23:49 -07:00
Keith Smiley
aff026d018 Add dynamic 2014-08-04 10:14:57 -07:00
Keith Smiley
e18dcdfba8 Add swift preprocessor stuff
Closes #10
2014-08-03 15:18:57 -07:00
Keith Smiley
127163d96a Beta 4 @ changes 2014-08-03 15:10:54 -07:00
Oleksandr Manenko
6efaf375ee Add access modifiers 2014-08-03 15:33:43 +03:00
Akshay Hegde
5a4685038b Add syntax highlighting for 'convenience' 2014-07-01 23:22:49 -07:00
Keith Smiley
44f055d446 Add exponential number types 2014-06-27 23:19:09 -07:00
Akshay Hegde
f6e6555143 Fix syntax highlighting when there is a method call in string interpolation 2014-06-16 01:19:19 -07:00
Keith Smiley
071c5e82f5 Add Swift Attributes 2014-06-15 20:38:43 -07:00
Keith Smiley
e2cb39c530 Update regexes with quotes over slashes 2014-06-15 20:10:27 -07:00
Akshay Hegde
17da418643 Add syntax highlighting support for nested block comments.
Remove useless skip construct from nested comment match
2014-06-15 20:03:07 -07:00
Akshay Hegde
1b636a1839 Fix highlighting when a string is given as a parameter to a method. 2014-06-14 23:24:49 -07:00
Akshay Hegde
1da59fe096 Add syntax highlighting for "subscript" keyword. 2014-06-14 16:45:16 -07:00
Keith Smiley
48676bfa73 Fix ! operator coloring 2014-06-14 12:42:53 -07:00
Keith Smiley
9b486200ef Fix type highlighting regression 2014-06-14 12:40:14 -07:00
Keith Smiley
bf936d06d4 Fix string interpolation 2014-06-13 23:04:19 -07:00
Keith Smiley
280c45d4d9 Add interpolated strings 2014-06-13 18:57:51 -07:00
Keith Smiley
72f0d73b91 Fix generics highlighting 2014-06-13 17:00:54 -07:00
Keith Smiley
0d7d6f1678 Type highlighting for return types 2014-06-13 16:31:44 -07:00
Keith Smiley
0cc80b303e Booleans, types 2014-06-13 15:32:54 -07:00
Keith Smiley
e2c14a81b9 Add number and operator matchers 2014-06-13 13:16:49 -07:00
Keith Smiley
e31ea79bcd Highlight contained TODO type comments 2014-06-13 11:45:29 -07:00
Keith Smiley
c263b691a1 Update syntax matching 2014-06-13 11:34:21 -07:00
Keith Smiley
c229adf2b9 Add swift comments, strings and shebang 2014-06-13 11:29:25 -07:00