|
| 1 | +// SYNTAX TEST "Packages/Vue/Vue Component.sublime-syntax" |
| 2 | + |
| 3 | + |
| 4 | + <script> var i = 0; </script> |
| 5 | +// ^^^^^^^^ meta.tag - source |
| 6 | +// ^^^^^^^^^^^^ source.js.embedded.html - meta.tag |
| 7 | +// ^^^^^^^^^ meta.tag - source |
| 8 | + |
| 9 | + <script> var i = 0; --> </script> |
| 10 | +// ^^^^^^^^ meta.tag - source |
| 11 | +// ^^^^^^^^^^^^ source.js.embedded.html - meta.tag |
| 12 | +// ^^^^ - meta.tag - source |
| 13 | +// ^^^ comment.block.html punctuation.definition.comment.end.html |
| 14 | +// ^^^^^^^^^ meta.tag - source |
| 15 | + |
| 16 | + <script> <!-- var i = 0; </script> |
| 17 | +// ^^^^^^^^ meta.tag - source |
| 18 | +// ^^^^^ - meta.tag - source |
| 19 | +// ^^^^^^^^^^^^ source.js.embedded.html - meta.tag |
| 20 | +// ^^^^^^^^^ meta.tag - source |
| 21 | +// ^^^^ punctuation.definition.comment.begin.html |
| 22 | + |
| 23 | + <script> <!-- var i = 0; --> </script> |
| 24 | +// ^^^^^^^^ meta.tag - source |
| 25 | +// ^^^^^ - meta.tag - source |
| 26 | +// ^^^^ punctuation.definition.comment.begin.html |
| 27 | +// ^^^^^^^^^^^^ source.js.embedded.html - meta.tag |
| 28 | +// ^^^^ - meta.tag - source |
| 29 | +// ^^^ comment.block.html punctuation.definition.comment.end.html |
| 30 | +// ^^^^^^^^^ meta.tag - source |
| 31 | + |
| 32 | + |
| 33 | + <script> |
| 34 | +
|
| 35 | +// <- source.js.embedded.html |
| 36 | + var i = 0; |
| 37 | +// ^^^^^^^^^^^^ source.js.embedded.html - source source |
| 38 | + </script> |
| 39 | +// <- source.js.embedded.html - source source |
| 40 | +// ^ source.js.embedded.html - source source |
| 41 | +// ^^^^^^^^^ meta.tag - source |
| 42 | + |
| 43 | + |
| 44 | + <script> |
| 45 | + <!-- |
| 46 | +//^^^^^^ - meta.tag - source |
| 47 | +// ^^^^ comment.block.html punctuation.definition.comment.begin.html |
| 48 | +// ^ source.js.embedded.html - source source - meta.tag - comment |
| 49 | + var i = 0; |
| 50 | +// ^^^^^^^^^^^^ source.js.embedded.html - source source - meta.tag |
| 51 | + --> |
| 52 | +//^^ source.js.embedded.html - meta.tag - comment |
| 53 | +// ^^^^ - source - meta.tag |
| 54 | +// ^^^ comment.block.html punctuation.definition.comment.end.html |
| 55 | + var i = 0; |
| 56 | +// ^^^^^^^^^^^^ - source |
| 57 | + </script> |
| 58 | +// ^^^^^^^^^ meta.tag - source |
| 59 | + |
| 60 | + |
| 61 | + <script> <!-- |
| 62 | +// ^^^^^^^^^^^^^ - source |
| 63 | +// ^^^^^^^^ meta.tag |
| 64 | +// ^ punctuation.definition.tag.begin.html |
| 65 | +// ^^^^^^ entity.name.tag |
| 66 | +// ^ punctuation.definition.tag.end.html |
| 67 | +// ^ - meta.tag - comment |
| 68 | +// ^^^^ comment.block.html punctuation.definition.comment.begin.html |
| 69 | +// ^ source.js.embedded.html - source source |
| 70 | + |
| 71 | + var foo = 100; |
| 72 | +// <- source.js.embedded.html - source source |
| 73 | + |
| 74 | + (a --> b); |
| 75 | +// ^^^ source.js.embedded.html keyword.operator - comment |
| 76 | + |
| 77 | + --> </script> |
| 78 | +// ^ source.js.embedded.html - source source |
| 79 | +// ^^^^^^^^^^^^^^ - source |
| 80 | +// ^ - meta.tag - comment |
| 81 | +// ^^^^^^^^^ meta.tag |
| 82 | +// ^ - meta.tag |
| 83 | +// ^^^ comment.block.html punctuation.definition.comment.end.html |
| 84 | +// ^^ punctuation.definition.tag.begin.html |
| 85 | +// ^^^^^^ entity.name.tag |
| 86 | +// ^ punctuation.definition.tag.end.html |
| 87 | + |
| 88 | + |
| 89 | + <script type="text/javascript"> <!-- |
| 90 | +// ^^^^^^^^ meta.tag - meta.tag meta.tag - meta.attribute-with-value - source |
| 91 | +// ^^^^^^^^^^^^^^^^^^^^^^ meta.tag meta.attribute-with-value.html - meta.tag meta.tag - meta.attribute-with-value meta.attribute-with-value - source |
| 92 | +// ^ meta.tag - meta.tag meta.tag - meta.attribute-with-value - source |
| 93 | +// ^^^^^ - meta.tag - source |
| 94 | +// ^^^^^^ entity.name.tag |
| 95 | +// ^^^^ entity.other.attribute-name.html |
| 96 | +// ^ punctuation.separator.key-value.html |
| 97 | +// ^^^^^^^^^^^^^^^^^ string.quoted.double.html |
| 98 | +// ^^^^ comment.block.html punctuation.definition.comment.begin.html |
| 99 | +// ^ source.js.embedded.html |
| 100 | + |
| 101 | + var foo = 100; |
| 102 | +// <- source.js.embedded.html - source source |
| 103 | + |
| 104 | + (a --> b); |
| 105 | +// ^^^ source.js.embedded.html keyword.operator - comment |
| 106 | + |
| 107 | + --> </script> |
| 108 | +// ^ source.js.embedded.html - source source |
| 109 | +// ^^^^^^^^^^^^^^ - source |
| 110 | +// ^ - meta.tag - comment |
| 111 | +// ^^^^^^^^^ meta.tag |
| 112 | +// ^ - meta.tag |
| 113 | +// ^^^ comment.block.html punctuation.definition.comment.end.html |
| 114 | +// ^^ punctuation.definition.tag.begin.html |
| 115 | +// ^^^^^^ entity.name.tag |
| 116 | +// ^ punctuation.definition.tag.end.html |
| 117 | + |
| 118 | + |
| 119 | + <script |
| 120 | + type |
| 121 | +// ^^^^ meta.tag meta.attribute-with-value.html - meta.tag meta.tag - meta.attribute-with-value meta.attribute-with-value |
| 122 | + = |
| 123 | + application/jAvAsCrIpT> |
| 124 | +// ^^^^^^^^^^^^^^^^^^^^^^ meta.tag meta.attribute-with-value.html - meta.tag meta.tag - meta.attribute-with-value meta.attribute-with-value |
| 125 | + var foo = 100; |
| 126 | +// <- source.js.embedded.html - source source |
| 127 | +// ^^^^^^^^^^^^^^^^ source.js.embedded.html - source source |
| 128 | + </script> |
| 129 | +// <- source.js.embedded.html - source source |
| 130 | +// ^ source.js.embedded.html - source source |
| 131 | +// ^^^^^^^^^ meta.tag - source |
| 132 | + |
| 133 | + |
| 134 | + <script lang="coffee"> |
| 135 | + |
| 136 | +// <- source.coffee.embedded.html - source source |
| 137 | + </script> |
| 138 | +// <- source.coffee.embedded.html - source source |
| 139 | +//^^ source.coffee.embedded.html - source source |
| 140 | +// ^^^^^^^^^ meta.tag - source |
| 141 | + |
| 142 | + <script lang="coffee"> |
| 143 | + <!-- |
| 144 | +// ^^^^^^^^^ - source |
| 145 | +// ^^^^ comment.block.html punctuation.definition.comment.begin.html |
| 146 | +// ^ source.coffee.embedded.html - source source |
| 147 | + --> |
| 148 | +// ^^^^^ source.coffee.embedded.html - source source |
| 149 | +// ^^^ comment.block.html punctuation.definition.comment.end.html - source |
| 150 | +// ^ - source - comment - meta.tag |
| 151 | + </script> |
| 152 | +// <- - source - comment - meta.tag |
| 153 | +//^^ - source - comment - meta.tag |
| 154 | +// ^^^^^^^^^ meta.tag - source |
| 155 | + |
| 156 | + |
| 157 | + <script lang="livescript"> |
| 158 | + |
| 159 | +// <- source.livescript.embedded.html - source source |
| 160 | + </script> |
| 161 | +// <- source.livescript.embedded.html - source source |
| 162 | +//^^ source.livescript.embedded.html - source source |
| 163 | +// ^^^^^^^^^ meta.tag - source |
| 164 | + |
| 165 | + <script lang="livescript"> |
| 166 | + <!-- |
| 167 | +// ^^^^^^^^^ - source |
| 168 | +// ^^^^ comment.block.html punctuation.definition.comment.begin.html |
| 169 | +// ^ source.livescript.embedded.html - source source |
| 170 | + --> |
| 171 | +// ^^^^^ source.livescript.embedded.html - source source |
| 172 | +// ^^^ comment.block.html punctuation.definition.comment.end.html - source |
| 173 | +// ^ - source - comment - meta.tag |
| 174 | + </script> |
| 175 | +// <- - source - comment - meta.tag |
| 176 | +//^^ - source - comment - meta.tag |
| 177 | +// ^^^^^^^^^ meta.tag - source |
| 178 | + |
| 179 | + |
| 180 | + <script lang="ts"> |
| 181 | + |
| 182 | +// <- source.ts.embedded.html - source source |
| 183 | + </script> |
| 184 | +// <- source.ts.embedded.html - source source |
| 185 | +//^^ source.ts.embedded.html - source source |
| 186 | +// ^^^^^^^^^ meta.tag - source |
| 187 | + |
| 188 | + <script lang="ts"> |
| 189 | + <!-- |
| 190 | +// ^^^^^^^^^ - source |
| 191 | +// ^^^^ comment.block.html punctuation.definition.comment.begin.html |
| 192 | +// ^ source.ts.embedded.html - source source |
| 193 | + --> |
| 194 | +// ^^^^^ source.ts.embedded.html - source source |
| 195 | +// ^^^ comment.block.html punctuation.definition.comment.end.html - source |
| 196 | +// ^ - source - comment - meta.tag |
| 197 | + </script> |
| 198 | +// <- - source - comment - meta.tag |
| 199 | +//^^ - source - comment - meta.tag |
| 200 | +// ^^^^^^^^^ meta.tag - source |
0 commit comments