1
0
mirror of https://github.com/chylex/IntelliJ-Rainbow-Brackets.git synced 2025-05-13 18:34:03 +02:00

[SQL] the END keyword is improperly detected as closing a BEGIN scope when the END actually closes a CASE

This commit is contained in:
张志豪 2021-06-30 18:07:22 +08:00
parent 61e3226ef3
commit 63736b058e

View File

@ -1,9 +1,13 @@
package com.github.izhangzhihao.rainbow.brackets.provider
import com.intellij.lang.BracePair
import com.intellij.sql.psi.SqlCommonKeywords.SQL_CASE
import com.intellij.sql.psi.SqlTokens.SQL_BEGIN
import com.intellij.sql.psi.SqlTokens.SQL_END
class SqlBracePairProvider : BracePairProvider {
override fun pairs(): List<BracePair> = listOf(BracePair(SQL_BEGIN, SQL_END, false))
override fun pairs(): List<BracePair> = listOf(
BracePair(SQL_BEGIN, SQL_END, false),
BracePair(SQL_CASE, SQL_END, false),
)
}