|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | +<plist version="1.0"> |
| 4 | +<dict> |
| 5 | + <key>comment</key> |
| 6 | + <string>Go Template Specification <https://golang.org/pkg/text/template/></string> |
| 7 | + <key>fileTypes</key> |
| 8 | + <array> |
| 9 | + <string>tmpl</string> |
| 10 | + </array> |
| 11 | + <key>foldingStartMarker</key> |
| 12 | + <string>(?x) |
| 13 | + (<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?> |
| 14 | + |<!--(?!.*-->) |
| 15 | + |\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/))) |
| 16 | + )</string> |
| 17 | + <key>foldingStopMarker</key> |
| 18 | + <string>(?x) |
| 19 | + (</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)> |
| 20 | + |^\s*--> |
| 21 | + |(^|\s)\} |
| 22 | + )</string> |
| 23 | + <key>injections</key> |
| 24 | + <dict> |
| 25 | + <key>text.html.go - (meta.embedded.html.go | comment)</key> |
| 26 | + <dict> |
| 27 | + <key>patterns</key> |
| 28 | + <array> |
| 29 | + <dict> |
| 30 | + <key>begin</key> |
| 31 | + <string>(^\s*)?(?={{)</string> |
| 32 | + <key>beginCaptures</key> |
| 33 | + <dict> |
| 34 | + <key>1</key> |
| 35 | + <dict> |
| 36 | + <key>name</key> |
| 37 | + <string>punctuation.whitespace.embedded.leading.html</string> |
| 38 | + </dict> |
| 39 | + </dict> |
| 40 | + <key>contentName</key> |
| 41 | + <string>meta.embedded.html.go</string> |
| 42 | + <key>end</key> |
| 43 | + <string>(?!\G)(\s*\n)?</string> |
| 44 | + <key>endCaptures</key> |
| 45 | + <dict> |
| 46 | + <key>1</key> |
| 47 | + <dict> |
| 48 | + <key>name</key> |
| 49 | + <string>punctuation.whitespace.embedded.trailing.html</string> |
| 50 | + </dict> |
| 51 | + </dict> |
| 52 | + <key>patterns</key> |
| 53 | + <array> |
| 54 | + <dict> |
| 55 | + <key>begin</key> |
| 56 | + <string>{{</string> |
| 57 | + <key>beginCaptures</key> |
| 58 | + <dict> |
| 59 | + <key>0</key> |
| 60 | + <dict> |
| 61 | + <key>name</key> |
| 62 | + <string>punctuation.section.embedded.begin.html.go</string> |
| 63 | + </dict> |
| 64 | + </dict> |
| 65 | + <key>contentName</key> |
| 66 | + <string>source.html.go</string> |
| 67 | + <key>end</key> |
| 68 | + <string>}}</string> |
| 69 | + <key>endCaptures</key> |
| 70 | + <dict> |
| 71 | + <key>0</key> |
| 72 | + <dict> |
| 73 | + <key>name</key> |
| 74 | + <string>punctuation.section.embedded.end.html.go</string> |
| 75 | + </dict> |
| 76 | + </dict> |
| 77 | + <key>patterns</key> |
| 78 | + <array> |
| 79 | + <dict> |
| 80 | + <key>include</key> |
| 81 | + <string>#keywords</string> |
| 82 | + </dict> |
| 83 | + <dict> |
| 84 | + <key>include</key> |
| 85 | + <string>#constants</string> |
| 86 | + </dict> |
| 87 | + <dict> |
| 88 | + <key>include</key> |
| 89 | + <string>#variables</string> |
| 90 | + </dict> |
| 91 | + <dict> |
| 92 | + <key>include</key> |
| 93 | + <string>#methods</string> |
| 94 | + </dict> |
| 95 | + <dict> |
| 96 | + <key>include</key> |
| 97 | + <string>#calls</string> |
| 98 | + </dict> |
| 99 | + <dict> |
| 100 | + <key>include</key> |
| 101 | + <string>#strings</string> |
| 102 | + </dict> |
| 103 | + </array> |
| 104 | + </dict> |
| 105 | + </array> |
| 106 | + </dict> |
| 107 | + </array> |
| 108 | + </dict> |
| 109 | + </dict> |
| 110 | + <key>keyEquivalent</key> |
| 111 | + <string>^~G</string> |
| 112 | + <key>name</key> |
| 113 | + <string>HTML (Go)</string> |
| 114 | + <key>patterns</key> |
| 115 | + <array> |
| 116 | + <dict> |
| 117 | + <key>include</key> |
| 118 | + <string>text.html.basic</string> |
| 119 | + </dict> |
| 120 | + </array> |
| 121 | + <key>repository</key> |
| 122 | + <dict> |
| 123 | + <key>calls</key> |
| 124 | + <dict> |
| 125 | + <key>captures</key> |
| 126 | + <dict> |
| 127 | + <key>1</key> |
| 128 | + <dict> |
| 129 | + <key>name</key> |
| 130 | + <string>entity.name.function.html.go</string> |
| 131 | + </dict> |
| 132 | + </dict> |
| 133 | + <key>match</key> |
| 134 | + <string>(?<={{)\s*([\w\.]+)\b</string> |
| 135 | + </dict> |
| 136 | + <key>constants</key> |
| 137 | + <dict> |
| 138 | + <key>match</key> |
| 139 | + <string>\b(?:if|else|end|range|template|with)\b</string> |
| 140 | + <key>name</key> |
| 141 | + <string>keyword.control.html.go</string> |
| 142 | + </dict> |
| 143 | + <key>keywords</key> |
| 144 | + <dict> |
| 145 | + <key>match</key> |
| 146 | + <string>\b(?:true|false)\b</string> |
| 147 | + <key>name</key> |
| 148 | + <string>constant.language.html.go</string> |
| 149 | + </dict> |
| 150 | + <key>methods</key> |
| 151 | + <dict> |
| 152 | + <key>match</key> |
| 153 | + <string>\.[\w\.]+\b</string> |
| 154 | + <key>name</key> |
| 155 | + <string>support.function.any-method.html.go</string> |
| 156 | + </dict> |
| 157 | + <key>strings</key> |
| 158 | + <dict> |
| 159 | + <key>begin</key> |
| 160 | + <string>"</string> |
| 161 | + <key>beginCaptures</key> |
| 162 | + <dict> |
| 163 | + <key>0</key> |
| 164 | + <dict> |
| 165 | + <key>name</key> |
| 166 | + <string>punctuation.definition.string.begin.html.go</string> |
| 167 | + </dict> |
| 168 | + </dict> |
| 169 | + <key>end</key> |
| 170 | + <string>(?<!\\)(?:\\\\)*\K"</string> |
| 171 | + <key>endCaptures</key> |
| 172 | + <dict> |
| 173 | + <key>0</key> |
| 174 | + <dict> |
| 175 | + <key>name</key> |
| 176 | + <string>punctuation.definition.string.end.html.go</string> |
| 177 | + </dict> |
| 178 | + </dict> |
| 179 | + <key>name</key> |
| 180 | + <string>string.quoted.double.html.go</string> |
| 181 | + </dict> |
| 182 | + <key>variables</key> |
| 183 | + <dict> |
| 184 | + <key>match</key> |
| 185 | + <string>\$[\w\.]+\b</string> |
| 186 | + <key>name</key> |
| 187 | + <string>variable.other.predefined.html.go</string> |
| 188 | + </dict> |
| 189 | + </dict> |
| 190 | + <key>scopeName</key> |
| 191 | + <string>text.html.go</string> |
| 192 | + <key>uuid</key> |
| 193 | + <string>76127A52-A229-4977-9885-E15CCF14948E</string> |
| 194 | +</dict> |
| 195 | +</plist> |
0 commit comments