Commit ce448630 authored by Jérome Perrin's avatar Jérome Perrin

monaco_editor: minimal python support in gadget version

Just set indentation rules for now
parent 06b52b87
...@@ -171,6 +171,13 @@ ...@@ -171,6 +171,13 @@
.push(addExtraLibrary('./monaco-renderjs.d.ts', 'renderjs')) .push(addExtraLibrary('./monaco-renderjs.d.ts', 'renderjs'))
.push(addExtraLibrary('./monaco-jio.d.ts', 'jio')); .push(addExtraLibrary('./monaco-jio.d.ts', 'jio'));
} }
if (this.state.model_language === 'python') {
monaco.languages.setLanguageConfiguration('python', {
indentationRules: {
increaseIndentPattern: /^.*:$/
}
});
}
} }
return queue; return queue;
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment