The type meta can be a pain to parse indeed.
This is what I'm using at the moment:
All case insensitive, and do note the space in "Hi-Res primitive" you need to keep an eye on that while parsing.
You also need to skip an optional "LCAD" after the main meta keyword.
Hope it helps.
This is what I'm using at the moment:
Code:
meta: "LDRAW", "LDRAWORG", "LDRAW_ORG", "!LDRAW_ORG", "OFFICIAL", "UNOFFICIAL", "UN-OFFICIAL",
type: "Part", "Subpart", "Primitive", "48_Primitive", "Shortcut", "File", "Model", "Submodel", "Element", "Sub-part", "Hi-Res primitive", "Alias", "Cross-reference", "Configuration", "Unofficial_Primitive", "Unofficial_Part", "Unofficial_Model"
qualifier: "Physical_Colour", "Alias"
All case insensitive, and do note the space in "Hi-Res primitive" you need to keep an eye on that while parsing.
You also need to skip an optional "LCAD" after the main meta keyword.
Hope it helps.