Syntax-Highlight-Universal

 view release on metacpan or  search on metacpan

lib/Syntax/Highlight/Universal/hrc/xml/xinclude.hrc  view on Meta::CPAN

      <scheme name="_hrc_int_elementContent">
         <block start="/~( (&lt;) (  ((%xml:NCName;) (:) )? (%xml:Name;) ) \M &gt;?   )/x" end="/( (&lt;\/) (\y3\b)?= ( (%xml:NCName;) (:) )? (%xml:Name;) \b \M \s* (&gt;?)                   | (\/ \M &gt;) )/x" region01="PairStart" region02="element....
         <inherit scheme="xml:badChar"/>
      </scheme>
      <scheme name="_hrc_int_AttValue">
         <block start="/(&#34;)/" end="/(\y1)/" region00="PairStart" region10="PairEnd" region01="AttValue.start" region11="AttValue.end" scheme="xml:AttValue.content.quot" region="AttValue"/>
         <block start="/(')/" end="/(\y1)/" region00="PairStart" region10="PairEnd" region01="AttValue.start" region11="AttValue.end" scheme="xml:AttValue.content.apos" region="AttValue"/>
      </scheme>
      <scheme name="AttributeContent">
         <inherit scheme="xml:AttributeContent">
            <virtual scheme="xml:AttValue" subst-scheme="_hrc_int_AttValue"/>
         </inherit>
      </scheme>
      <scheme name="include-element">
         <block start="/\M &lt; (%nsprefix;include ([\s\/&gt;]|$) )/x" end="/ &gt; /x" scheme="includeType-elementContent"/>
      </scheme>
      <scheme name="fallback-element">
         <block start="/\M &lt; (%nsprefix;fallback ([\s\/&gt;]|$) )/x" end="/ &gt; /x" scheme="fallbackType-elementContent"/>
      </scheme>

      <scheme name="includeType-content">
         <inherit scheme="fallback-element"/>
         <regexp match="/ &lt; (%ns-real-prefix;%xml:NCName; ([\s\/&gt;]|$) )/x" region="def:Error"/>
         <inherit scheme="xml:element"/>
         <inherit scheme="xml:element"/>
      </scheme>
      <scheme name="includeType-content-error">
         <inherit scheme="includeType-content"/>
         <inherit scheme="xml:badChar"/>
      </scheme>
      <scheme name="includeType-Attributes">
         <block end="/[&#34;']?#1/" region02="Attribute.name" start="/(\s?#1|^)(href)\M([\s\=]|$)/x" scheme="xmlschema:anyURI-AttributeContent"/>
         <block end="/[&#34;']?#1/" region02="Attribute.name" start="/(\s?#1|^)(parse)\M([\s\=]|$)/x" scheme="parseType-AttributeContent"/>
         <block end="/[&#34;']?#1/" region02="Attribute.name" start="/(\s?#1|^)(encoding)\M([\s\=]|$)/x" scheme="xmlschema:string-AttributeContent"/>
         <inherit scheme="xml:Attribute.any"/>
      </scheme>
      <scheme name="includeType-elementContent">
         <inherit scheme="_hrc_int_elementContent">
            <virtual scheme="xml:element" subst-scheme="includeType-content"/>
            <virtual scheme="xml:Attribute.any" subst-scheme="includeType-Attributes"/>
         </inherit>
      </scheme>

      <scheme name="parseType-content">
         <regexp region="Enumeration" match="/xml/"/>
         <regexp region="Enumeration" match="/text/"/>
      </scheme>
      <scheme name="parseType-content-error">
         <inherit scheme="parseType-content"/>
         <inherit scheme="xml:badChar"/>
      </scheme>
      <scheme name="parseType-Attributes"/>
      <scheme name="parseType-AttributeContent">
         <inherit scheme="AttributeContent">
            <virtual scheme="xml:AttValue.content.stream" subst-scheme="parseType-content-error"/>
         </inherit>
      </scheme>
      <scheme name="parseType-elementContent">
         <inherit scheme="_hrc_int_elementContent">
            <virtual scheme="xml:CDSect.content.stream" subst-scheme="parseType-content-error"/>
            <virtual scheme="xml:content.cdata.stream" subst-scheme="parseType-content-error"/>
            <virtual scheme="xml:element" subst-scheme="def:empty"/>
            <virtual scheme="xml:Attribute.any" subst-scheme="parseType-Attributes"/>
         </inherit>
      </scheme>

      <scheme name="fallbackType-content">
         <inherit scheme="include-element"/>
         <regexp match="/ &lt; (%ns-real-prefix;%xml:NCName; ([\s\/&gt;]|$) )/x" region="def:Error"/>
         <inherit scheme="xml:element"/>
         <inherit scheme="xml:element"/>
      </scheme>
      <scheme name="fallbackType-content-error">
         <inherit scheme="fallbackType-content"/>
         <inherit scheme="xml:badChar"/>
      </scheme>
      <scheme name="fallbackType-Attributes">
         <inherit scheme="xml:Attribute.any"/>
      </scheme>
      <scheme name="fallbackType-elementContent">
         <inherit scheme="_hrc_int_elementContent">
            <virtual scheme="xml:element" subst-scheme="fallbackType-content"/>
            <virtual scheme="xml:Attribute.any" subst-scheme="fallbackType-Attributes"/>
         </inherit>
      </scheme>


      <scheme name="xinclude-root">
         <annotation>
            <documentation>
               You can replace these elements with needed single root element
               with customizing HRC generation process.
              </documentation>
         </annotation>
         <inherit scheme="include-element"/>
         <inherit scheme="fallback-element"/>
      </scheme>
      <scheme name="xinclude">
         <inherit scheme="xml:singleroot">
            <virtual scheme="xml:element" subst-scheme="xinclude-root"/>
         </inherit>
      </scheme>
   </type>
</hrc>
<!-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is the Colorer Library.
   -
   - The Initial Developer of the Original Code is
   - Cail Lomecb <cail@nm.ru>.



( run in 0.510 second using v1.01-cache-2.11-cpan-39bf76dae61 )