1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-15 10:33:31 +01:00

Fix JS completion when function calls are present

This commit is contained in:
Kris Maglione
2008-10-12 20:10:13 +00:00
parent 99f3e3cfef
commit 12ff5a3bbc

View File

@@ -292,7 +292,7 @@ liberator.Completion = function () //{{{
{ {
case "(": case "(":
/* Function call, or if/while/for/... */ /* Function call, or if/while/for/... */
if (/\w\d$/.test(lastNonwhite)) if (/[\w\d$]/.test(lastNonwhite))
{ {
top[FUNCTIONS].push(i); top[FUNCTIONS].push(i);
top[STATEMENTS].pop(); top[STATEMENTS].pop();