mirror of
https://github.com/ilyakooo0/intellij-haskell.git
synced 2024-09-11 14:56:19 +03:00
Fix issue #497
This commit is contained in:
parent
e2376f9dec
commit
f92df8d572
@ -76,7 +76,7 @@ class HaskellReference(element: HaskellNamedElement, textRange: TextRange) exten
|
|||||||
}
|
}
|
||||||
|
|
||||||
private def isPartOfQualifier(namedElement: HaskellNamedElement): Boolean = {
|
private def isPartOfQualifier(namedElement: HaskellNamedElement): Boolean = {
|
||||||
Option(namedElement.getParent).map(_.getNode.getElementType).contains(HaskellTypes.HS_QUALIFIER)
|
Option(namedElement.getParent).map(_.getNode.getElementType).exists(elementType => elementType == HaskellTypes.HS_QUALIFIER || elementType == HaskellTypes.HS_Q_CON_QUALIFIER_1)
|
||||||
}
|
}
|
||||||
|
|
||||||
private def isPartOfQualifiedAs(namedElement: HaskellNamedElement): Boolean = {
|
private def isPartOfQualifiedAs(namedElement: HaskellNamedElement): Boolean = {
|
||||||
|
@ -24,7 +24,7 @@ import scala.collection.mutable.ListBuffer
|
|||||||
|
|
||||||
object StringUtil {
|
object StringUtil {
|
||||||
|
|
||||||
private final val PackageModuleQualifierPattern = """([a-zA-Z\-]+\-[\.0-9]+\:)?([A-Z][\w\\\-]*\.)+"""
|
private final val PackageModuleQualifierPattern = """([a-zA-Z\-]+\-[\.0-9]+\:)?([A-Z][\w\\\-\']*\.)+"""
|
||||||
private final val PackageQualifierPattern = """^([a-zA-Z\-]+\-[\.0-9]+\:)?"""
|
private final val PackageQualifierPattern = """^([a-zA-Z\-]+\-[\.0-9]+\:)?"""
|
||||||
|
|
||||||
def escapeString(s: String): String = {
|
def escapeString(s: String): String = {
|
||||||
|
Loading…
Reference in New Issue
Block a user