Skip to content
Snippets Groups Projects
Commit 768bc112 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix SQL editor bracket matching

parent 4ffcc006
Branches
Tags
No related merge requests found
......@@ -100,7 +100,7 @@ export default class NativeQueryEditor extends Component {
console.log('Setting ACE Editor mode to:', this.state.modeInfo.mode);
editor.getSession().setMode(this.state.modeInfo.mode);
// monkey patch the mode to add our bracket/paren/braces-matching behavior
if (!editor.getSession().$mode.$behaviour) {
if (this.state.modeInfo.mode.indexOf("sql") >= 0) {
editor.getSession().$mode.$behaviour = new SQLBehaviour();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment