|
| 1 | +{ |
| 2 | + "scopeName": "template.tag.ng", |
| 3 | + "injectionSelector": "L:text.html#meta.tag -comment", |
| 4 | + "patterns": [ |
| 5 | + { |
| 6 | + "include": "#propertyBinding" |
| 7 | + }, |
| 8 | + { |
| 9 | + "include": "#eventBinding" |
| 10 | + }, |
| 11 | + { |
| 12 | + "include": "#twoWayBinding" |
| 13 | + }, |
| 14 | + { |
| 15 | + "include": "#templateBinding" |
| 16 | + } |
| 17 | + ], |
| 18 | + "repository": { |
| 19 | + "propertyBinding": { |
| 20 | + "begin": "(\\[\\s*@?[-_a-zA-Z0-9.$]*%?\\s*])(=)([\"'])", |
| 21 | + "beginCaptures": { |
| 22 | + "1": { |
| 23 | + "name": "entity.other.attribute-name.html entity.other.ng-binding-name.property.html", |
| 24 | + "patterns": [ |
| 25 | + { |
| 26 | + "include": "#bindingKey" |
| 27 | + } |
| 28 | + ] |
| 29 | + }, |
| 30 | + "2": { |
| 31 | + "name": "punctuation.separator.key-value.html" |
| 32 | + }, |
| 33 | + "3": { |
| 34 | + "name": "string.quoted.html punctuation.definition.string.begin.html" |
| 35 | + } |
| 36 | + }, |
| 37 | + "end": "\\3", |
| 38 | + "endCaptures": { |
| 39 | + "0": { |
| 40 | + "name": "string.quoted.html punctuation.definition.string.end.html" |
| 41 | + } |
| 42 | + }, |
| 43 | + "name": "meta.ng-binding.property.html", |
| 44 | + "contentName": "expression.ng", |
| 45 | + "patterns": [ |
| 46 | + { |
| 47 | + "include": "expression.ng" |
| 48 | + } |
| 49 | + ] |
| 50 | + }, |
| 51 | + "eventBinding": { |
| 52 | + "begin": "(\\(\\s*@?[-_a-zA-Z0-9.$]*\\s*\\))(=)([\"'])", |
| 53 | + "beginCaptures": { |
| 54 | + "1": { |
| 55 | + "name": "entity.other.attribute-name.html entity.other.ng-binding-name.event.html", |
| 56 | + "patterns": [ |
| 57 | + { |
| 58 | + "include": "#bindingKey" |
| 59 | + } |
| 60 | + ] |
| 61 | + }, |
| 62 | + "2": { |
| 63 | + "name": "punctuation.separator.key-value.html" |
| 64 | + }, |
| 65 | + "3": { |
| 66 | + "name": "string.quoted.html punctuation.definition.string.begin.html" |
| 67 | + } |
| 68 | + }, |
| 69 | + "end": "\\3", |
| 70 | + "endCaptures": { |
| 71 | + "0": { |
| 72 | + "name": "string.quoted.html punctuation.definition.string.end.html" |
| 73 | + } |
| 74 | + }, |
| 75 | + "name": "meta.ng-binding.event.html", |
| 76 | + "contentName": "expression.ng", |
| 77 | + "patterns": [ |
| 78 | + { |
| 79 | + "include": "expression.ng" |
| 80 | + } |
| 81 | + ] |
| 82 | + }, |
| 83 | + "twoWayBinding": { |
| 84 | + "begin": "(\\[\\s*\\(\\s*@?[-_a-zA-Z0-9.$]*\\s*\\)\\s*\\])(=)([\"'])", |
| 85 | + "beginCaptures": { |
| 86 | + "1": { |
| 87 | + "name": "entity.other.attribute-name.html entity.other.ng-binding-name.two-way.html", |
| 88 | + "patterns": [ |
| 89 | + { |
| 90 | + "include": "#bindingKey" |
| 91 | + } |
| 92 | + ] |
| 93 | + }, |
| 94 | + "2": { |
| 95 | + "name": "punctuation.separator.key-value.html" |
| 96 | + }, |
| 97 | + "3": { |
| 98 | + "name": "string.quoted.html punctuation.definition.string.begin.html" |
| 99 | + } |
| 100 | + }, |
| 101 | + "end": "\\3", |
| 102 | + "endCaptures": { |
| 103 | + "0": { |
| 104 | + "name": "string.quoted.html punctuation.definition.string.end.html" |
| 105 | + } |
| 106 | + }, |
| 107 | + "name": "meta.ng-binding.two-way.html", |
| 108 | + "contentName": "expression.ng", |
| 109 | + "patterns": [ |
| 110 | + { |
| 111 | + "include": "expression.ng" |
| 112 | + } |
| 113 | + ] |
| 114 | + }, |
| 115 | + "templateBinding": { |
| 116 | + "begin": "(\\*[-_a-zA-Z0-9.$]*)(=)([\"'])", |
| 117 | + "beginCaptures": { |
| 118 | + "1": { |
| 119 | + "name": "entity.other.attribute-name.html entity.other.ng-binding-name.template.html", |
| 120 | + "patterns": [ |
| 121 | + { |
| 122 | + "include": "#bindingKey" |
| 123 | + } |
| 124 | + ] |
| 125 | + }, |
| 126 | + "2": { |
| 127 | + "name": "punctuation.separator.key-value.html" |
| 128 | + }, |
| 129 | + "3": { |
| 130 | + "name": "string.quoted.html punctuation.definition.string.begin.html" |
| 131 | + } |
| 132 | + }, |
| 133 | + "end": "\\3", |
| 134 | + "endCaptures": { |
| 135 | + "0": { |
| 136 | + "name": "string.quoted.html punctuation.definition.string.end.html" |
| 137 | + } |
| 138 | + }, |
| 139 | + "name": "meta.ng-binding.template.html", |
| 140 | + "contentName": "expression.ng", |
| 141 | + "patterns": [ |
| 142 | + { |
| 143 | + "include": "expression.ng" |
| 144 | + } |
| 145 | + ] |
| 146 | + }, |
| 147 | + "bindingKey": { |
| 148 | + "patterns": [ |
| 149 | + { |
| 150 | + "match": "([\\[\\(]{1,2}|\\*)(?:\\s*)(@?[-_a-zA-Z0-9.$]*%?)(?:\\s*)([\\]\\)]{1,2})?", |
| 151 | + "captures": { |
| 152 | + "1": { |
| 153 | + "name": "punctuation.definition.ng-binding-name.begin.html" |
| 154 | + }, |
| 155 | + "2": { |
| 156 | + "name": "entity.other.ng-binding-name.$2.html", |
| 157 | + "patterns": [ |
| 158 | + { |
| 159 | + "match": "\\.", |
| 160 | + "name": "punctuation.accessor.html" |
| 161 | + } |
| 162 | + ] |
| 163 | + }, |
| 164 | + "3": { |
| 165 | + "name": "punctuation.definition.ng-binding-name.end.html" |
| 166 | + } |
| 167 | + } |
| 168 | + } |
| 169 | + ] |
| 170 | + } |
| 171 | + } |
| 172 | +} |
0 commit comments