mirror of
https://github.com/chylex/IntelliJ-Rainbow-Brackets.git
synced 2025-05-09 15:34:05 +02:00
Add codecov badge in README.md & remove inline
in checkBracePair
This commit is contained in:
parent
51699c6aa7
commit
13a35b08d0
@ -1,5 +1,5 @@
|
||||
# Rainbow Brackets
|
||||
[](https://travis-ci.org/izhangzhihao/intellij-rainbow-brackets) [](https://www.codacy.com/app/izhangzhihao/intellij-rainbow-brackets?utm_source=github.com&utm_medium=referral&utm_content=izhangzhihao/intellij-rainbow-brackets&utm_campaign=badger) [](https://plugins.jetbrains.com/plugin/10080-rainbow-brackets) [](https://plugins.jetbrains.com/plugin/10080-rainbow-brackets) [](https://plugins.jetbrains.com/plugin/10080-rainbow-brackets) [](https://github.com/izhangzhihao/intellij-rainbow-brackets/issues)
|
||||
[](https://travis-ci.org/izhangzhihao/intellij-rainbow-brackets) [](https://www.codacy.com/app/izhangzhihao/intellij-rainbow-brackets?utm_source=github.com&utm_medium=referral&utm_content=izhangzhihao/intellij-rainbow-brackets&utm_campaign=badger) [](https://codecov.io/gh/izhangzhihao/intellij-rainbow-brackets) [](https://plugins.jetbrains.com/plugin/10080-rainbow-brackets) [](https://plugins.jetbrains.com/plugin/10080-rainbow-brackets) [](https://plugins.jetbrains.com/plugin/10080-rainbow-brackets) [](https://github.com/izhangzhihao/intellij-rainbow-brackets/issues)
|
||||
|
||||
## Rainbow Brackets / Rainbow Parentheses for IntelliJ IDEA based IDEs
|
||||
|
||||
|
@ -95,10 +95,10 @@ class DefaultRainbowVisitor : RainbowHighlightVisitor() {
|
||||
}
|
||||
}
|
||||
|
||||
private inline fun checkBracePair(brace: PsiElement,
|
||||
start: PsiElement,
|
||||
type: IElementType,
|
||||
next: PsiElement.() -> PsiElement?): Boolean {
|
||||
private fun checkBracePair(brace: PsiElement,
|
||||
start: PsiElement,
|
||||
type: IElementType,
|
||||
next: PsiElement.() -> PsiElement?): Boolean {
|
||||
var element: PsiElement? = start
|
||||
while (element != null && element != brace) {
|
||||
if (element is LeafPsiElement && element.elementType == type) {
|
||||
|
Loading…
Reference in New Issue
Block a user