Skip to content

Commit

Permalink
syn: Permit even undefined flags in the set of all permissible flag c…
Browse files Browse the repository at this point in the history
…haracters
  • Loading branch information
terryburton committed May 21, 2024
1 parent 2fbbf70 commit 563e74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c-lib/syn.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ int parseSyntaxDictionaryEntry(gs1_encoder* const ctx, const char* const line, c
error("Truncated after AI");

// Check if we have exclusively flag characters
if (strspn(token, "*?") == strlen(token)) {
if (strspn(token, "*?!\"$%&'()+,-./:;<=>@[\\]^_`{|}~") == strlen(token)) {
flags = token;
token = strtok_r(NULL, " \t", &saveptr);
if (!token)
Expand Down

0 comments on commit 563e74a

Please sign in to comment.