Open NAN0916 opened 3 years ago
codemirror@5.37.0 mode: x-mysql
When parentheses are nested within a line
There are problems with line wrapping
I don't expect that so i update /codemirror/mode/sql/sql.js line 184
const temp = stream.string.slice(stream.start+1, stream.string.length); if (tok == "(" && temp.indexOf('(') === -1) pushContext(stream, state, ")"); else if (tok == "[" && temp.indexOf('[') === -1) pushContext(stream, state, "]");
It looks fine
so Can we change the code like this?
I cannot reproduce this problem. If I put a text similar to what you show in your screenshot into http://cm/mode/sql/?mime=text/x-mysql , each line is indented 0 units, as expected.
codemirror@5.37.0 mode: x-mysql
When parentheses are nested within a line
There are problems with line wrapping
I don't expect that so i update /codemirror/mode/sql/sql.js
line 184
It looks fine
so Can we change the code like this?