-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spdx-utils: Fix parsing license references as exceptions
This is a fixup for 91056e1 which did not acutally fix the issue. The problem was that the first part of the `REFERENCE` rule was optional, as a result any license reference was always put in a `REFERENCE` token, but never in a `LICENSEREFERENCE` token by the lexer. Fix this by making two separate rule for license references and document references, to prevent overlap in the rules. Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@here.com>
- Loading branch information
1 parent
523d2d9
commit 13fa6ee
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters