mirror of
https://github.com/zap-proto/syntax.git
synced 2026-10-30 15:03:35 +00:00
- TextMate grammar for .zap and .zaps files - Shiki integration for web highlighting - VS Code extension support - Monaco Editor compatibility - Comprehensive type/keyword/annotation highlighting - Example schema files
42 lines
1019 B
JSON
42 lines
1019 B
JSON
{
|
|
"comments": {
|
|
"lineComment": "#",
|
|
"blockComment": ["/*", "*/"]
|
|
},
|
|
"brackets": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
["<", ">"]
|
|
],
|
|
"autoClosingPairs": [
|
|
{ "open": "{", "close": "}" },
|
|
{ "open": "[", "close": "]" },
|
|
{ "open": "(", "close": ")" },
|
|
{ "open": "<", "close": ">" },
|
|
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
|
{ "open": "'", "close": "'", "notIn": ["string"] },
|
|
{ "open": "`", "close": "`", "notIn": ["string"] }
|
|
],
|
|
"surroundingPairs": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
["<", ">"],
|
|
["\"", "\""],
|
|
["'", "'"],
|
|
["`", "`"]
|
|
],
|
|
"folding": {
|
|
"markers": {
|
|
"start": "^\\s*#\\s*region\\b",
|
|
"end": "^\\s*#\\s*endregion\\b"
|
|
}
|
|
},
|
|
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
|
|
"indentationRules": {
|
|
"increaseIndentPattern": "^.*\\{[^}]*$",
|
|
"decreaseIndentPattern": "^\\s*\\}"
|
|
}
|
|
}
|