mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-06-01 01:34:07 +02:00
upper class visitor
This commit is contained in:
parent
678d04c5db
commit
23c14aa2e4
@ -75,6 +75,10 @@ internal class CollectionElementVisitor : RegexParserBaseVisitor<Pair<Collection
|
||||
return Pair(CollectionElement.CharacterClassExpression{it.isWhitespace()}, false)
|
||||
}
|
||||
|
||||
override fun visitUpperClass(ctx: RegexParser.UpperClassContext?): Pair<CollectionElement, Boolean> {
|
||||
return Pair(CollectionElement.CharacterClassExpression{it.isUpperCase()}, false)
|
||||
}
|
||||
|
||||
private fun cleanLiteralChar(str: String) : Pair<Char, Boolean> {
|
||||
return if (str.length > 2 && str[0] == '\\' && str[1] == 'd') Pair(Char(str.substring(2).toInt()), false)
|
||||
else if (str.length > 2 && str[0] == '\\' && str[1] == 'o') Pair(Char(str.substring(2).toInt(8)), false)
|
||||
|
Loading…
Reference in New Issue
Block a user