Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
29 lines
720 B
Plaintext
29 lines
720 B
Plaintext
Prism.languages.gedcom = {
|
|
'line-value': {
|
|
// Preceded by level, optional pointer, and tag
|
|
pattern: /(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,
|
|
lookbehind: true,
|
|
inside: {
|
|
'pointer': {
|
|
pattern: /^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,
|
|
alias: 'variable'
|
|
}
|
|
}
|
|
},
|
|
'record': {
|
|
// Preceded by level and optional pointer
|
|
pattern: /(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,
|
|
lookbehind: true,
|
|
alias: 'tag'
|
|
},
|
|
'level': {
|
|
pattern: /(^[\t ]*)\d+/m,
|
|
lookbehind: true,
|
|
alias: 'number'
|
|
},
|
|
'pointer': {
|
|
pattern: /@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,
|
|
alias: 'variable'
|
|
}
|
|
};
|