Skip to content

Commit

Permalink
Merge pull request antlr#13 from ftomassetti/adaptforjit
Browse files Browse the repository at this point in the history
Adaptforjit
  • Loading branch information
ftomassetti authored Aug 20, 2018
2 parents 943cf4c + 44db804 commit 29aa404
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion antlr-kotlin-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ repositories {
dependencies {
compileOnly gradleApi()
compileOnly "org.antlr:antlr4:${antlrVersion}@jar"
compileOnly "com.strumenta.antlr-kotlin:antlr-kotlin-target:${projectVersion}@jar"
compileOnly project(':antlr-kotlin-target')
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
}
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,10 @@ open class DefaultErrorStrategy : ANTLRErrorStrategy {
}

// even that didn't work; must throw the exception
val e: InputMismatchException
if (nextTokensContext == null) {
e = InputMismatchException(recognizer)
val e: InputMismatchException = if (nextTokensContext == null) {
InputMismatchException(recognizer)
} else {
e = InputMismatchException(recognizer, nextTokensState, nextTokensContext!!)
InputMismatchException(recognizer, nextTokensState, nextTokensContext!!)
}

throw e
Expand Down

0 comments on commit 29aa404

Please sign in to comment.