Skip to content

Commit

Permalink
Update org.jetbrains.intellij plugin to latest version #96 : added gr…
Browse files Browse the repository at this point in the history
…adle task for parser generation
  • Loading branch information
xonixx committed May 11, 2022
1 parent 307ddb8 commit 4f4119b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id 'java'
// TODO is buggy in 1.1.6: https://github.com/JetBrains/gradle-intellij-plugin/issues/752
id 'org.jetbrains.intellij' version '1.4.0'
id "org.jetbrains.grammarkit" version "2021.1.3"
// id 'org.jetbrains.kotlin.jvm' version '1.4.31'
Expand All @@ -24,6 +23,16 @@ task lexer(type: org.jetbrains.grammarkit.tasks.GenerateLexer) {
purgeOldFiles = true
}

task parser(type: org.jetbrains.grammarkit.tasks.GenerateParser) {
// dependsOn lexer

source = "src/main/java/intellij_awk/Awk.bnf"
targetRoot = 'src/main/gen'
pathToParser = "intellij_awk/AwkParser.java"
pathToPsiRoot = "intellij_awk/psi"
purgeOldFiles = true
}

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = '2021.1.3'
Expand Down

0 comments on commit 4f4119b

Please sign in to comment.