Allow hyphens in group names for productionlist cross-references

This commit is contained in:
Adam Turner 2024-01-09 02:36:58 +00:00
parent 2d1b94361f
commit 6ac7cdbb02

View File

@ -34,7 +34,7 @@ logger = logging.getLogger(__name__)
# RE for option descriptions # RE for option descriptions
option_desc_re = re.compile(r'((?:/|--|-|\+)?[^\s=]+)(=?\s*.*)') option_desc_re = re.compile(r'((?:/|--|-|\+)?[^\s=]+)(=?\s*.*)')
# RE for grammar tokens # RE for grammar tokens
token_re = re.compile(r'`((~?\w*:)?\w+)`') token_re = re.compile(r'`((~?[\w-]*:)?\w+)`')
samp_role = EmphasizedLiteral() samp_role = EmphasizedLiteral()