Skip to content

Commit

Permalink
Fixed navigation bug with string variable
Browse files Browse the repository at this point in the history
  • Loading branch information
taraktikos committed May 31, 2021
1 parent dec0c24 commit 2317ca7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# cucumber-clojure Changelog

## [Unreleased]
## [2021.1.1.0]
## [2021.1.1.0] Release for IntelliJ 2021.1.1
## [2020.3.3.0] Release for IntelliJ 2020.3.3
## [2020.3.2.1] Release for IntelliJ 2020.3.2
- Minor fixes
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
// gradle-changelog-plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
id("org.jetbrains.changelog") version "1.1.2"
// detekt linter - read more: https://detekt.github.io/detekt/gradle.html
id("io.gitlab.arturbosch.detekt") version "1.15.0"
id("io.gitlab.arturbosch.detekt") version "1.17.1"
// ktlint linter - read more: https://github.com/JLLeitschuh/ktlint-gradle
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
}
Expand All @@ -29,7 +29,7 @@ repositories {
jcenter()
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.15.0")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.17.1")
}

// Configure gradle-intellij-plugin plugin.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.github.taraktikos.cucumberclojure
pluginName = cucumber-clojure
pluginVersion = 2021.1.1.0
pluginVersion = 2021.1.1.1
pluginSinceBuild = 211
pluginUntilBuild = 211.*
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ import org.jetbrains.plugins.cucumber.steps.AbstractStepDefinition
class StepDefinition(val clList: ClList) : AbstractStepDefinition(clList.firstChild) {
val integerRegexp = "(-?\\d+)"
val floatRegexp = "([+-]?(\\d+.)?\\d+)"
val stringRegexp = "(.*)"

val paramRegexp = mapOf(
"{int}" to integerRegexp,
"{bigdecimal}" to floatRegexp,
"{float}" to floatRegexp,
"{double}" to floatRegexp
"{double}" to floatRegexp,
"{string}" to stringRegexp
)

override fun getVariableNames(): List<String> {
return listOf("a", "b")
return listOf()
}

override fun getCucumberRegexFromElement(element: PsiElement): String {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<change-notes><![CDATA[
<ul>
<li>2021.1.1.1: Fixed navigation bug with string variable</li>
<li>2021.1.1.0: Release for IntelliJ 2021.1.1</li>
<li>2020.3.3.0: Release for IntelliJ 2020.3.3
<ul>
Expand Down

0 comments on commit 2317ca7

Please sign in to comment.