|
| 1 | +// SYNTAX TEST "Vue Component.sublime-syntax" |
| 2 | + |
| 3 | +<!-- |
| 4 | + Test i18n loader tags |
| 5 | + |
| 6 | + https://github.com/kazupon/vue-i18n |
| 7 | + --> |
| 8 | + |
| 9 | +<i18n> |
| 10 | +//^^^^ meta.tag.i18n.begin.html |
| 11 | +//^^^ entity.name.tag.i18n.html |
| 12 | +// ^ punctuation.definition.tag.end.html |
| 13 | +// ^ - source |
| 14 | + |
| 15 | +// <- source.yaml.embedded.html |
| 16 | +</i18n> |
| 17 | +//^^^^^ meta.tag.i18n.end.html |
| 18 | +//^^^^ entity.name.tag.i18n.html |
| 19 | +// ^ punctuation.definition.tag.end.html |
| 20 | + |
| 21 | +<i18n> |
| 22 | + { |
| 23 | +// ^ source.json.embedded.html meta.mapping.json punctuation.section.mapping.begin.json |
| 24 | + "en": { |
| 25 | +// ^^^^ source.json.embedded.html meta.mapping.key.json string.quoted.double.json |
| 26 | + "homePage": "Home", |
| 27 | +// ^^^^^^^^^^^^^^^^^^^^^ source.json.embedded.html meta.mapping.value.json |
| 28 | +// ^^^^^^^^^^ meta.mapping.key.json string.quoted.double.json |
| 29 | +// ^ meta.mapping.json punctuation.separator.key-value.json |
| 30 | +// ^^^^^^ meta.mapping.value.json meta.string.json string.quoted.double.json |
| 31 | + }, |
| 32 | +// ^^^ source.json.embedded.html meta.mapping.value.json meta.mapping.json |
| 33 | + } |
| 34 | +// ^ source.json.embedded.html meta.mapping.json punctuation.section.mapping.end.json |
| 35 | +</i18n> |
| 36 | +//^^^^^ meta.tag.i18n.end.html |
| 37 | +//^^^^ entity.name.tag.i18n.html |
| 38 | +// ^ punctuation.definition.tag.end.html |
| 39 | + |
| 40 | +<i18n> |
| 41 | + en: |
| 42 | + homePage: Home |
| 43 | +// ^^^^^^^^^^^^^^^^ source.yaml.embedded.html |
| 44 | +// ^^^^^^^^ meta.mapping.key.yaml meta.string.yaml string.unquoted |
| 45 | +// ^ meta.mapping.yaml punctuation.separator.key-value |
| 46 | +// ^^^^ meta.string.yaml string.unquoted |
| 47 | +</i18n> |
| 48 | +//^^^^^ meta.tag.i18n.end.html |
| 49 | +//^^^^ entity.name.tag.i18n.html |
| 50 | +// ^ punctuation.definition.tag.end.html |
| 51 | + |
| 52 | +<i18n |
| 53 | + attr="value" |
| 54 | +//^^^^^^^^^^^^^^ meta.tag.i18n.begin.html |
| 55 | +// ^^^^^^^^^^^^ meta.attribute-with-value.html |
| 56 | +// ^^^^ entity.other.attribute-name.html |
| 57 | +// ^ punctuation.separator.key-value.html |
| 58 | +// ^^^^^^^ meta.string.html string.quoted.double.html |
| 59 | +// ^ punctuation.definition.string.begin.html |
| 60 | +// ^ punctuation.definition.string.end.html |
| 61 | +> |
| 62 | +// <- meta.tag.i18n.begin.html punctuation.definition.tag.end.html |
| 63 | + en: |
| 64 | + homePage: Home |
| 65 | +// ^^^^^^^^^^^^^^^^ source.yaml.embedded.html |
| 66 | +// ^^^^^^^^ meta.mapping.key.yaml meta.string.yaml string.unquoted |
| 67 | +// ^ meta.mapping.yaml punctuation.separator.key-value |
| 68 | +// ^^^^ meta.string.yaml string.unquoted |
| 69 | +</i18n |
| 70 | +//^^^^^ meta.tag.i18n.end.html |
| 71 | +//^^^^ entity.name.tag.i18n.html |
| 72 | +> |
| 73 | +// <- meta.tag.i18n.end.html punctuation.definition.tag.end.html |
0 commit comments