Skip to content

Commit f5bf57b

Browse files
committed
[sql-hint addon] Treat single quotes like double quotes when looking at tokens
See https://discuss.codemirror.net/t/codemirror-ignore-show-hints-if-the-class-is-cm-string/2513
1 parent 0ec0920 commit f5bf57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/hint/sql-hint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
token.string = token.string.slice(0, cur.ch - token.start);
265265
}
266266

267-
if (token.string.match(/^[.`"\w@][\w$#]*$/g)) {
267+
if (token.string.match(/^[.`"'\w@][\w$#]*$/g)) {
268268
search = token.string;
269269
start = token.start;
270270
end = token.end;

0 commit comments

Comments
 (0)