mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 21:25:45 +01:00
fix whitespace
This commit is contained in:
@@ -217,10 +217,10 @@ vimperator.Commands = function() //{{{
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// only escape "\\" and "\ " in non quoted strings
|
// only escape "\\" and "\ " in non quoted strings
|
||||||
if (!in_single_string && !in_double_string && str[i+1] != "\\" && str[i+1] != " ")
|
if (!in_single_string && !in_double_string && str[i + 1] != "\\" && str[i + 1] != " ")
|
||||||
continue outer;
|
continue outer;
|
||||||
// only escape "\\" and "\'" in single quoted strings
|
// only escape "\\" and "\'" in single quoted strings
|
||||||
else if (in_single_string && str[i+1] != "\\" && str[i+1] != "'")
|
else if (in_single_string && str[i + 1] != "\\" && str[i + 1] != "'")
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -276,7 +276,7 @@ vimperator.Commands = function() //{{{
|
|||||||
var count = 0; // the length of the argument
|
var count = 0; // the length of the argument
|
||||||
var i = 0;
|
var i = 0;
|
||||||
outer:
|
outer:
|
||||||
while(i < str.length)
|
while (i < str.length)
|
||||||
{
|
{
|
||||||
// skip whitespace
|
// skip whitespace
|
||||||
if (/\s/.test(str[i]))
|
if (/\s/.test(str[i]))
|
||||||
|
|||||||
Reference in New Issue
Block a user