Skip to content

Commit f8f9534

Browse files
authored
GEDCOM: Update tag to record (#3386)
Update `tag` to `record` (GEDCOM 5.5.5 spec terminology update)
1 parent 61c460e commit f8f9534

6 files changed

+41
-41
lines changed

components/prism-gedcom.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Prism.languages.gedcom = {
1010
}
1111
}
1212
},
13-
'tag': {
13+
'record': {
1414
// Preceded by level and optional pointer
1515
pattern: /(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,
1616
lookbehind: true,
17-
alias: 'string'
17+
alias: 'tag'
1818
},
1919
'level': {
2020
pattern: /(^[\t ]*)\d+/m,

components/prism-gedcom.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/languages/gedcom/level_feature.test

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
[
88
["level", "0"],
9-
["tag", "HEAD"],
9+
["record", "HEAD"],
1010
["level", "1"],
11-
["tag", "CHAR"],
11+
["record", "CHAR"],
1212
["line-value", ["ASCII"]],
1313
["level", "99"],
14-
["tag", "FOO"],
14+
["record", "FOO"],
1515
["line-value", ["bar"]]
1616
]
1717

1818
----------------------------------------------------
1919

20-
Checks for levels.
20+
Checks for levels.

tests/languages/gedcom/line-value_feature.test

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88

99
[
1010
["level", "1"],
11-
["tag", "CHIL"],
11+
["record", "CHIL"],
1212
["line-value", [["pointer", "@CHILD1@"]]],
1313
["level", "2"],
14-
["tag", "PLAC"],
14+
["record", "PLAC"],
1515
["line-value", ["ÁĆÉǴÍ,ḰĹḾŃÓ,ṔŔŚÚẂ,ÝŹáćé,ǵíḱĺḿ,ńóṕŕś,úẃýź"]],
1616
["level", "1"],
17-
["tag", "NAME"],
17+
["record", "NAME"],
1818
["line-value", ["code: 0313/COMMA ABOVE/"]],
1919
["level", "2"],
20-
["tag", "DATE"],
20+
["record", "DATE"],
2121
["line-value", ["@#DGREGORIAN@ 31 DEC 1997"]],
2222
["level", "2"],
23-
["tag", "CONT"],
23+
["record", "CONT"],
2424
["line-value", ["Copyright gedcom@@gedcom.org"]]
2525
]
2626

2727
----------------------------------------------------
2828

29-
Checks for line values.
29+
Checks for line values.

tests/languages/gedcom/pointer_feature.test

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
["pointer", "@_$!\"$%&'()*+,-./:;<=>?[\\]^`{|}~ #foobar@"],
1313
["level", "0"],
1414
["pointer", "@SUBMITTER@"],
15-
["tag", "SUBM"],
15+
["record", "SUBM"],
1616
["level", "1"],
17-
["tag", "FAMS"],
17+
["record", "FAMS"],
1818
["line-value", [["pointer", "@FAMILY@"]]]
1919
]
2020

2121
----------------------------------------------------
2222

23-
Checks for pointers.
23+
Checks for pointers.
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
0 HEAD
2-
1 foo_bar
3-
2 _
4-
3 @pointer@ _Sometag42
5-
4 247
6-
7-
----------------------------------------------------
8-
9-
[
10-
["level", "0"],
11-
["tag", "HEAD"],
12-
["level", "1"],
13-
["tag", "foo_bar"],
14-
["level", "2"],
15-
["tag", "_"],
16-
["level", "3"],
17-
["pointer", "@pointer@"],
18-
["tag", "_Sometag42"],
19-
["level", "4"],
20-
["tag", "247"]
21-
]
22-
23-
----------------------------------------------------
24-
25-
Checks for tags.
1+
0 HEAD
2+
1 foo_bar
3+
2 _
4+
3 @pointer@ _Sometag42
5+
4 247
6+
7+
----------------------------------------------------
8+
9+
[
10+
["level", "0"],
11+
["record", "HEAD"],
12+
["level", "1"],
13+
["record", "foo_bar"],
14+
["level", "2"],
15+
["record", "_"],
16+
["level", "3"],
17+
["pointer", "@pointer@"],
18+
["record", "_Sometag42"],
19+
["level", "4"],
20+
["record", "247"]
21+
]
22+
23+
----------------------------------------------------
24+
25+
Checks for records.

0 commit comments

Comments
 (0)