Changes between Version 9 and Version 10 of ETextEditorSupport
- Timestamp:
- 06/19/09 21:06:12 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ETextEditorSupport
v9 v10 88 88 { 89 89 "name" : "support.function.cobra", 90 "match" : "\\b(base|(?<!is\\s)shared)\\b", 91 "comment" : "language variables that are builtin" 92 }, 93 { 94 "begin" : "r?'", 95 "patterns" : [ 96 { 97 "include" : "#escaped-characters" 98 } 99 ], 100 "name" : "string.quoted.single.cobra", 101 "end" : "'" 102 }, 103 { 104 "begin" : "r?\"", 105 "patterns" : [ 106 { 107 "include" : "#escaped-characters" 108 } 109 ], 110 "name" : "string.quoted.double.cobra", 111 "end" : "\"" 90 "match" : "\\b(base|(?<!is\\s)shared)\\b" 112 91 }, 113 92 { 114 93 "name" : "support.type.cobra", 115 "match" : "\\b(bool|char|int|uint|float|decimal|number|dynamic|int8|int16|int32|int64|uint8|uint16|uint32|uint64)\\b", 116 "comment" : "list of native primitive types" 94 "match" : "\\b(bool|char|int|uint|float|decimal|number|dynamic|int8|int16|int32|int64|uint8|uint16|uint32|uint64)\\b" 117 95 }, 118 96 { … … 121 99 }, 122 100 { 123 "include" : "#type "101 "include" : "#types" 124 102 }, 125 103 { 126 "begin" : "\\b(?:class)\\s*([a-zA-Z0-9_]+)", 104 "include" : "#strings" 105 }, 106 { 107 "begin" : "^\\s*(\"\"\")", 108 "name" : "comment.block.cobra", 109 "end" : "\"\"\"\\s*$" 110 }, 111 { 112 "begin" : "^\\s*(?:class)\\s+(?=[a-zA-Z_][a-zA-Z0-9_]*)", 127 113 "patterns" : [ 128 114 { … … 135 121 }, 136 122 { 137 "include" : "#type "123 "include" : "#types" 138 124 } 139 125 ], … … 147 133 }, 148 134 { 149 "begin" : "^\\s*(def|cue|get|pro)\\s+([a-zA-Z0-9_]+)", 150 "patterns" : [ 151 { 152 "include" : "#argument-list" 153 }, 154 { 155 "name" : "support.variable.cobra", 156 "match" : "\\bvar|from|as|get\\b" 157 }, 158 { 159 "include" : "#type" 160 }, 161 { 162 "include" : "#multiline-comments" 163 } 164 ], 135 "match" : "^\\s+(var|def|cue|get|pro|sig)\\s+([a-zA-Z_]\\w+)", 165 136 "name" : "meta.type.method.cobra", 166 "end" : "$", 167 "beginCaptures" : { 137 "captures" : { 168 138 "1" : { 169 139 "name" : "keyword.operator.method.cobra" … … 173 143 } 174 144 } 175 },176 {177 "include" : "#multiline-comments"178 145 } 179 146 ], … … 183 150 "cobra" 184 151 ], 185 "foldingStopMarker" : " ^$",186 "foldingStartMarker" : " ^\\s*(def|class|cue|get|set)(.*)",152 "foldingStopMarker" : "", 153 "foldingStartMarker" : "", 187 154 "repository" : { 188 "argument-list" : { 189 "begin" : "\\(", 190 "patterns" : [ 191 { 192 "include" : "#type" 193 }, 194 { 195 "name" : "keyword.operator.cast.cobra", 196 "match" : "\\bas\\b" 197 } 198 ], 199 "endCaptures" : { 200 "0" : "support" 201 }, 202 "end" : "\\)", 203 "beginCaptures" : { 204 "0" : "support" 205 } 206 }, 207 "multiline-comments" : { 208 "begin" : "^\\s*\"\"\"\\s+", 209 "name" : "comment.block.cobra", 210 "comment" : "comment blocks including docstrings", 211 "end" : "(^\\s*|\\s+)\"\"\"$" 212 }, 213 "escaped-characters" : { 214 "name" : "constant.character.escape.cobra", 215 "match" : "(\\\\x[0-9A-F]{2})|(\\\\[0-7]{3})|(\\\\\\n)|(\\\\\\\\)|(\\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)" 216 }, 217 "type" : { 155 "types" : { 218 156 "match" : "(?<=as|\\=)\\s+([A-Z][a-zA-Z0-9_]+)\\s*(\\??|<\\s*of\\s+[a-zA-Z0-9]+>)?", 219 157 "captures" : { … … 225 163 } 226 164 } 165 }, 166 "escaped-characters" : { 167 "name" : "constant.character.escape.cobra", 168 "match" : "(\\\\x[0-9A-F]{2})|(\\\\[0-7]{3})|(\\\\\\n)|(\\\\\\\\)|(\\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)" 169 }, 170 "strings" : { 171 "patterns" : [ 172 { 173 "begin" : "r?'", 174 "patterns" : [ 175 { 176 "include" : "#escaped-characters" 177 } 178 ], 179 "name" : "string.quoted.single.cobra", 180 "end" : "'" 181 } 182 ] 227 183 } 228 184 },