mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Merge pull request #3058 from remcohaszing/yaml-indent-action
Add yaml indent action
This commit is contained in:
commit
e57709f4d9
1 changed files with 10 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import type { languages } from '../../fillers/monaco-editor-core';
|
import { languages } from '../../fillers/monaco-editor-core';
|
||||||
|
|
||||||
export const conf: languages.LanguageConfiguration = {
|
export const conf: languages.LanguageConfiguration = {
|
||||||
comments: {
|
comments: {
|
||||||
|
|
@ -25,7 +25,15 @@ export const conf: languages.LanguageConfiguration = {
|
||||||
],
|
],
|
||||||
folding: {
|
folding: {
|
||||||
offSide: true
|
offSide: true
|
||||||
}
|
},
|
||||||
|
onEnterRules: [
|
||||||
|
{
|
||||||
|
beforeText: /:\s*$/,
|
||||||
|
action: {
|
||||||
|
indentAction: languages.IndentAction.Indent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
export const language = <languages.IMonarchLanguage>{
|
export const language = <languages.IMonarchLanguage>{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue