[Grazie][IDEA-338175] Suppress LanguageTool's unpaired parenthesis warnings on number ranges with semicolon

GitOrigin-RevId: b4f7de62a53aff2518dae38585c400ccf2a45193
This commit is contained in:
Ekaterina Berezhko
2024-03-27 12:24:26 +00:00
committed by intellij-monorepo-bot
parent e7ff7917be
commit ceba3d6cfc
2 changed files with 3 additions and 1 deletions
@@ -182,7 +182,7 @@ private val logger = LoggerFactory.getLogger(LanguageToolChecker::class.java)
private val cacheKey = Key.create<List<LanguageToolChecker.Problem>>("grazie.LT.problem.cache")
private val interner = Interner.createWeakInterner<String>()
private val sentenceSeparationRules = setOf("LC_AFTER_PERIOD", "PUNT_GEEN_HL", "KLEIN_NACH_PUNKT")
private val openClosedRangeStart = Regex("[\\[(].+?(\\.\\.|:|,).+[])]")
private val openClosedRangeStart = Regex("[\\[(].+?(\\.\\.|:|,|;).+[])]")
private val openClosedRangeEnd = Regex(".*" + openClosedRangeStart.pattern)
internal fun grammarRules(tool: JLanguageTool, lang: Lang): List<LanguageToolRule> {
@@ -33,6 +33,8 @@ class ForMultiLanguageSupport {
// The index is in the range [start, end). Tries to find a group of non-conflicting events in range [`startIndex`..`inEvents.size()`).
// Move [0; value) elements to the end of the list, so this list will start from element.
// An iterable of bundle instances
// Resolve '../' in paths (like real_path)