| 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>fileTypes</key> |
| 6 | <array> |
| 7 | <string>sql</string> |
| 8 | <string>ddl</string> |
| 9 | <string>dml</string> |
| 10 | <string>dsql</string> |
| 11 | <string>psql</string> |
| 12 | </array> |
| 13 | <key>keyEquivalent</key> |
| 14 | <string>^~S</string> |
| 15 | <key>name</key> |
| 16 | <string>SQL</string> |
| 17 | <key>patterns</key> |
| 18 | <array> |
| 19 | <dict> |
| 20 | <key>include</key> |
| 21 | <string>#comments</string> |
| 22 | </dict> |
| 23 | <dict> |
| 24 | <key>captures</key> |
| 25 | <dict> |
| 26 | <key>1</key> |
| 27 | <dict> |
| 28 | <key>name</key> |
| 29 | <string>keyword.other.create.sql</string> |
| 30 | </dict> |
| 31 | <key>2</key> |
| 32 | <dict> |
| 33 | <key>name</key> |
| 34 | <string>keyword.other.sql</string> |
| 35 | </dict> |
| 36 | <key>5</key> |
| 37 | <dict> |
| 38 | <key>name</key> |
| 39 | <string>entity.name.function.sql</string> |
| 40 | </dict> |
| 41 | </dict> |
| 42 | <key>match</key> |
| 43 | <string>(?i:^\s*(create(?:\s+or\s+replace)?)\s+(aggregate|conversion|database|domain|function|group|(unique\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\s+)(['"`]?)(\w+)\4</string> |
| 44 | <key>name</key> |
| 45 | <string>meta.create.sql</string> |
| 46 | </dict> |
| 47 | <dict> |
| 48 | <key>captures</key> |
| 49 | <dict> |
| 50 | <key>1</key> |
| 51 | <dict> |
| 52 | <key>name</key> |
| 53 | <string>keyword.other.create.sql</string> |
| 54 | </dict> |
| 55 | <key>2</key> |
| 56 | <dict> |
| 57 | <key>name</key> |
| 58 | <string>keyword.other.sql</string> |
| 59 | </dict> |
| 60 | </dict> |
| 61 | <key>match</key> |
| 62 | <string>(?i:^\s*(drop)\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))</string> |
| 63 | <key>name</key> |
| 64 | <string>meta.drop.sql</string> |
| 65 | </dict> |
| 66 | <dict> |
| 67 | <key>captures</key> |
| 68 | <dict> |
| 69 | <key>1</key> |
| 70 | <dict> |
| 71 | <key>name</key> |
| 72 | <string>keyword.other.create.sql</string> |
| 73 | </dict> |
| 74 | <key>2</key> |
| 75 | <dict> |
| 76 | <key>name</key> |
| 77 | <string>keyword.other.table.sql</string> |
| 78 | </dict> |
| 79 | <key>3</key> |
| 80 | <dict> |
| 81 | <key>name</key> |
| 82 | <string>entity.name.function.sql</string> |
| 83 | </dict> |
| 84 | <key>4</key> |
| 85 | <dict> |
| 86 | <key>name</key> |
| 87 | <string>keyword.other.cascade.sql</string> |
| 88 | </dict> |
| 89 | </dict> |
| 90 | <key>match</key> |
| 91 | <string>(?i:\s*(drop)\s+(table)\s+(\w+)(\s+cascade)?\b)</string> |
| 92 | <key>name</key> |
| 93 | <string>meta.drop.sql</string> |
| 94 | </dict> |
| 95 | <dict> |
| 96 | <key>captures</key> |
| 97 | <dict> |
| 98 | <key>1</key> |
| 99 | <dict> |
| 100 | <key>name</key> |
| 101 | <string>keyword.other.create.sql</string> |
| 102 | </dict> |
| 103 | <key>2</key> |
| 104 | <dict> |
| 105 | <key>name</key> |
| 106 | <string>keyword.other.table.sql</string> |
| 107 | </dict> |
| 108 | </dict> |
| 109 | <key>match</key> |
| 110 | <string>(?i:^\s*(alter)\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\s+)</string> |
| 111 | <key>name</key> |
| 112 | <string>meta.alter.sql</string> |
| 113 | </dict> |
| 114 | <dict> |
| 115 | <key>captures</key> |
| 116 | <dict> |
| 117 | <key>1</key> |
| 118 | <dict> |
| 119 | <key>name</key> |
| 120 | <string>storage.type.sql</string> |
| 121 | </dict> |
| 122 | <key>10</key> |
| 123 | <dict> |
| 124 | <key>name</key> |
| 125 | <string>constant.numeric.sql</string> |
| 126 | </dict> |
| 127 | <key>11</key> |
| 128 | <dict> |
| 129 | <key>name</key> |
| 130 | <string>storage.type.sql</string> |
| 131 | </dict> |
| 132 | <key>12</key> |
| 133 | <dict> |
| 134 | <key>name</key> |
| 135 | <string>storage.type.sql</string> |
| 136 | </dict> |
| 137 | <key>13</key> |
| 138 | <dict> |
| 139 | <key>name</key> |
| 140 | <string>storage.type.sql</string> |
| 141 | </dict> |
| 142 | <key>14</key> |
| 143 | <dict> |
| 144 | <key>name</key> |
| 145 | <string>constant.numeric.sql</string> |
| 146 | </dict> |
| 147 | <key>15</key> |
| 148 | <dict> |
| 149 | <key>name</key> |
| 150 | <string>storage.type.sql</string> |
| 151 | </dict> |
| 152 | <key>2</key> |
| 153 | <dict> |
| 154 | <key>name</key> |
| 155 | <string>storage.type.sql</string> |
| 156 | </dict> |
| 157 | <key>3</key> |
| 158 | <dict> |
| 159 | <key>name</key> |
| 160 | <string>constant.numeric.sql</string> |
| 161 | </dict> |
| 162 | <key>4</key> |
| 163 | <dict> |
| 164 | <key>name</key> |
| 165 | <string>storage.type.sql</string> |
| 166 | </dict> |
| 167 | <key>5</key> |
| 168 | <dict> |
| 169 | <key>name</key> |
| 170 | <string>constant.numeric.sql</string> |
| 171 | </dict> |
| 172 | <key>6</key> |
| 173 | <dict> |
| 174 | <key>name</key> |
| 175 | <string>storage.type.sql</string> |
| 176 | </dict> |
| 177 | <key>7</key> |
| 178 | <dict> |
| 179 | <key>name</key> |
| 180 | <string>constant.numeric.sql</string> |
| 181 | </dict> |
| 182 | <key>8</key> |
| 183 | <dict> |
| 184 | <key>name</key> |
| 185 | <string>constant.numeric.sql</string> |
| 186 | </dict> |
| 187 | <key>9</key> |
| 188 | <dict> |
| 189 | <key>name</key> |
| 190 | <string>storage.type.sql</string> |
| 191 | </dict> |
| 192 | </dict> |
| 193 | <key>match</key> |
| 194 | <string>(?xi) |
| 195 | |
| 196 | # normal stuff, capture 1 |
| 197 | \b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\b |
| 198 | |
| 199 | # numeric suffix, capture 2 + 3i |
| 200 | |\b(bit\svarying|character\s(?:varying)?|tinyint|var\schar|float|interval)\((\d+)\) |
| 201 | |
| 202 | # optional numeric suffix, capture 4 + 5i |
| 203 | |\b(char|number|varchar\d?)\b(?:\((\d+)\))? |
| 204 | |
| 205 | # special case, capture 6 + 7i + 8i |
| 206 | |\b(numeric|decimal)\b(?:\((\d+),(\d+)\))? |
| 207 | |
| 208 | # special case, captures 9, 10i, 11 |
| 209 | |\b(times?)\b(?:\((\d+)\))?(\swith(?:out)?\stime\szone\b)? |
| 210 | |
| 211 | # special case, captures 12, 13, 14i, 15 |
| 212 | |\b(timestamp)(?:(s|tz))?\b(?:\((\d+)\))?(\s(with|without)\stime\szone\b)? |
| 213 | |
| 214 | </string> |
| 215 | </dict> |
| 216 | <dict> |
| 217 | <key>match</key> |
| 218 | <string>(?i:\b((?:primary|foreign)\s+key|references|on\sdelete(\s+cascade)?|check|constraint)\b)</string> |
| 219 | <key>name</key> |
| 220 | <string>storage.modifier.sql</string> |
| 221 | </dict> |
| 222 | <dict> |
| 223 | <key>match</key> |
| 224 | <string>\b\d+\b</string> |
| 225 | <key>name</key> |
| 226 | <string>constant.numeric.sql</string> |
| 227 | </dict> |
| 228 | <dict> |
| 229 | <key>match</key> |
| 230 | <string>(?i:\b(select(\s+distinct)?|insert\s+(ignore\s+)?into|update|delete|from|declare|set|where|group\sby|or|like|and|union(\s+all)?|having|order\sby|limit|(inner|cross)\s+join|join|straight_join|(left|right)(\s+outer)?\s+join|natural(\s+(left|right)(\s+outer)?)?\s+join)\b)</string> |
| 231 | <key>name</key> |
| 232 | <string>keyword.other.DML.sql</string> |
| 233 | </dict> |
| 234 | <dict> |
| 235 | <key>match</key> |
| 236 | <string>(?i:\b(on|((is\s+)?not\s+)?null)\b)</string> |
| 237 | <key>name</key> |
| 238 | <string>keyword.other.DDL.create.II.sql</string> |
| 239 | </dict> |
| 240 | <dict> |
| 241 | <key>match</key> |
| 242 | <string>(?i:\b(values|go|use|into|exec|execute|openquery)\b)</string> |
| 243 | <key>name</key> |
| 244 | <string>keyword.other.DML.II.sql</string> |
| 245 | </dict> |
| 246 | <dict> |
| 247 | <key>match</key> |
| 248 | <string>(?i:\b(begin(\s+work)?|start\s+transaction|commit(\s+work)?|rollback(\s+work)?)\b)</string> |
| 249 | <key>name</key> |
| 250 | <string>keyword.other.LUW.sql</string> |
| 251 | </dict> |
| 252 | <dict> |
| 253 | <key>match</key> |
| 254 | <string>(?i:\b(grant(\swith\sgrant\soption)?|revoke)\b)</string> |
| 255 | <key>name</key> |
| 256 | <string>keyword.other.authorization.sql</string> |
| 257 | </dict> |
| 258 | <dict> |
| 259 | <key>match</key> |
| 260 | <string>(?i:\bin\b)</string> |
| 261 | <key>name</key> |
| 262 | <string>keyword.other.data-integrity.sql</string> |
| 263 | </dict> |
| 264 | <dict> |
| 265 | <key>match</key> |
| 266 | <string>(?i:^\s*(comment\s+on\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\s+.*?\s+(is)\s+)</string> |
| 267 | <key>name</key> |
| 268 | <string>keyword.other.object-comments.sql</string> |
| 269 | </dict> |
| 270 | <dict> |
| 271 | <key>match</key> |
| 272 | <string>(?i)\bAS\b</string> |
| 273 | <key>name</key> |
| 274 | <string>keyword.other.alias.sql</string> |
| 275 | </dict> |
| 276 | <dict> |
| 277 | <key>match</key> |
| 278 | <string>(?i)\b(DESC|ASC)\b</string> |
| 279 | <key>name</key> |
| 280 | <string>keyword.other.order.sql</string> |
| 281 | </dict> |
| 282 | <dict> |
| 283 | <key>match</key> |
| 284 | <string>\*</string> |
| 285 | <key>name</key> |
| 286 | <string>keyword.operator.star.sql</string> |
| 287 | </dict> |
| 288 | <dict> |
| 289 | <key>match</key> |
| 290 | <string>[!<>]?=|<>|<|></string> |
| 291 | <key>name</key> |
| 292 | <string>keyword.operator.comparison.sql</string> |
| 293 | </dict> |
| 294 | <dict> |
| 295 | <key>match</key> |
| 296 | <string>-|\+|/</string> |
| 297 | <key>name</key> |
| 298 | <string>keyword.operator.math.sql</string> |
| 299 | </dict> |
| 300 | <dict> |
| 301 | <key>match</key> |
| 302 | <string>\|\|</string> |
| 303 | <key>name</key> |
| 304 | <string>keyword.operator.concatenator.sql</string> |
| 305 | </dict> |
| 306 | <dict> |
| 307 | <key>comment</key> |
| 308 | <string>List of SQL99 built-in functions from http://www.oreilly.com/catalog/sqlnut/chapter/ch04.html</string> |
| 309 | <key>match</key> |
| 310 | <string>(?i)\b(CURRENT_(DATE|TIME(STAMP)?|USER)|(SESSION|SYSTEM)_USER)\b</string> |
| 311 | <key>name</key> |
| 312 | <string>support.function.scalar.sql</string> |
| 313 | </dict> |
| 314 | <dict> |
| 315 | <key>comment</key> |
| 316 | <string>List of SQL99 built-in functions from http://www.oreilly.com/catalog/sqlnut/chapter/ch04.html</string> |
| 317 | <key>match</key> |
| 318 | <string>(?i)\b(AVG|COUNT|MIN|MAX|SUM)(?=\s*\()</string> |
| 319 | <key>name</key> |
| 320 | <string>support.function.aggregate.sql</string> |
| 321 | </dict> |
| 322 | <dict> |
| 323 | <key>match</key> |
| 324 | <string>(?i)\b(CONCATENATE|CONVERT|LOWER|SUBSTRING|TRANSLATE|TRIM|UPPER)\b</string> |
| 325 | <key>name</key> |
| 326 | <string>support.function.string.sql</string> |
| 327 | </dict> |
| 328 | <dict> |
| 329 | <key>captures</key> |
| 330 | <dict> |
| 331 | <key>1</key> |
| 332 | <dict> |
| 333 | <key>name</key> |
| 334 | <string>constant.other.database-name.sql</string> |
| 335 | </dict> |
| 336 | <key>2</key> |
| 337 | <dict> |
| 338 | <key>name</key> |
| 339 | <string>constant.other.table-name.sql</string> |
| 340 | </dict> |
| 341 | </dict> |
| 342 | <key>match</key> |
| 343 | <string>(\w+?)\.(\w+)</string> |
| 344 | </dict> |
| 345 | <dict> |
| 346 | <key>include</key> |
| 347 | <string>#strings</string> |
| 348 | </dict> |
| 349 | <dict> |
| 350 | <key>include</key> |
| 351 | <string>#regexps</string> |
| 352 | </dict> |
| 353 | <dict> |
| 354 | <key>captures</key> |
| 355 | <dict> |
| 356 | <key>1</key> |
| 357 | <dict> |
| 358 | <key>name</key> |
| 359 | <string>punctuation.section.scope.begin.sql</string> |
| 360 | </dict> |
| 361 | <key>2</key> |
| 362 | <dict> |
| 363 | <key>name</key> |
| 364 | <string>punctuation.section.scope.end.sql</string> |
| 365 | </dict> |
| 366 | </dict> |
| 367 | <key>comment</key> |
| 368 | <string>Allow for special ↩ behavior</string> |
| 369 | <key>match</key> |
| 370 | <string>(\()(\))</string> |
| 371 | <key>name</key> |
| 372 | <string>meta.block.sql</string> |
| 373 | </dict> |
| 374 | </array> |
| 375 | <key>repository</key> |
| 376 | <dict> |
| 377 | <key>comments</key> |
| 378 | <dict> |
| 379 | <key>patterns</key> |
| 380 | <array> |
| 381 | <dict> |
| 382 | <key>begin</key> |
| 383 | <string>(^[ \t]+)?(?=--)</string> |
| 384 | <key>beginCaptures</key> |
| 385 | <dict> |
| 386 | <key>1</key> |
| 387 | <dict> |
| 388 | <key>name</key> |
| 389 | <string>punctuation.whitespace.comment.leading.sql</string> |
| 390 | </dict> |
| 391 | </dict> |
| 392 | <key>end</key> |
| 393 | <string>(?!\G)</string> |
| 394 | <key>patterns</key> |
| 395 | <array> |
| 396 | <dict> |
| 397 | <key>begin</key> |
| 398 | <string>--</string> |
| 399 | <key>beginCaptures</key> |
| 400 | <dict> |
| 401 | <key>0</key> |
| 402 | <dict> |
| 403 | <key>name</key> |
| 404 | <string>punctuation.definition.comment.sql</string> |
| 405 | </dict> |
| 406 | </dict> |
| 407 | <key>end</key> |
| 408 | <string>\n</string> |
| 409 | <key>name</key> |
| 410 | <string>comment.line.double-dash.sql</string> |
| 411 | </dict> |
| 412 | </array> |
| 413 | </dict> |
| 414 | <dict> |
| 415 | <key>begin</key> |
| 416 | <string>(^[ \t]+)?(?=#)</string> |
| 417 | <key>beginCaptures</key> |
| 418 | <dict> |
| 419 | <key>1</key> |
| 420 | <dict> |
| 421 | <key>name</key> |
| 422 | <string>punctuation.whitespace.comment.leading.sql</string> |
| 423 | </dict> |
| 424 | </dict> |
| 425 | <key>end</key> |
| 426 | <string>(?!\G)</string> |
| 427 | <key>patterns</key> |
| 428 | <array> |
| 429 | <dict> |
| 430 | <key>begin</key> |
| 431 | <string>#</string> |
| 432 | <key>beginCaptures</key> |
| 433 | <dict> |
| 434 | <key>0</key> |
| 435 | <dict> |
| 436 | <key>name</key> |
| 437 | <string>punctuation.definition.comment.sql</string> |
| 438 | </dict> |
| 439 | </dict> |
| 440 | <key>end</key> |
| 441 | <string>\n</string> |
| 442 | <key>name</key> |
| 443 | <string>comment.line.number-sign.sql</string> |
| 444 | </dict> |
| 445 | </array> |
| 446 | </dict> |
| 447 | <dict> |
| 448 | <key>begin</key> |
| 449 | <string>/\*</string> |
| 450 | <key>captures</key> |
| 451 | <dict> |
| 452 | <key>0</key> |
| 453 | <dict> |
| 454 | <key>name</key> |
| 455 | <string>punctuation.definition.comment.sql</string> |
| 456 | </dict> |
| 457 | </dict> |
| 458 | <key>end</key> |
| 459 | <string>\*/</string> |
| 460 | <key>name</key> |
| 461 | <string>comment.block.c</string> |
| 462 | </dict> |
| 463 | </array> |
| 464 | </dict> |
| 465 | <key>regexps</key> |
| 466 | <dict> |
| 467 | <key>patterns</key> |
| 468 | <array> |
| 469 | <dict> |
| 470 | <key>begin</key> |
| 471 | <string>/(?=\S.*/)</string> |
| 472 | <key>beginCaptures</key> |
| 473 | <dict> |
| 474 | <key>0</key> |
| 475 | <dict> |
| 476 | <key>name</key> |
| 477 | <string>punctuation.definition.string.begin.sql</string> |
| 478 | </dict> |
| 479 | </dict> |
| 480 | <key>end</key> |
| 481 | <string>/</string> |
| 482 | <key>endCaptures</key> |
| 483 | <dict> |
| 484 | <key>0</key> |
| 485 | <dict> |
| 486 | <key>name</key> |
| 487 | <string>punctuation.definition.string.end.sql</string> |
| 488 | </dict> |
| 489 | </dict> |
| 490 | <key>name</key> |
| 491 | <string>string.regexp.sql</string> |
| 492 | <key>patterns</key> |
| 493 | <array> |
| 494 | <dict> |
| 495 | <key>include</key> |
| 496 | <string>#string_interpolation</string> |
| 497 | </dict> |
| 498 | <dict> |
| 499 | <key>match</key> |
| 500 | <string>\\/</string> |
| 501 | <key>name</key> |
| 502 | <string>constant.character.escape.slash.sql</string> |
| 503 | </dict> |
| 504 | </array> |
| 505 | </dict> |
| 506 | <dict> |
| 507 | <key>begin</key> |
| 508 | <string>%r\{</string> |
| 509 | <key>beginCaptures</key> |
| 510 | <dict> |
| 511 | <key>0</key> |
| 512 | <dict> |
| 513 | <key>name</key> |
| 514 | <string>punctuation.definition.string.begin.sql</string> |
| 515 | </dict> |
| 516 | </dict> |
| 517 | <key>comment</key> |
| 518 | <string>We should probably handle nested bracket pairs!?! -- Allan</string> |
| 519 | <key>end</key> |
| 520 | <string>\}</string> |
| 521 | <key>endCaptures</key> |
| 522 | <dict> |
| 523 | <key>0</key> |
| 524 | <dict> |
| 525 | <key>name</key> |
| 526 | <string>punctuation.definition.string.end.sql</string> |
| 527 | </dict> |
| 528 | </dict> |
| 529 | <key>name</key> |
| 530 | <string>string.regexp.modr.sql</string> |
| 531 | <key>patterns</key> |
| 532 | <array> |
| 533 | <dict> |
| 534 | <key>include</key> |
| 535 | <string>#string_interpolation</string> |
| 536 | </dict> |
| 537 | </array> |
| 538 | </dict> |
| 539 | </array> |
| 540 | </dict> |
| 541 | <key>string_escape</key> |
| 542 | <dict> |
| 543 | <key>match</key> |
| 544 | <string>\\.</string> |
| 545 | <key>name</key> |
| 546 | <string>constant.character.escape.sql</string> |
| 547 | </dict> |
| 548 | <key>string_interpolation</key> |
| 549 | <dict> |
| 550 | <key>captures</key> |
| 551 | <dict> |
| 552 | <key>1</key> |
| 553 | <dict> |
| 554 | <key>name</key> |
| 555 | <string>punctuation.definition.string.begin.sql</string> |
| 556 | </dict> |
| 557 | <key>3</key> |
| 558 | <dict> |
| 559 | <key>name</key> |
| 560 | <string>punctuation.definition.string.end.sql</string> |
| 561 | </dict> |
| 562 | </dict> |
| 563 | <key>match</key> |
| 564 | <string>(#\{)([^\}]*)(\})</string> |
| 565 | <key>name</key> |
| 566 | <string>string.interpolated.sql</string> |
| 567 | </dict> |
| 568 | <key>strings</key> |
| 569 | <dict> |
| 570 | <key>patterns</key> |
| 571 | <array> |
| 572 | <dict> |
| 573 | <key>captures</key> |
| 574 | <dict> |
| 575 | <key>1</key> |
| 576 | <dict> |
| 577 | <key>name</key> |
| 578 | <string>punctuation.definition.string.begin.sql</string> |
| 579 | </dict> |
| 580 | <key>2</key> |
| 581 | <dict> |
| 582 | <key>name</key> |
| 583 | <string>punctuation.definition.string.end.sql</string> |
| 584 | </dict> |
| 585 | </dict> |
| 586 | <key>comment</key> |
| 587 | <string>this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.</string> |
| 588 | <key>match</key> |
| 589 | <string>(')[^'\\]*(')</string> |
| 590 | <key>name</key> |
| 591 | <string>string.quoted.single.sql</string> |
| 592 | </dict> |
| 593 | <dict> |
| 594 | <key>begin</key> |
| 595 | <string>'</string> |
| 596 | <key>beginCaptures</key> |
| 597 | <dict> |
| 598 | <key>0</key> |
| 599 | <dict> |
| 600 | <key>name</key> |
| 601 | <string>punctuation.definition.string.begin.sql</string> |
| 602 | </dict> |
| 603 | </dict> |
| 604 | <key>end</key> |
| 605 | <string>'</string> |
| 606 | <key>endCaptures</key> |
| 607 | <dict> |
| 608 | <key>0</key> |
| 609 | <dict> |
| 610 | <key>name</key> |
| 611 | <string>punctuation.definition.string.end.sql</string> |
| 612 | </dict> |
| 613 | </dict> |
| 614 | <key>name</key> |
| 615 | <string>string.quoted.single.sql</string> |
| 616 | <key>patterns</key> |
| 617 | <array> |
| 618 | <dict> |
| 619 | <key>include</key> |
| 620 | <string>#string_escape</string> |
| 621 | </dict> |
| 622 | </array> |
| 623 | </dict> |
| 624 | <dict> |
| 625 | <key>captures</key> |
| 626 | <dict> |
| 627 | <key>1</key> |
| 628 | <dict> |
| 629 | <key>name</key> |
| 630 | <string>punctuation.definition.string.begin.sql</string> |
| 631 | </dict> |
| 632 | <key>2</key> |
| 633 | <dict> |
| 634 | <key>name</key> |
| 635 | <string>punctuation.definition.string.end.sql</string> |
| 636 | </dict> |
| 637 | </dict> |
| 638 | <key>comment</key> |
| 639 | <string>this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.</string> |
| 640 | <key>match</key> |
| 641 | <string>(`)[^`\\]*(`)</string> |
| 642 | <key>name</key> |
| 643 | <string>string.quoted.other.backtick.sql</string> |
| 644 | </dict> |
| 645 | <dict> |
| 646 | <key>begin</key> |
| 647 | <string>`</string> |
| 648 | <key>beginCaptures</key> |
| 649 | <dict> |
| 650 | <key>0</key> |
| 651 | <dict> |
| 652 | <key>name</key> |
| 653 | <string>punctuation.definition.string.begin.sql</string> |
| 654 | </dict> |
| 655 | </dict> |
| 656 | <key>end</key> |
| 657 | <string>`</string> |
| 658 | <key>endCaptures</key> |
| 659 | <dict> |
| 660 | <key>0</key> |
| 661 | <dict> |
| 662 | <key>name</key> |
| 663 | <string>punctuation.definition.string.end.sql</string> |
| 664 | </dict> |
| 665 | </dict> |
| 666 | <key>name</key> |
| 667 | <string>string.quoted.other.backtick.sql</string> |
| 668 | <key>patterns</key> |
| 669 | <array> |
| 670 | <dict> |
| 671 | <key>include</key> |
| 672 | <string>#string_escape</string> |
| 673 | </dict> |
| 674 | </array> |
| 675 | </dict> |
| 676 | <dict> |
| 677 | <key>captures</key> |
| 678 | <dict> |
| 679 | <key>1</key> |
| 680 | <dict> |
| 681 | <key>name</key> |
| 682 | <string>punctuation.definition.string.begin.sql</string> |
| 683 | </dict> |
| 684 | <key>2</key> |
| 685 | <dict> |
| 686 | <key>name</key> |
| 687 | <string>punctuation.definition.string.end.sql</string> |
| 688 | </dict> |
| 689 | </dict> |
| 690 | <key>comment</key> |
| 691 | <string>this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.</string> |
| 692 | <key>match</key> |
| 693 | <string>(")[^"#]*(")</string> |
| 694 | <key>name</key> |
| 695 | <string>string.quoted.double.sql</string> |
| 696 | </dict> |
| 697 | <dict> |
| 698 | <key>begin</key> |
| 699 | <string>"</string> |
| 700 | <key>beginCaptures</key> |
| 701 | <dict> |
| 702 | <key>0</key> |
| 703 | <dict> |
| 704 | <key>name</key> |
| 705 | <string>punctuation.definition.string.begin.sql</string> |
| 706 | </dict> |
| 707 | </dict> |
| 708 | <key>end</key> |
| 709 | <string>"</string> |
| 710 | <key>endCaptures</key> |
| 711 | <dict> |
| 712 | <key>0</key> |
| 713 | <dict> |
| 714 | <key>name</key> |
| 715 | <string>punctuation.definition.string.end.sql</string> |
| 716 | </dict> |
| 717 | </dict> |
| 718 | <key>name</key> |
| 719 | <string>string.quoted.double.sql</string> |
| 720 | <key>patterns</key> |
| 721 | <array> |
| 722 | <dict> |
| 723 | <key>include</key> |
| 724 | <string>#string_interpolation</string> |
| 725 | </dict> |
| 726 | </array> |
| 727 | </dict> |
| 728 | <dict> |
| 729 | <key>begin</key> |
| 730 | <string>%\{</string> |
| 731 | <key>beginCaptures</key> |
| 732 | <dict> |
| 733 | <key>0</key> |
| 734 | <dict> |
| 735 | <key>name</key> |
| 736 | <string>punctuation.definition.string.begin.sql</string> |
| 737 | </dict> |
| 738 | </dict> |
| 739 | <key>end</key> |
| 740 | <string>\}</string> |
| 741 | <key>endCaptures</key> |
| 742 | <dict> |
| 743 | <key>0</key> |
| 744 | <dict> |
| 745 | <key>name</key> |
| 746 | <string>punctuation.definition.string.end.sql</string> |
| 747 | </dict> |
| 748 | </dict> |
| 749 | <key>name</key> |
| 750 | <string>string.other.quoted.brackets.sql</string> |
| 751 | <key>patterns</key> |
| 752 | <array> |
| 753 | <dict> |
| 754 | <key>include</key> |
| 755 | <string>#string_interpolation</string> |
| 756 | </dict> |
| 757 | </array> |
| 758 | </dict> |
| 759 | </array> |
| 760 | </dict> |
| 761 | </dict> |
| 762 | <key>scopeName</key> |
| 763 | <string>source.sql</string> |
| 764 | <key>uuid</key> |
| 765 | <string>C49120AC-6ECC-11D9-ACC8-000D93589AF6</string> |
| 766 | </dict> |
| 767 | </plist> |