Instead of 'pattern' use 'enum'
'enum's are easy parseable for automatic documentation. They also
print nicer error messages.
},
"highlights.demote_while_editing":{
"type":"string",
- "pattern":"^(none|ws_regions|warnings|all)$"
+ "enum":["none", "ws_regions", "warnings", "all"]
},
"kill_old_processes":{
"type":"boolean"
},
"lint_mode":{
"type":"string",
- "pattern":"^(background|load_save|manual|save)$"
+ "enum":["background", "load_save", "manual", "save"]
},
"linters":{
"type":"object",
},
"lint_mode":{
"type":"string",
- "pattern":"^(background|load_save|manual|save)$"
+ "enum":["background", "load_save", "manual", "save"]
},
"selector": {
"type": "string"
"properties":{
"mark_style":{
"type":"string",
- "pattern":"^(fill|outline|solid_underline|squiggly_underline|stippled_underline|none)$"
+ "enum":["fill", "outline", "solid_underline", "squiggly_underline", "stippled_underline", "none"]
},
"priority":{
"type":"integer",
"type":"array",
"items":{
"type":"string",
- "pattern":"^(error|warning)$"
+ "enum": ["error", "warning"]
},
"minItems":1,
"uniqueItems":true
},
"show_panel_on_save":{
"type":"string",
- "pattern":"^(never|view|window)$"
+ "enum": ["never", "view", "window"]
},
"syntax_map":{
"type":"object"
"properties":{
"mark_style":{
"type":"string",
- "pattern":"^(fill|outline|solid_underline|squiggly_underline|stippled_underline|none)$"
+ "enum":["fill", "outline", "solid_underline", "squiggly_underline", "stippled_underline", "none"]
},
"priority":{
"type":"integer",
"type":"array",
"items":{
"type":"string",
- "pattern":"^(error|warning)$"
+ "enum": ["error", "warning"]
},
"minItems":1,
"uniqueItems":true
