Error parsing

Diego Fernandez <[email protected]> Tue, 14 Feb 2017 19:30:48 +0000
Newsgroups gmane.emacs.semantic
Message-ID <CAOfexJMz1mHvGHoTeNzUaR-DSKa-n4xPAqPtbvjswfARRJ5pwQ@mail.gmail.com>
--===============3527448714082956847==
Content-Type: multipart/alternative; boundary=001a11404324837dcb0548829a3e

--001a11404324837dcb0548829a3e
Content-Type: text/plain; charset=UTF-8

Hey all,

>From searching around, it seems like this is the right place to report
bugs. I'm running into this error while looking through python files:

Parsing HTMLParser.py (LALR)...
Save Error: "Unmatched Text during Lexical Analysis":
/home/difernan/.emacs.d/semanticdb/!usr!lib64!python2.7!semantic.cache

I went into the file and ran semantic-lex-debug and it looks like it's
breaking when parsing the following:

locatestarttagend = re.compile(r"""
  <[a-zA-Z][^\t\n\r\f />\x00]*       # tag name
  (?:[\s/]*                          # optional whitespace before attribute
name
    (?:(?<=['"\s/])[^\s/>][^\s/=>]*  # attribute name
      (?:\s*=+\s*                    # value indicator
        (?:'[^']*'                   # LITA-enclosed value
          |"[^"]*"                   # LIT-enclosed value
          |(?!['"])[^>\s]*           # bare value
         )
       )?(?:\s|/(?!>))*
     )*
   )?
  \s*                                # trailing whitespace
""", re.VERBOSE)

--001a11404324837dcb0548829a3e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hey all,<div><br></div><div>From searching around, it seem=
s like this is the right place to report bugs. I&#39;m running into this er=
ror while looking through python files:</div><div><br></div><div><div>Parsi=
ng HTMLParser.py (LALR)...</div><div>Save Error: &quot;Unmatched Text durin=
g Lexical Analysis&quot;: /home/difernan/.emacs.d/semanticdb/!usr!lib64!pyt=
hon2.7!semantic.cache</div></div><div><br></div><div>I went into the file a=
nd ran semantic-lex-debug and it looks like it&#39;s breaking when parsing =
the following:</div><div><br></div><div><div>locatestarttagend =3D re.compi=
le(r&quot;&quot;&quot;</div><div>=C2=A0 &lt;[a-zA-Z][^\t\n\r\f /&gt;\x00]* =
=C2=A0 =C2=A0 =C2=A0 # tag name</div><div>=C2=A0 (?:[\s/]* =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0# optional whitespace before attribute name</div><div>=C2=A0 =C2=A0 (?:(=
?&lt;=3D[&#39;&quot;\s/])[^\s/&gt;][^\s/=3D&gt;]* =C2=A0# attribute name</d=
iv><div>=C2=A0 =C2=A0 =C2=A0 (?:\s*=3D+\s* =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# value indicator</div><div>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 (?:&#39;[^&#39;]*&#39; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # LITA-enclosed value</div><div>=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 |&quot;[^&quot;]*&quot; =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # LIT-enclosed value</div><div>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |(?![&#39;&quot;])[^&gt;\s]* =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 # bare value</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0)</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0)?(?:\s|/(?!&gt;))*</div><div>=C2=
=A0 =C2=A0 =C2=A0)*</div><div>=C2=A0 =C2=A0)?</div><div>=C2=A0 \s* =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# trailing whitespace</div><div>&quot;&quot;=
&quot;, re.VERBOSE)</div></div><div><br></div></div>

--001a11404324837dcb0548829a3e--


--===============3527448714082956847==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--===============3527448714082956847==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
cedet-semantic mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-semantic

--===============3527448714082956847==--