Skip to content

Commit

Permalink
Merge pull request #38 from rdicosmo/main
Browse files Browse the repository at this point in the history
Specify that qualifiers must occurr at most once.
  • Loading branch information
zvr authored Oct 11, 2023
2 parents 8b75455 + 804ad32 commit 3b21848
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Chapters/6.Qualified_identifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ as detailed in the following sections.
## 6.1 Fragment qualifiers

There are two fragment qualifiers, `lines` and `bytes`.
Each fragment qualifier MUST appear at most once.

Fragment qualifiers are only valid for objects of type content.

The two fragment qualifiers are mutually exclusive: a valid SWHID MUST not contain both.
Each valid SWHID must have at most one fragment qualifier.

A conformant implementation MAY accept a SWHID that violates this constraint,
by ignoring the `lines` qualifier when the `bytes` qualifier is present.

Expand Down Expand Up @@ -55,6 +58,9 @@ does not rely on any convention about line numbers.

## 6.2 Context qualifiers

There are four context qualifiers, `origin`, `visit`, `path` and `anchor`.
Each context qualifier MUST appear at most once.

### 6.2.1 Origin qualifier

This qualifier allows to declare the *software origin* where the
Expand Down

0 comments on commit 3b21848

Please sign in to comment.