File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/org/covscript/devkt/lang Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ repositories {
42
42
43
43
dependencies {
44
44
compileOnly(kotlin(" compiler-embeddable" , kotlinVersion))
45
- val version = " efb0f52d89 "
45
+ val version = " 45252cb97a "
46
46
compileOnly(group = " com.github.ice1000.dev-kt" , name = " common" , version = version)
47
47
runtime(group = " com.github.ice1000.dev-kt" , name = " swing" , version = version)
48
48
}
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.6 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.7 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import org.ice1000.devkt.ASTToken
6
6
import org.ice1000.devkt.openapi.*
7
7
import org.ice1000.devkt.openapi.ui.IconLoader
8
8
import org.ice1000.devkt.openapi.util.CompletionElement
9
+ import org.ice1000.devkt.ui.DevKtDocumentHandler
9
10
import org.jetbrains.kotlin.com.intellij.psi.PsiElement
10
11
import org.jetbrains.kotlin.com.intellij.psi.tree.IElementType
11
12
import javax.swing.Icon
@@ -57,7 +58,9 @@ class CovScript<TextAttributes> : ExtendedDevKtLanguage<TextAttributes>(
57
58
" extends"
58
59
).mapTo(HashSet ()) {
59
60
CompletionElement (it, type = " Keyword" )
60
- } + CompletionElement (" system.out.println" , " sout" )
61
+ } + listOf (object : CompletionElement (" system.out.println" , " sout" ) {
62
+ override fun afterInsert (documentHandler : DevKtDocumentHandler <* >) = documentHandler.insert(" (" )
63
+ })
61
64
62
65
override fun invokeAutoPopup (currentElement : ASTToken , inputString : String ): Boolean {
63
66
return inputString == " >" || super .invokeAutoPopup(currentElement, inputString)
You can’t perform that action at this time.
0 commit comments