Makeup v0.5.0 Makeup.Lexer.Groups View Source
TODO
Link to this section Summary
Functions
Defines a function with the given name
that takes a list of tokens and divides
matching delimiters into groups
Returns a random prefix for group ids in an HTML file
Link to this section Functions
Defines a function with the given name
that takes a list of tokens and divides
matching delimiters into groups.
Takes as arguments a name
for the function (must be an atom) and a list
containing the patterns describing the matching groups.
Returns a random prefix for group ids in an HTML file.
This is useful to avoid collisions. The group ids should be unique for a certain HTML document, and the easiest way of guaranteeing it is by generating long random prefixes.