| 1 |
{ |
| 2 |
"fileTypes": ["reg", "REG"], |
| 3 |
"name": "reg", |
| 4 |
"patterns": [ |
| 5 |
{ |
| 6 |
"match": "Windows Registry Editor Version 5\\.00|REGEDIT4", |
| 7 |
"name": "keyword.control.import.reg" |
| 8 |
}, |
| 9 |
{ |
| 10 |
"captures": { |
| 11 |
"1": { |
| 12 |
"name": "punctuation.definition.comment.reg" |
| 13 |
} |
| 14 |
}, |
| 15 |
"match": "(;).*$", |
| 16 |
"name": "comment.line.semicolon.reg" |
| 17 |
}, |
| 18 |
{ |
| 19 |
"captures": { |
| 20 |
"1": { |
| 21 |
"name": "punctuation.definition.section.reg" |
| 22 |
}, |
| 23 |
"2": { |
| 24 |
"name": "entity.section.reg" |
| 25 |
}, |
| 26 |
"3": { |
| 27 |
"name": "punctuation.definition.section.reg" |
| 28 |
} |
| 29 |
}, |
| 30 |
"match": "^\\s*(\\[(?!-))(.*?)(\\])", |
| 31 |
"name": "entity.name.function.section.add.reg" |
| 32 |
}, |
| 33 |
{ |
| 34 |
"captures": { |
| 35 |
"1": { |
| 36 |
"name": "punctuation.definition.section.reg" |
| 37 |
}, |
| 38 |
"2": { |
| 39 |
"name": "entity.section.reg" |
| 40 |
}, |
| 41 |
"3": { |
| 42 |
"name": "punctuation.definition.section.reg" |
| 43 |
} |
| 44 |
}, |
| 45 |
"match": "^\\s*(\\[-)(.*?)(\\])", |
| 46 |
"name": "entity.name.function.section.delete.reg" |
| 47 |
}, |
| 48 |
{ |
| 49 |
"captures": { |
| 50 |
"2": { |
| 51 |
"name": "punctuation.definition.quote.reg" |
| 52 |
}, |
| 53 |
"3": { |
| 54 |
"name": "support.function.regname.ini" |
| 55 |
}, |
| 56 |
"4": { |
| 57 |
"name": "punctuation.definition.quote.reg" |
| 58 |
}, |
| 59 |
"5": { |
| 60 |
"name": "punctuation.definition.equals.reg" |
| 61 |
}, |
| 62 |
"7": { |
| 63 |
"name": "keyword.operator.arithmetic.minus.reg" |
| 64 |
}, |
| 65 |
"9": { |
| 66 |
"name": "punctuation.definition.quote.reg" |
| 67 |
}, |
| 68 |
"10": { |
| 69 |
"name": "string.name.regdata.reg" |
| 70 |
}, |
| 71 |
"11": { |
| 72 |
"name": "punctuation.definition.quote.reg" |
| 73 |
}, |
| 74 |
"13": { |
| 75 |
"name": "support.type.dword.reg" |
| 76 |
}, |
| 77 |
"14": { |
| 78 |
"name": "keyword.operator.arithmetic.colon.reg" |
| 79 |
}, |
| 80 |
"15": { |
| 81 |
"name": "constant.numeric.dword.reg" |
| 82 |
}, |
| 83 |
"17": { |
| 84 |
"name": "support.type.dword.reg" |
| 85 |
}, |
| 86 |
"18": { |
| 87 |
"name": "keyword.operator.arithmetic.parenthesis.reg" |
| 88 |
}, |
| 89 |
"19": { |
| 90 |
"name": "keyword.operator.arithmetic.parenthesis.reg" |
| 91 |
}, |
| 92 |
"20": { |
| 93 |
"name": "constant.numeric.hex.size.reg" |
| 94 |
}, |
| 95 |
"21": { |
| 96 |
"name": "keyword.operator.arithmetic.parenthesis.reg" |
| 97 |
}, |
| 98 |
"22": { |
| 99 |
"name": "keyword.operator.arithmetic.colon.reg" |
| 100 |
}, |
| 101 |
"23": { |
| 102 |
"name": "constant.numeric.hex.reg" |
| 103 |
}, |
| 104 |
"24": { |
| 105 |
"name": "keyword.operator.arithmetic.linecontinuation.reg" |
| 106 |
}, |
| 107 |
"25": { |
| 108 |
"name": "comment.declarationline.semicolon.reg" |
| 109 |
} |
| 110 |
}, |
| 111 |
"match": "^(\\s*([\"']?)(.+?)([\"']?)\\s*(=))?\\s*((-)|(([\"'])(.*?)([\"']))|(((?i:dword))(\\:)\\s*([\\dabcdefABCDEF]{1,8}))|(((?i:hex))((\\()([\\d]*)(\\)))?(\\:)(.*?)(\\\\?)))\\s*(;.*)?$", |
| 112 |
"name": "meta.declaration.reg" |
| 113 |
}, |
| 114 |
{ |
| 115 |
"match": "[0-9]+", |
| 116 |
"name": "constant.numeric.reg" |
| 117 |
}, |
| 118 |
{ |
| 119 |
"match": "[a-fA-F]+", |
| 120 |
"name": "constant.numeric.hex.reg" |
| 121 |
}, |
| 122 |
{ |
| 123 |
"match": ",+", |
| 124 |
"name": "constant.numeric.hex.comma.reg" |
| 125 |
}, |
| 126 |
{ |
| 127 |
"match": "\\\\", |
| 128 |
"name": "keyword.operator.arithmetic.linecontinuation.reg" |
| 129 |
} |
| 130 |
], |
| 131 |
"scopeName": "source.reg", |
| 132 |
"uuid": "B7773F5B-C43A-4BB9-843A-4AC119250EBD" |
| 133 |
} |
| 134 |
|