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