Skip to content

Commit

Permalink
feat: add the lists namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau committed Sep 6, 2018
1 parent cb215cb commit 7bfcca0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/xmlchars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ export namespace XML_1_0 {
const MINUS = 0x2D;
const COLON = 0x3A;

/**
* Lists of characters.
*
* The names defined in this namespace are arrays of codepoints which
* contain the set of codepoints that an XML production encompasses. Note
* that many productions are too large to be reasonably represented as sets.
*/
export namespace lists {
export const S = [SPACE, NL, CR, TAB];
}

/**
* Determines whether a codepoint matches the ``CHAR`` production.
*
Expand Down

0 comments on commit 7bfcca0

Please sign in to comment.