Skip to content

Commit b8c9862

Browse files
committed
chore(deps): update Kotlin, Gradle version
- Update Kotlin from 2.0.0-Beta3 to 2.0.20, aligning with the latest stable release. - Upgrade Gradle distribution from 8.2 to 8.10 for improved performance and features. - Refactor LuaParser and LuaLexer components for better maintainability. - Introduce LuaVersion enum in version.kt to support different Lua versions. - Clean up build.gradle.kts by removing unused imports and adopting the latest plugin versions.
1 parent bc6ff93 commit b8c9862

7 files changed

Lines changed: 15 additions & 7 deletions

File tree

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import com.vanniktech.maven.publish.JavadocJar
2-
import com.vanniktech.maven.publish.KotlinMultiplatform
3-
41
plugins {
5-
kotlin("multiplatform").version("2.0.0-Beta3")
2+
kotlin("multiplatform") version "2.0.20"
63
java
7-
id("com.vanniktech.maven.publish") version "0.27.0"
4+
id("com.vanniktech.maven.publish") version "0.29.0"
85
id("maven-publish")
96
signing
107
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/commonMain/kotlin/io/github/dingyi222666/luaparser/lexer/LuaLexer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class LuaLexer(
77
private val source: CharSequence
88
) : Iterator<Pair<LuaTokenTypes, String>> {
99

10-
1110
private val bufferLen = source.length;
1211

1312
private var offset = 0

src/commonMain/kotlin/io/github/dingyi222666/luaparser/parser/LuaParser.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import kotlin.properties.Delegates
1818
* @description:
1919
**/
2020
class LuaParser(
21+
private val luaVersion: LuaVersion = LuaVersion.LUA_5_4,
2122
private val errorRecovery: Boolean = true,
2223
) {
2324
private var lexer by Delegates.notNull<WrapperLuaLexer>()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package io.github.dingyi222666.luaparser.parser
2+
3+
enum class LuaVersion(val value: Int) {
4+
LUA_5_3(530),
5+
LUA_5_4(540),
6+
ANDROLUA_5_3(531),
7+
}

0 commit comments

Comments
 (0)