Urara-Blog/node_modules/.pnpm-store/v3/files/68/716f6fadae4aea050e30395bdb4cbef44f964128462650cf7d4670b2ec52b1baeabe695ebc1351501712e7e0b244440871580e8157528e340dfb6f8dede89d
2022-08-14 01:14:53 +08:00

43 lines
720 B
Text

Prism.languages.gettext = {
'comment': [
{
pattern: /# .*/,
greedy: true,
alias: 'translator-comment'
},
{
pattern: /#\..*/,
greedy: true,
alias: 'extracted-comment'
},
{
pattern: /#:.*/,
greedy: true,
alias: 'reference-comment'
},
{
pattern: /#,.*/,
greedy: true,
alias: 'flag-comment'
},
{
pattern: /#\|.*/,
greedy: true,
alias: 'previously-untranslated-comment'
},
{
pattern: /#.*/,
greedy: true
},
],
'string': {
pattern: /(^|[^\\])"(?:[^"\\]|\\.)*"/,
lookbehind: true,
greedy: true
},
'keyword': /^msg(?:ctxt|id|id_plural|str)\b/m,
'number': /\b\d+\b/,
'punctuation': /[\[\]]/
};
Prism.languages.po = Prism.languages.gettext;