@retorquere/bibtex-parser 6.4.7 → 6.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grammar.js +23 -15
- package/package.json +16 -16
- package/unabbrev.json +14 -0
package/grammar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by Peggy
|
|
1
|
+
// Generated by Peggy 3.0.0.
|
|
2
2
|
//
|
|
3
3
|
// https://peggyjs.org/
|
|
4
4
|
|
|
@@ -45,16 +45,19 @@ peg$SyntaxError.prototype.format = function(sources) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
var s = this.location.start;
|
|
48
|
-
var
|
|
48
|
+
var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))
|
|
49
|
+
? this.location.source.offset(s)
|
|
50
|
+
: s;
|
|
51
|
+
var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;
|
|
49
52
|
if (src) {
|
|
50
53
|
var e = this.location.end;
|
|
51
|
-
var filler = peg$padEnd("",
|
|
54
|
+
var filler = peg$padEnd("", offset_s.line.toString().length, ' ');
|
|
52
55
|
var line = src[s.line - 1];
|
|
53
56
|
var last = s.line === e.line ? e.column : line.length + 1;
|
|
54
57
|
var hatLen = (last - s.column) || 1;
|
|
55
58
|
str += "\n --> " + loc + "\n"
|
|
56
59
|
+ filler + " |\n"
|
|
57
|
-
+
|
|
60
|
+
+ offset_s.line + " | " + line + "\n"
|
|
58
61
|
+ filler + " | " + peg$padEnd("", s.column - 1, ' ')
|
|
59
62
|
+ peg$padEnd("", hatLen, "^");
|
|
60
63
|
} else {
|
|
@@ -503,14 +506,14 @@ function peg$parse(input, options) {
|
|
|
503
506
|
}
|
|
504
507
|
}
|
|
505
508
|
};
|
|
506
|
-
var peg$f35 = function(mark,
|
|
509
|
+
var peg$f35 = function(mark, chr) {
|
|
507
510
|
return {
|
|
508
511
|
kind: 'DiacriticCommand',
|
|
509
512
|
loc: location(),
|
|
510
513
|
source: text(),
|
|
511
514
|
mark: mark,
|
|
512
|
-
dotless: !!
|
|
513
|
-
character:
|
|
515
|
+
dotless: !!chr[1],
|
|
516
|
+
character: chr[1] || chr[0],
|
|
514
517
|
}
|
|
515
518
|
};
|
|
516
519
|
var peg$f36 = function(v) {
|
|
@@ -611,24 +614,24 @@ function peg$parse(input, options) {
|
|
|
611
614
|
value: v,
|
|
612
615
|
}
|
|
613
616
|
};
|
|
614
|
-
var peg$f46 = function(mark,
|
|
617
|
+
var peg$f46 = function(mark, chr) {
|
|
615
618
|
return {
|
|
616
619
|
kind: 'DiacriticCommand',
|
|
617
620
|
loc: location(),
|
|
618
621
|
source: text(),
|
|
619
622
|
mark: mark,
|
|
620
|
-
dotless: !!
|
|
621
|
-
character:
|
|
623
|
+
dotless: !!chr[1],
|
|
624
|
+
character: chr[1] || chr[0],
|
|
622
625
|
}
|
|
623
626
|
};
|
|
624
|
-
var peg$f47 = function(mark,
|
|
627
|
+
var peg$f47 = function(mark, chr) {
|
|
625
628
|
return {
|
|
626
629
|
kind: 'DiacriticCommand',
|
|
627
630
|
loc: location(),
|
|
628
631
|
source: text(),
|
|
629
632
|
mark: mark,
|
|
630
|
-
dotless: !!
|
|
631
|
-
character:
|
|
633
|
+
dotless: !!chr[1],
|
|
634
|
+
character: chr[1] || chr[0],
|
|
632
635
|
}
|
|
633
636
|
};
|
|
634
637
|
var peg$f48 = function(mark, v) {
|
|
@@ -909,11 +912,11 @@ function peg$parse(input, options) {
|
|
|
909
912
|
}
|
|
910
913
|
}
|
|
911
914
|
|
|
912
|
-
function peg$computeLocation(startPos, endPos) {
|
|
915
|
+
function peg$computeLocation(startPos, endPos, offset) {
|
|
913
916
|
var startPosDetails = peg$computePosDetails(startPos);
|
|
914
917
|
var endPosDetails = peg$computePosDetails(endPos);
|
|
915
918
|
|
|
916
|
-
|
|
919
|
+
var res = {
|
|
917
920
|
source: peg$source,
|
|
918
921
|
start: {
|
|
919
922
|
offset: startPos,
|
|
@@ -926,6 +929,11 @@ function peg$parse(input, options) {
|
|
|
926
929
|
column: endPosDetails.column
|
|
927
930
|
}
|
|
928
931
|
};
|
|
932
|
+
if (offset && peg$source && (typeof peg$source.offset === "function")) {
|
|
933
|
+
res.start = peg$source.offset(res.start);
|
|
934
|
+
res.end = peg$source.offset(res.end);
|
|
935
|
+
}
|
|
936
|
+
return res;
|
|
929
937
|
}
|
|
930
938
|
|
|
931
939
|
function peg$fail(expected) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retorquere/bibtex-parser",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.9",
|
|
4
4
|
"description": "BibTeX parser",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
@@ -36,31 +36,31 @@
|
|
|
36
36
|
"author": "Emiliano Heyns",
|
|
37
37
|
"license": "ISC",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@microsoft/api-documenter": "^7.
|
|
40
|
-
"@microsoft/api-extractor": "^7.
|
|
41
|
-
"@types/node": "^18.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
43
|
-
"@typescript-eslint/parser": "^5.
|
|
39
|
+
"@microsoft/api-documenter": "^7.21.5",
|
|
40
|
+
"@microsoft/api-extractor": "^7.34.4",
|
|
41
|
+
"@types/node": "^18.14.1",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.53.0",
|
|
43
|
+
"@typescript-eslint/parser": "^5.53.0",
|
|
44
44
|
"command-line-args": "^5.2.1",
|
|
45
|
-
"csv": "^6.2.
|
|
45
|
+
"csv": "^6.2.7",
|
|
46
46
|
"digital-tree": "^2.0.4",
|
|
47
47
|
"ejs": "^3.1.8",
|
|
48
|
-
"eslint": "^8.
|
|
49
|
-
"eslint-plugin-import": "^2.27.
|
|
48
|
+
"eslint": "^8.35.0",
|
|
49
|
+
"eslint-plugin-import": "^2.27.5",
|
|
50
50
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
51
|
-
"glob": "^8.0
|
|
52
|
-
"mkdirp": "^1.
|
|
51
|
+
"glob": "^8.1.0",
|
|
52
|
+
"mkdirp": "^2.1.3",
|
|
53
53
|
"node-fetch": "^3.3.0",
|
|
54
|
-
"peggy": "^
|
|
54
|
+
"peggy": "^3.0.0",
|
|
55
55
|
"piscina": "^3.2.0",
|
|
56
56
|
"slug": "^8.2.2",
|
|
57
|
-
"tap": "^16.3.
|
|
57
|
+
"tap": "^16.3.4",
|
|
58
58
|
"ts-node": "^10.9.1",
|
|
59
|
-
"tslib": "^2.
|
|
60
|
-
"typescript": "^4.9.
|
|
59
|
+
"tslib": "^2.5.0",
|
|
60
|
+
"typescript": "^4.9.5"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"unicode2latex": "^3.0.
|
|
63
|
+
"unicode2latex": "^3.0.1",
|
|
64
64
|
"xregexp": "^5.1.1"
|
|
65
65
|
},
|
|
66
66
|
"files": [
|
package/unabbrev.json
CHANGED
|
@@ -766,6 +766,7 @@
|
|
|
766
766
|
"ACTA ARGENT FISIOL FISIOPATOL": "Acta argentina de fisiologi\u0301a y fisiopatologi\u0301a",
|
|
767
767
|
"ACTA ARITH": "Acta Arithmetica",
|
|
768
768
|
"ACTA ARITH.": "Acta Arithmetica",
|
|
769
|
+
"ACTA ASTRON.": "Acta Astronomica",
|
|
769
770
|
"ACTA ASTRONAUT": "Acta astronautica",
|
|
770
771
|
"ACTA ASTRONAUT.": "Acta Astronautica",
|
|
771
772
|
"ACTA ASTRONOM": "Acta Astronomica",
|
|
@@ -8253,6 +8254,7 @@
|
|
|
8253
8254
|
"AORN J.": "AORN Journal",
|
|
8254
8255
|
"AORTA (STAMFORD)": "Aorta (Stamford, Conn.)",
|
|
8255
8256
|
"AOTKRYT": "archeologi\u010deskie otkrytija",
|
|
8257
|
+
"AP&SS": "Astrophysics and Space Science",
|
|
8256
8258
|
"APA DECADE BEHAV VOL": "Participatory Community Research: Theories and Methods in Action",
|
|
8257
8259
|
"APA DECADE BEHAV. VOL.": "Apa Decade of Behavior Volumes",
|
|
8258
8260
|
"APA NEWSL": "APA newsletters",
|
|
@@ -8269,6 +8271,7 @@
|
|
|
8269
8271
|
"APH": "l\u2019ann\u00e9e philologique",
|
|
8270
8272
|
"APHD": "Archives de philosophie du droit",
|
|
8271
8273
|
"APHQ": "American Philosophical Quarterly",
|
|
8274
|
+
"APJ": "The Astrophysical Journal Letters",
|
|
8272
8275
|
"APL BIOENG": "APL bioengineering",
|
|
8273
8276
|
"APL BIOENG.": "APL Bioengineering",
|
|
8274
8277
|
"APL MATER": "APL materials",
|
|
@@ -8810,6 +8813,7 @@
|
|
|
8810
8813
|
"AQUILO SER BOT": "Aquilo. Ser. botanica",
|
|
8811
8814
|
"AQUITANIA": "aquitania. une revue inter-r\u00e9gionale d\u2019arch\u00e9ologie",
|
|
8812
8815
|
"AR": "Archaeological Reports",
|
|
8816
|
+
"ARA&A": "Annual Review of Astronomy and Astrophysics",
|
|
8813
8817
|
"ARAB AFF": "Arab affairs (London, England)",
|
|
8814
8818
|
"ARAB ARCHAEOL EPIGR": "Arabian Archaeology and Epigraphy",
|
|
8815
8819
|
"ARAB ECON": "The Arab economist",
|
|
@@ -10902,6 +10906,7 @@
|
|
|
10902
10906
|
"ASTRON. LETT+.+": "Astronomy Letters-a Journal of Astronomy and Space Astrophysics",
|
|
10903
10907
|
"ASTRON. LETT.": "Astronomy Letters",
|
|
10904
10908
|
"ASTRON. NACHR.": "Astronomische Nachrichten",
|
|
10909
|
+
"ASTRON. NACHRICHTEN": "Astronomische Nachrichten",
|
|
10905
10910
|
"ASTRON. REP+.+": "Astronomy Reports",
|
|
10906
10911
|
"ASTRON. REP.": "Astronomy Reports",
|
|
10907
10912
|
"ASTRON. UNIVERS.": "Universe Before The Big Bang: Cosmology and String Theory",
|
|
@@ -30742,6 +30747,7 @@
|
|
|
30742
30747
|
"ESSENT. CLIN. SOC. WORK": "Essential Clnical Social Work Series",
|
|
30743
30748
|
"ESSENT. CLIN. SOC. WORK.": "Adult Attachment in Clinical Social Work: Practice, Research, and Policy",
|
|
30744
30749
|
"ESSENT. CYTOPATHOL.": "Thyroid Cytopathology, Second Edition",
|
|
30750
|
+
"ESSENT. NUMBER THEORY": "Essential Number Theory",
|
|
30745
30751
|
"ESSENT. OPHTHALMOL.": "Vitreo-retinal Surgery",
|
|
30746
30752
|
"ESSENT. TEXTB. MATH.": "Essential Textbooks in Mathematics",
|
|
30747
30753
|
"ESSEX I HIST COLLECT": "Essex Institute Historical Collections",
|
|
@@ -55468,6 +55474,7 @@
|
|
|
55468
55474
|
"J. COSMET. SCI.": "Journal of Cosmetic Science",
|
|
55469
55475
|
"J. COSMOL. ASTROPART. P.": "Journal of Cosmology and Astroparticle Physics",
|
|
55470
55476
|
"J. COSMOL. ASTROPART. PHYS.": "Journal of Cosmology and Astroparticle Physics",
|
|
55477
|
+
"J. COSMOLOGY & ASTRO-PART. PHYS.": "Journal of Cosmology and Astro-Particle Physics",
|
|
55471
55478
|
"J. COUNS. DEV.": "Journal of Counseling and Development",
|
|
55472
55479
|
"J. COUNS. PSYCHOL.": "Journal of Counseling Psychology",
|
|
55473
55480
|
"J. COUNTRY MUSIC": "Journal of Country Music",
|
|
@@ -60290,6 +60297,7 @@
|
|
|
60290
60297
|
"KINGS LAW J": "King's law journal : KLJ",
|
|
60291
60298
|
"KINKI U SER QUANTUM": "Molecular Realizations of Quantum Computing 2007",
|
|
60292
60299
|
"KINKI U. SER. QUANTUM": "Kinki University Series On Quantum Computing",
|
|
60300
|
+
"KINKI UNIV. SER. QUANTUM COMPUT.": "Kinki University Series on Quantum Computing",
|
|
60293
60301
|
"KINKI. U. SER. QUANTUM": "Molecular Realizations of Quantum Computing 2007",
|
|
60294
60302
|
"KINSEY INST": "Role of Theory in Sex Research",
|
|
60295
60303
|
"KINSEY INST.": "Kinsey Institute Series",
|
|
@@ -66433,6 +66441,7 @@
|
|
|
66433
66441
|
"MNEMOSYNE. SUPPL.": "Oral Performance and Its Context",
|
|
66434
66442
|
"MNI OPEN RES": "MNI open research",
|
|
66435
66443
|
"MNIR": "Mededelingen van het Nederlandsch historisch Instituut te Rome",
|
|
66444
|
+
"MNRAS": "Monthly Notices of the Royal Astronomical Society",
|
|
66436
66445
|
"MO AES RES BULL": "Missouri Agricultural Experiment Station Research Bulletin",
|
|
66437
66446
|
"MO AES SPEC REP": "Missouri Agricultural Experiment Station Special Report",
|
|
66438
66447
|
"MO DENT J": "Missouri dental journal (Jefferson City, Mo.)",
|
|
@@ -68119,6 +68128,7 @@
|
|
|
68119
68128
|
"NASA MONOGR. SYST. SOF.": "Nasa Monographs in Systems and Software Engineering",
|
|
68120
68129
|
"NASA MONOGR. SYST. SOFTW. ENG.": "NASA Monographs in Systems and Software Engineering",
|
|
68121
68130
|
"NASA TECH MEMO": "NASA technical memorandum",
|
|
68131
|
+
"NASA-GCN": "GRB Coordinates Network",
|
|
68122
68132
|
"NASA. CONF. P.": "West Antarctic Ice Sheet Initiative, Vol 2",
|
|
68123
68133
|
"NASELENIE": "Naselenie (Sofia, Bulgaria : 1983)",
|
|
68124
68134
|
"NASN SCH NURSE": "NASN school nurse (Print)",
|
|
@@ -68127,6 +68137,7 @@
|
|
|
68127
68137
|
"NASSAU MED NEWS": "Nassau medical news",
|
|
68128
68138
|
"NASU SUTESHON": "Nasu Suteshon (Journal of Nursing Administration for Patients)",
|
|
68129
68139
|
"NASZA PRZESLOSC": "Nasza przesz\u0142os\u0301c\u0301",
|
|
68140
|
+
"NAT": "Nature",
|
|
68130
68141
|
"NAT AGING": "Nature aging",
|
|
68131
68142
|
"NAT AREA J": "Natural Areas Journal",
|
|
68132
68143
|
"NAT ASTRON": "Nature astronomy",
|
|
@@ -74062,6 +74073,7 @@
|
|
|
74062
74073
|
"PAS REP.": "PAS Reporter",
|
|
74063
74074
|
"PAS(SUPPL)": "Proceedings of the Aristotelian Society. Supplementary volume.",
|
|
74064
74075
|
"PASONARITI KENKYU": "Pa\u0304sonariti kenkyu\u0304",
|
|
74076
|
+
"PASP": "Publications of the Astronomical Society of the Pacific",
|
|
74065
74077
|
"PASSAGES": "Revising History",
|
|
74066
74078
|
"PASSAGES.": "Revising History",
|
|
74067
74079
|
"PASSATO PRESENTE": "Passato e presente (Florence, Italy)",
|
|
@@ -76785,6 +76797,7 @@
|
|
|
76785
76797
|
"POPUL. RES. POLICY REV.": "Population Research and Policy Review",
|
|
76786
76798
|
"POPUL. SPACE PLACE": "Population Space and Place",
|
|
76787
76799
|
"POPUL. STUD-NEW. YORK": "Population Studies-new York",
|
|
76800
|
+
"POPUL. STUD. JAPAN": "Population Studies of Japan",
|
|
76788
76801
|
"POPUL. TRENDS": "Population Trends",
|
|
76789
76802
|
"POPULATION (NY)": "Population (New York, N.Y.)",
|
|
76790
76803
|
"POPULATION BULL.": "Population Bulletin",
|
|
@@ -90327,6 +90340,7 @@
|
|
|
90327
90340
|
"SPAN. SERIES.": "Sense of Audience",
|
|
90328
90341
|
"SPANISH ECON. REV.": "Spanish Economic Review",
|
|
90329
90342
|
"SPARTAN MED RES J": "Spartan medical research journal",
|
|
90343
|
+
"SPAS BOOK SER.": "SPAS Book Series",
|
|
90330
90344
|
"SPASTIC QUART": "Spastics' quarterly",
|
|
90331
90345
|
"SPASTIC REV": "The Spastic review",
|
|
90332
90346
|
"SPAT COGN COMPUT": "Spatial cognition and computation",
|