Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added function literals

  • Loading branch information...
commit 97156fdd6397acc4697f66f8e49578e2cdf17c00 1 parent e348ec5
@vkostyukov authored
Showing with 32 additions and 11 deletions.
  1. +13 −4 Kotlin.JSON-tmLanguage
  2. +19 −6 Kotlin.tmLanguage
  3. +0 −1  README.md
View
17 Kotlin.JSON-tmLanguage
@@ -117,10 +117,6 @@
"name": "storage.type.buildin.array.kotlin"
},
{
- "match": "(->)",
- "name": "keyword.operator.declaration.kotlin"
- },
- {
"begin": "\\b(Array|List|Map)<\\b",
"beginCaptures": {
"1": {
@@ -171,6 +167,19 @@
"include": "#statements"
}
]
+ },
+ {
+ "begin": "\\(",
+ "end": "\\)",
+ "patterns": [
+ {
+ "include": "#types"
+ }
+ ]
+ },
+ {
+ "match": "(->)",
+ "name": "keyword.operator.declaration.kotlin"
}
]
},
View
25 Kotlin.tmLanguage
@@ -953,12 +953,6 @@
<string>storage.type.buildin.array.kotlin</string>
</dict>
<dict>
- <key>match</key>
- <string>(-&gt;)</string>
- <key>name</key>
- <string>keyword.operator.declaration.kotlin</string>
- </dict>
- <dict>
<key>begin</key>
<string>\b(Array|List|Map)&lt;\b</string>
<key>beginCaptures</key>
@@ -1034,6 +1028,25 @@
</dict>
</array>
</dict>
+ <dict>
+ <key>begin</key>
+ <string>\(</string>
+ <key>end</key>
+ <string>\)</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#types</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(-&gt;)</string>
+ <key>name</key>
+ <string>keyword.operator.declaration.kotlin</string>
+ </dict>
</array>
</dict>
<key>variables</key>
View
1  README.md
@@ -27,7 +27,6 @@ There are three ways to install Kotlin Sublime Package:
TODO
----
-* add closures handling
* take scrot from this file: https://github.com/abreslav/life/blob/master/src/core/Board.kt
* test the package with https://github.com/abreslav/introduction-to-kotlin/tree/master/kotlin-examples
Please sign in to comment.
Something went wrong with that request. Please try again.