From 605a7f6ed210240f4dd1c060cb3e9976c3b6d66b Mon Sep 17 00:00:00 2001 From: ice1000 Date: Wed, 3 Jul 2019 07:27:58 -0700 Subject: [PATCH] [ gradle ] Versioning stuffs --- build.gradle.kts | 50 ++++++++++++++++++------------------------------ 1 file changed, 19 insertions(+), 31 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index d4ee45b..e972e64 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,7 @@ val commitHash = kotlin.run { output.trim() } -val pluginComingVersion = "0.5.4" +val pluginComingVersion = "0.6.0" val pluginVersion = if (isCI) "$pluginComingVersion-$commitHash" else pluginComingVersion val packageName = "org.ice1000.tt" @@ -247,27 +247,29 @@ val genVoileUtility = utilities("genVoileUtility") { "LINE_COMMENT" to "LINE_COMMENT") } +val cubicalTTTokenPairs = listOf( + "KEYWORD" to "KEYWORD", + "IDENTIFIER" to "IDENTIFIER", + "SEMICOLON" to "SEMICOLON", + "FUNCTION_NAME" to "FUNCTION_DECLARATION", + "DATATYPE_NAME" to "CLASS_NAME", + "COMMA" to "COMMA", + "PAREN" to "PARENTHESES", + "BRACK" to "BRACKETS", + "UNDEFINED" to "KEYWORD", + "HOLE" to "LABEL", + "DIMENSION" to "NUMBER", + "PROJECTION" to "INSTANCE_FIELD", + "LINE_COMMENT" to "LINE_COMMENT", + "BLOCK_COMMENT" to "BLOCK_COMMENT") + val genYaccTTUtility = utilities("genYaccTTUtility") { languageName = "YaccTT" constantPrefix = "YACC_TT" exeName = "yacctt" trimVersion = "version.trim()" supportsParsing = true - highlightTokenPairs = listOf( - "KEYWORD" to "KEYWORD", - "IDENTIFIER" to "IDENTIFIER", - "SEMICOLON" to "SEMICOLON", - "FUNCTION_NAME" to "FUNCTION_DECLARATION", - "DATATYPE_NAME" to "CLASS_NAME", - "COMMA" to "COMMA", - "PAREN" to "PARENTHESES", - "BRACK" to "BRACKETS", - "UNDEFINED" to "KEYWORD", - "HOLE" to "LABEL", - "DIMENSION" to "NUMBER", - "PROJECTION" to "INSTANCE_FIELD", - "LINE_COMMENT" to "LINE_COMMENT", - "BLOCK_COMMENT" to "BLOCK_COMMENT") + highlightTokenPairs = cubicalTTTokenPairs } val genCubicalTTUtility = utilities("genCubicalTTUtility") { @@ -276,21 +278,7 @@ val genCubicalTTUtility = utilities("genCubicalTTUtility") { exeName = "cubical" trimVersion = "version.trim()" supportsParsing = true - highlightTokenPairs = listOf( - "KEYWORD" to "KEYWORD", - "IDENTIFIER" to "IDENTIFIER", - "SEMICOLON" to "SEMICOLON", - "FUNCTION_NAME" to "FUNCTION_DECLARATION", - "DATATYPE_NAME" to "CLASS_NAME", - "COMMA" to "COMMA", - "PAREN" to "PARENTHESES", - "BRACK" to "BRACKETS", - "UNDEFINED" to "KEYWORD", - "HOLE" to "LABEL", - "DIMENSION" to "NUMBER", - "PROJECTION" to "INSTANCE_FIELD", - "LINE_COMMENT" to "LINE_COMMENT", - "BLOCK_COMMENT" to "BLOCK_COMMENT") + highlightTokenPairs = cubicalTTTokenPairs } val genAgdaUtility = utilities("genAgdaUtility") {