Skip to content

Commit

Permalink
JS: fix module.ident parse regex
Browse files Browse the repository at this point in the history
  • Loading branch information
obfusk committed Aug 27, 2024
1 parent 5c4bada commit 2ab44fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/koneko.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ const parseOne = (s, p0, fname, end = null) => { // {{{1
// sugar
else if (t("\\.{3}")) {
return [p1, ident("__ellipsis__")]
} else if (t("('?)(" + _idt + ")\.(" + _idt + ")")) {
} else if (t("('?)(" + _idt + ")\\.(" + _idt + ")")) {
return [p1, kwd(m[4]), kwd(m[3]), ident("__module-get__"),
...(m[2] ? [] : [ident("__call__")])]
} else if (t("(['.])\\[")) {
Expand Down

0 comments on commit 2ab44fe

Please sign in to comment.