Skip to content

Commit

Permalink
ref #5 Formally defined savedHighlights config structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu1kn committed Feb 17, 2018
1 parent 0873d28 commit 6450127
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,32 @@
},
"textmarker.savedHighlights": {
"description": "Highlights that get applied when opening editor",
"type": "object"
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"pattern": {
"type": "object",
"properties": {
"type": {
"enum": ["string", "regex"]
},
"expression": {
"type": "string"
},
"ignoreCase": {
"type": "boolean"
},
"wholeMatch": {
"type": "boolean"
}
},
"required": ["type", "expression", "ignoreCase", "wholeMatch"]
}
},
"required": ["pattern"]
}
}
}
},
Expand Down

0 comments on commit 6450127

Please sign in to comment.