Skip to content

def.lang: Update Unicode identifier regexes

  • Update def:unicode-id-start and def:unicode-id-continue

    The definitions of ID_Start and ID_Continue include subtracting characters from Pattern_Syntax and Pattern_White_Space; there is one character (U+2E2F VERTICAL TILDE) that needs to be subtracted.

  • Add def:unicode-xid-start and def:unicode-xid-continue

    These classes are ID_Start and ID_Continue modified for closure under NFKC normalization; certain ineligible characters are subtracted.

Also:

  • Update python3.lang to use def:unicode-xid-start and def:unicode-xid-continue

  • Update javascript.lang (and family) with the updated definition of def:unicode-id-continue

Merge request reports

Loading