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 #2280
This commit is contained in:
parent
61e3226ef3
commit
63736b058e
@ -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),
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user