From 5d309ff52cd399a6b71968a6b9a70c8ac0b98981 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sat, 5 Mar 2022 19:02:27 +0200 Subject: Added node_modules for the updating to work properly. --- node_modules/xml-name-validator/lib/grammar.pegjs | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 node_modules/xml-name-validator/lib/grammar.pegjs (limited to 'node_modules/xml-name-validator/lib/grammar.pegjs') diff --git a/node_modules/xml-name-validator/lib/grammar.pegjs b/node_modules/xml-name-validator/lib/grammar.pegjs new file mode 100644 index 0000000..0bcd608 --- /dev/null +++ b/node_modules/xml-name-validator/lib/grammar.pegjs @@ -0,0 +1,35 @@ +// http://www.w3.org/TR/xml/#NT-Name + +NameStartChar = ":" / [A-Z] / "_" / [a-z] / [\u00C0-\u00D6] / [\u00D8-\u00F6] / [\u00F8-\u02FF] / [\u0370-\u037D] / + [\u037F-\u1FFF] / [\u200C-\u200D] / [\u2070-\u218F] / [\u2C00-\u2FEF] / [\u3001-\uD7FF] / + [\uF900-\uFDCF] / [\uFDF0-\uFFFD] / [\uD800-\uDB7F][\uDC00-\uDFFF] ; + +// last clause above produced by https://mothereff.in/regexpu#%2F%5B%5Cu%7B10000%7D-%5Cu%7BEFFFF%7D%5D%2Fu + +NameChar = NameStartChar / "-" / "." / [0-9] / "\u00B7" / [\u0300-\u036F] / [\u203F-\u2040] ; + +Name = NameStartChar NameChar* ; + +// http://www.w3.org/TR/xml-names/#NT-QName + +QName = PrefixedName + / UnprefixedName ; + +PrefixedName = Prefix ":" LocalPart ; + +UnprefixedName = LocalPart ; + +Prefix = NCName ; + +LocalPart = NCName ; + +// http://www.w3.org/TR/xml-names/#NT-NCName +// Same as Name productions but removing the ":" from NCNameStartChar + +NCNameStartChar = [A-Z] / "_" / [a-z] / [\u00C0-\u00D6] / [\u00D8-\u00F6] / [\u00F8-\u02FF] / [\u0370-\u037D] / + [\u037F-\u1FFF] / [\u200C-\u200D] / [\u2070-\u218F] / [\u2C00-\u2FEF] / [\u3001-\uD7FF] / + [\uF900-\uFDCF] / [\uFDF0-\uFFFD] / [\uD800-\uDB7F][\uDC00-\uDFFF] ; + +NCNameChar = NCNameStartChar / "-" / "." / [0-9] / "\u00B7" / [\u0300-\u036F] / [\u203F-\u2040] ; + +NCName = NCNameStartChar NCNameChar* ; -- cgit v1.2.3