Skip to content

Commit

Permalink
Correctly use module default implicit/explicit setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
lapo-luchini committed Nov 2, 2022
1 parent c29661d commit 7334473
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parseRFC.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ Parser.prototype.parseTaggedType = function () {
let t = this.parseNumber();
this.expectToken(']');
let plicit = this.getRegEx('explicit/implicit', reTagType);
if (plicit == '') plicit = currentMod.tagDefault;
let x = this.parseType();
return {
name: '[' + t + ']',
Expand Down Expand Up @@ -429,7 +430,7 @@ Parser.prototype.parseModuleDefinition = function (file) {
currentMod = mod; // for deeply nested parsers
mod.source = file;
this.expectToken('DEFINITIONS');
mod.tagDefault = this.getRegEx('tag default', reTagDefault);
mod.tagDefault = this.getRegEx('tag default', reTagDefault).split(' ')[0];
this.expectToken('::=');
this.expectToken('BEGIN');
//TODO this.tryToken('EXPORTS')
Expand Down

0 comments on commit 7334473

Please sign in to comment.