mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/lua: workaround builtins.match
alias issue
It seems that `with lib` isn't (always) bringing `match` into scope Odd, but we can fix by explicitly using `builtins.match`.
This commit is contained in:
parent
7dcdd6e989
commit
039f6c1973
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ rec {
|
|||
|
||||
# Valid lua identifiers are not reserved keywords, do not start with a digit,
|
||||
# and contain only letters, digits, and underscores.
|
||||
isIdentifier = s: !(isKeyword s) && (match "[A-Za-z_][0-9A-Za-z_]*" s) == [ ];
|
||||
isIdentifier = s: !(isKeyword s) && (builtins.match "[A-Za-z_][0-9A-Za-z_]*" s) == [ ];
|
||||
|
||||
# toLua' with default options, aliased as toLuaObject at the top-level
|
||||
toLua = toLua' { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue