|
1 |
| -{ |
2 |
| - "scopeName": "tailwindcss.injection", |
3 |
| - "fileTypes": [], |
4 |
| - "injectionSelector": "meta.property-list.css, meta.property-list.scss", |
5 |
| - "name": "TailwindCSS", |
6 |
| - "patterns": [ |
7 |
| - { |
8 |
| - "begin": "(@)apply\\b", |
9 |
| - "beginCaptures": { |
10 |
| - "0": { |
11 |
| - "name": "keyword.control.at-rule.apply.tailwind" |
12 |
| - }, |
13 |
| - "1": { |
14 |
| - "name": "punctuation.definition.keyword.tailwind" |
15 |
| - } |
16 |
| - }, |
17 |
| - "end": ";", |
18 |
| - "endCaptures": { |
19 |
| - "0": { |
20 |
| - "name": "punctuation.terminator.rule.tailwind" |
21 |
| - } |
22 |
| - }, |
23 |
| - "patterns": [ |
24 |
| - { |
25 |
| - "begin": "(?x)\n(?=\n (?:\\|)? # Possible anonymous namespace prefix\n (?:\n [-\\[:.*\\#a-zA-Z_] # Valid selector character\n |\n [^\\x00-\\x7F] # Which can include non-ASCII symbols\n |\n \\\\ # Or an escape sequence\n (?:[0-9a-fA-F]{1,6}|.)\n )\n)", |
26 |
| - "end": "(?=\\s*[;])", |
27 |
| - "patterns": [ |
28 |
| - { |
29 |
| - "match": "!\\s*important(?![\\w-])", |
30 |
| - "name": "keyword.other.important.tailwind" |
31 |
| - }, |
32 |
| - { |
33 |
| - "captures": { |
34 |
| - "1": { |
35 |
| - "name": "punctuation.definition.entity.tailwind" |
36 |
| - }, |
37 |
| - "2": { |
38 |
| - "patterns": [ |
39 |
| - { |
40 |
| - "include": "source.css#escapes" |
41 |
| - } |
42 |
| - ] |
43 |
| - } |
44 |
| - }, |
45 |
| - "match": "(?x)\n(\\.)? # Valid class-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{>;+~|] # - Another selector\n | /\\* # - A block comment\n)", |
46 |
| - "name": "entity.other.attribute-name.class.tailwind" |
47 |
| - } |
48 |
| - ] |
49 |
| - } |
50 |
| - ] |
51 |
| - }, |
52 |
| - { |
53 |
| - "begin": "(?i)(?<![\\w-])(config|theme)(\\()", |
54 |
| - "beginCaptures": { |
55 |
| - "1": { |
56 |
| - "name": "support.function.config.tailwind" |
57 |
| - }, |
58 |
| - "2": { |
59 |
| - "name": "punctuation.section.function.begin.bracket.round.tailwind" |
60 |
| - } |
61 |
| - }, |
62 |
| - "end": "\\)", |
63 |
| - "endCaptures": { |
64 |
| - "0": { |
65 |
| - "name": "punctuation.section.function.end.bracket.round.tailwind" |
66 |
| - } |
67 |
| - }, |
68 |
| - "patterns": [ |
69 |
| - { |
70 |
| - "include": "source.css#property-values" |
71 |
| - } |
72 |
| - ] |
73 |
| - } |
74 |
| - ] |
75 |
| -} |
| 1 | +{ |
| 2 | + "scopeName": "tailwindcss.injection", |
| 3 | + "fileTypes": [], |
| 4 | + "injectionSelector": "meta.property-list.css, meta.property-list.scss", |
| 5 | + "name": "TailwindCSS", |
| 6 | + "patterns": [ |
| 7 | + { |
| 8 | + "begin": "(@)apply\\b", |
| 9 | + "beginCaptures": { |
| 10 | + "0": { |
| 11 | + "name": "keyword.control.at-rule.apply.tailwind" |
| 12 | + }, |
| 13 | + "1": { |
| 14 | + "name": "punctuation.definition.keyword.tailwind" |
| 15 | + } |
| 16 | + }, |
| 17 | + "end": ";", |
| 18 | + "endCaptures": { |
| 19 | + "0": { |
| 20 | + "name": "punctuation.terminator.rule.tailwind" |
| 21 | + } |
| 22 | + }, |
| 23 | + "patterns": [ |
| 24 | + { |
| 25 | + "begin": "(?x)\n(?=\n (?:\\|)? # Possible anonymous namespace prefix\n (?:\n [-\\[:.*\\#a-zA-Z_] # Valid selector character\n |\n [^\\x00-\\x7F] # Which can include non-ASCII symbols\n |\n \\\\ # Or an escape sequence\n (?:[0-9a-fA-F]{1,6}|.)\n )\n)", |
| 26 | + "end": "(?=\\s*[;])", |
| 27 | + "patterns": [ |
| 28 | + { |
| 29 | + "match": "!\\s*important(?![\\w-])", |
| 30 | + "name": "keyword.other.important.tailwind" |
| 31 | + }, |
| 32 | + { |
| 33 | + "captures": { |
| 34 | + "1": { |
| 35 | + "name": "punctuation.definition.entity.tailwind" |
| 36 | + }, |
| 37 | + "2": { |
| 38 | + "patterns": [ |
| 39 | + { |
| 40 | + "include": "source.css#escapes" |
| 41 | + } |
| 42 | + ] |
| 43 | + } |
| 44 | + }, |
| 45 | + "match": "(?x)\n(\\.)? # Valid class-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{>;+~|] # - Another selector\n | /\\* # - A block comment\n)", |
| 46 | + "name": "entity.other.attribute-name.class.tailwind" |
| 47 | + } |
| 48 | + ] |
| 49 | + } |
| 50 | + ] |
| 51 | + }, |
| 52 | + { |
| 53 | + "begin": "composes(:)\\b", |
| 54 | + "beginCaptures": { |
| 55 | + "0": { |
| 56 | + "name": "keyword.control.composes-rule.apply.tailwind" |
| 57 | + }, |
| 58 | + "1": { |
| 59 | + "name": "punctuation.definition.keyword.tailwind" |
| 60 | + } |
| 61 | + }, |
| 62 | + "end": ";", |
| 63 | + "endCaptures": { |
| 64 | + "0": { |
| 65 | + "name": "punctuation.terminator.rule.tailwind" |
| 66 | + } |
| 67 | + }, |
| 68 | + "patterns": [ |
| 69 | + { |
| 70 | + "begin": "(?x)\n(?=\n (?:\\|)? # Possible anonymous namespace prefix\n (?:\n [-\\[:.*\\#a-zA-Z_] # Valid selector character\n |\n [^\\x00-\\x7F] # Which can include non-ASCII symbols\n |\n \\\\ # Or an escape sequence\n (?:[0-9a-fA-F]{1,6}|.)\n )\n)", |
| 71 | + "end": "(?=\\s*[;])", |
| 72 | + "patterns": [ |
| 73 | + { |
| 74 | + "match": "!\\s*important(?![\\w-])", |
| 75 | + "name": "keyword.other.important.tailwind" |
| 76 | + }, |
| 77 | + { |
| 78 | + "captures": { |
| 79 | + "1": { |
| 80 | + "name": "punctuation.definition.entity.tailwind" |
| 81 | + }, |
| 82 | + "2": { |
| 83 | + "patterns": [ |
| 84 | + { |
| 85 | + "include": "source.css#escapes" |
| 86 | + } |
| 87 | + ] |
| 88 | + } |
| 89 | + }, |
| 90 | + "match": "(?x)\n(\\.)? # Valid class-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{>;+~|] # - Another selector\n | /\\* # - A block comment\n)", |
| 91 | + "name": "entity.other.attribute-name.class.tailwind" |
| 92 | + } |
| 93 | + ] |
| 94 | + } |
| 95 | + ] |
| 96 | + }, |
| 97 | + { |
| 98 | + "begin": "(?i)(?<![\\w-])(config|theme)(\\()", |
| 99 | + "beginCaptures": { |
| 100 | + "1": { |
| 101 | + "name": "support.function.config.tailwind" |
| 102 | + }, |
| 103 | + "2": { |
| 104 | + "name": "punctuation.section.function.begin.bracket.round.tailwind" |
| 105 | + } |
| 106 | + }, |
| 107 | + "end": "\\)", |
| 108 | + "endCaptures": { |
| 109 | + "0": { |
| 110 | + "name": "punctuation.section.function.end.bracket.round.tailwind" |
| 111 | + } |
| 112 | + }, |
| 113 | + "patterns": [ |
| 114 | + { |
| 115 | + "include": "source.css#property-values" |
| 116 | + } |
| 117 | + ] |
| 118 | + } |
| 119 | + ] |
| 120 | +} |
0 commit comments