mirror of
https://github.com/chylex/IntelliJ-Rainbow-Brackets.git
synced 2025-05-07 00:34:06 +02:00
reformat code
This commit is contained in:
parent
aad41c1b3d
commit
61c5a9fac3
gradle.properties
src
main/kotlin/com/github/izhangzhihao/rainbow/brackets
test/kotlin/com/github/izhangzhihao/rainbow/brackets
@ -1,11 +1,11 @@
|
||||
group = "com.github.izhangzhihao"
|
||||
name = "Rainbow Brackets"
|
||||
ideaVersion = IC-2017.2
|
||||
javaVersion = 1.8
|
||||
kotlinVersion = 1.2.21
|
||||
group="com.github.izhangzhihao"
|
||||
name="Rainbow Brackets"
|
||||
ideaVersion=IC-2017.2
|
||||
javaVersion=1.8
|
||||
kotlinVersion=1.2.21
|
||||
kotlinLanguageVersion=1.2
|
||||
kotlinTargetVersion=1.1
|
||||
version = 5.0-RC0
|
||||
downloadIdeaSources = true
|
||||
publishUsername = izhangzhihao
|
||||
publishChannels = Stable
|
||||
version=5.0-RC0
|
||||
downloadIdeaSources=true
|
||||
publishUsername=izhangzhihao
|
||||
publishChannels=Stable
|
@ -9,11 +9,6 @@ package com.github.izhangzhihao.rainbow.brackets
|
||||
import com.intellij.codeInsight.highlighting.BraceMatchingUtil
|
||||
import com.intellij.lang.*
|
||||
|
||||
/**
|
||||
* PairedBraceProvider
|
||||
*
|
||||
* Created by Yii.Guxing on 2018/1/30
|
||||
*/
|
||||
interface PairedBraceProvider {
|
||||
val pairs: List<BracePair>
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.github.izhangzhihao.rainbow.brackets
|
||||
|
||||
import com.intellij.ide.highlighter.JavaFileType
|
||||
import com.intellij.psi.PsiDocumentManager
|
||||
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase
|
||||
import io.kotlintest.matchers.shouldBe
|
||||
@ -14,7 +15,7 @@ public class Test<T> {
|
||||
}
|
||||
}
|
||||
""".trimIndent()
|
||||
myFixture.configureByText("dummy.java", code)
|
||||
myFixture.configureByText(JavaFileType.INSTANCE, code)
|
||||
PsiDocumentManager.getInstance(project).commitAllDocuments()
|
||||
val doHighlighting = myFixture.doHighlighting()
|
||||
assertFalse(doHighlighting.isEmpty())
|
||||
|
Loading…
Reference in New Issue
Block a user