Skip to content

Commit a16fefa

Browse files
committed
more bracket supported
1 parent 485b4f3 commit a16fefa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib-n-ide/src/main/java/com/duy/ide/editor/view/HighlightEditorView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public CharSequence filter(CharSequence source, int start,
192192
if (mIsAutoPair) {
193193
if (end - start == 1 && start < source.length() && dstart < dest.length()) {
194194
char c = source.charAt(start);
195-
if (c == '(' || c == '{' || c == '[') {
195+
if (c == '(' || c == '{' || c == '[' || c == '"' || c == '\'') {
196196
return addBracket(source, start);
197197
}
198198
}

0 commit comments

Comments
 (0)