Skip to content

Commit 06d629e

Browse files
authored
[pkl.lua] Work around typealias scoping bug (#57)
1 parent a86888f commit 06d629e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/pkl.lua/PklProject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
amends "../basePklProject.pkl"
1818

1919
package {
20-
version = "1.0.0"
20+
version = "1.0.1"
2121
}

packages/pkl.lua/lua.pkl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
module pkl.lua.lua
1919

2020
import "pkl:reflect"
21+
import "lua.pkl"
2122

2223
local const pathSpecRegex: Regex = let (prop = #"(?:[^\[\]^*.]+)"#) Regex(#"""
2324
(?x)
@@ -63,7 +64,7 @@ local const splatKey: Key = new Key { key = "*" }
6364
typealias LuaKeyword = "and"|"break"|"do"|"else"|"elseif"|"end"|"false"|"for"|"function"|"goto"|"if"|"in"|"local"|"nil"|"not"|"or"|"repeat"|"return"|"then"|"true"|"until"|"while"
6465

6566
/// A string that is a valid Lua identifier.
66-
typealias LuaIdentifier = String(matches(Regex("[a-zA-Z_][a-zA-Z0-9_]*")) && !(this is LuaKeyword))
67+
typealias LuaIdentifier = String(matches(Regex("[a-zA-Z_][a-zA-Z0-9_]*")) && !(this is lua.LuaKeyword))
6768

6869
/// Directs [Renderer] to output additional text [before] and/or [after] rendering a [value].
6970
class LuaRenderDirective {

0 commit comments

Comments
 (0)