mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Grazie][IDEA-338175] Suppress LanguageTool's unpaired parenthesis warnings on number ranges with semicolon
GitOrigin-RevId: b4f7de62a53aff2518dae38585c400ccf2a45193
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e7ff7917be
commit
ceba3d6cfc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user