「対応する括弧に移動」の版間の差分
見出しの修正 |
→Kuro, Kurama 版: 省略された波括弧の追加 |
||
| 52行目: | 52行目: | ||
for (var i = 0; i < s.length; i++) { | for (var i = 0; i < s.length; i++) { | ||
x++; | x++; | ||
if (s.charAt(i) == c1) | if (s.charAt(i) == c1) { | ||
st++; | st++; | ||
if (s.charAt(i) == c2) | } | ||
if (s.charAt(i) == c2) { | |||
st--; | st--; | ||
} | |||
if (st == 0) { | if (st == 0) { | ||
y = GetActivePointY(mePosLogical); | y = GetActivePointY(mePosLogical); | ||
| 87行目: | 89行目: | ||
for (var i = s.length - 1; i >= 0; i--) { | for (var i = s.length - 1; i >= 0; i--) { | ||
x--; | x--; | ||
if (s.charAt(i) == c1) | if (s.charAt(i) == c1) { | ||
st++; | st++; | ||
if (s.charAt(i) == c2) | } | ||
if (s.charAt(i) == c2) { | |||
st--; | st--; | ||
} | |||
if (st == 0) { | if (st == 0) { | ||
y = GetActivePointY(mePosLogical); | y = GetActivePointY(mePosLogical); | ||
スポンサーリンク