diff --git a/CHANGELOG.md b/CHANGELOG.md index f7f3989..74f6f22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Top-level constant references are now highlighted correctly (#18) + ## [0.0.5] - 2023-08-01 ### Added diff --git a/gradle.properties b/gradle.properties index 0a49a5d..b0bfb16 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.vinted.packwerkintellij pluginName = packwerk-intellij pluginRepositoryUrl = https://github.com/vinted/packwerk-intellij # SemVer format -> https://semver.org -pluginVersion = 0.0.5 +pluginVersion = 0.0.6 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 223 diff --git a/src/main/kotlin/com/vinted/packwerkintellij/annotators/PackwerkAnnotator.kt b/src/main/kotlin/com/vinted/packwerkintellij/annotators/PackwerkAnnotator.kt index 668683f..8ded2fa 100644 --- a/src/main/kotlin/com/vinted/packwerkintellij/annotators/PackwerkAnnotator.kt +++ b/src/main/kotlin/com/vinted/packwerkintellij/annotators/PackwerkAnnotator.kt @@ -17,6 +17,7 @@ import com.intellij.psi.PsiFile import com.vinted.packwerkintellij.PackwerkSettingsState import org.intellij.markdown.lexer.push import org.jetbrains.plugins.ruby.ruby.lang.psi.references.RColonReference +import org.jetbrains.plugins.ruby.ruby.lang.psi.references.RTopConstReference import org.jetbrains.plugins.ruby.ruby.lang.psi.variables.RConstant import java.nio.charset.Charset import java.util.* @@ -144,7 +145,10 @@ internal class PackwerkAnnotator : ExternalAnnotator