Skip to content

Commit

Permalink
[ test ] Shit
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Apr 25, 2018
1 parent 5607300 commit 0272621
Show file tree
Hide file tree
Showing 2 changed files with 447 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/src/org/ice1000/devkt/lang/languages.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.com.intellij.psi.PsiElement
import org.jetbrains.kotlin.com.intellij.psi.PsiWhiteSpace
import org.jetbrains.kotlin.idea.KotlinLanguage
import org.jetbrains.kotlin.lexer.KotlinLexer
import org.jetbrains.kotlin.psi.KtParameter
import javax.swing.Icon

/**
Expand Down Expand Up @@ -163,6 +164,9 @@ class Kotlin<TextAttributes> : BuiltinDevKtLanguage<TextAttributes>(
private val lexer = KotlinLexer()
override fun createLexer(project: Project) = lexer
override val icon: Icon get() = DevKtIcons.KOTLIN
override fun shouldAddAsCompletion(element: PsiElement): Boolean {
return element is KtParameter || super.shouldAddAsCompletion(element)
}
}

/**
Expand Down
Loading

0 comments on commit 0272621

Please sign in to comment.