Commit Graph

28 Commits

Author SHA1 Message Date
Akshay Hegde
05fbee827d Allow many underscores for underscore padded number
Swift compiler currently allows multiple underscore in an underscore
padded number. For instance, 1___00 is a valid way to write 100 in
Swift.

Also add more underscore padded numbers in example.swift file for
testing purposes. Thanks to @aclissold for these.

References #55
2015-09-06 23:30:23 -07:00
Akshay Hegde
b616f5eeb4 Fix highlighting for underscore separated numbers
"The Basics" chapter of the official "The Swift Programming Language"
book states that you can pad numbers with underscores to help
readability.

This commit also handles the case where underscore padded numbers can
also contain a period (i.e., underscore padded float/double)

Additionally, added some underscore padded numbers in example/swift.vim
for testing purposes.

Fixes #51
2015-09-06 21:47:25 -07:00
Keith Smiley
73283a19b0 Fix some indentation issues 2014-10-22 13:48:09 -07:00
Keith Smiley
1acdb2f128 Fix square bracket indents 2014-08-24 18:35:48 -07:00
Keith Smiley
edcbcd7bcb Syntax updates 2014-08-24 17:42:02 -07:00
Keith Smiley
b0f447f9db Add type example 2014-08-17 08:04:41 -07:00
Keith Smiley
d7fd8e73d0 Give up aligning by colons
Instead align to the opening paren
2014-08-16 15:21:58 -07:00
Keith Smiley
7e0eb6d668 Fix nested parens in multiline declarations
Fixes #19 I hope
2014-08-16 14:39:43 -07:00
Keith Smiley
1ffd1454a4 Indent multi line paren stuff
Fixes #19
2014-08-16 14:18:23 -07:00
Keith Smiley
fdb1ac8e71 Fix indenting with ==
Closes #16
2014-08-16 13:52:10 -07:00
Keith Smiley
9a31e2fbfc Example for
https://github.com/Keithbsmiley/swift.vim/pull/15
2014-08-14 08:54:08 -07: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
e18dcdfba8 Add swift preprocessor stuff
Closes #10
2014-08-03 15:18:57 -07:00
Keith Smiley
44f055d446 Add exponential number types 2014-06-27 23:19:09 -07:00
Keith Smiley
f22b1e26e8 Add string interpolated function call example 2014-06-16 09:35:30 -07:00
Keith Smiley
f16e20650b Add examples of attributes 2014-06-15 20:38:57 -07:00
Keith Smiley
4fdea6f297 Add nested multiline comment example 2014-06-15 20:10:55 -07:00
Keith Smiley
a34e24316f Colon alignment example 2014-06-15 12:29:23 -07:00
Keith Smiley
9a544433ac Example of string arguments 2014-06-15 11:40:47 -07:00
Keith Smiley
48676bfa73 Fix ! operator coloring 2014-06-14 12:42:53 -07:00
Keith Smiley
6e6f5a35fb Add interpolated string example 2014-06-13 18:58:20 -07:00
Keith Smiley
72f0d73b91 Fix generics highlighting 2014-06-13 17:00:54 -07:00
Keith Smiley
9625b90924 Examples 2014-06-13 16:32:46 -07:00
Keith Smiley
90a37957d1 Examples 2014-06-13 15:33:10 -07:00
Keith Smiley
90aac73da9 Add literal and operator examples 2014-06-13 13:16:35 -07:00
Keith Smiley
79390292ac Add an example script 2014-06-13 11:45:22 -07:00