<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : end:CLASS statement evaluation in lexclass</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : end:CLASS statement evaluation in lexclass]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 02:58:24 +0000</pubDate>
  <lastBuildDate>Tue, 30 Jun 2020 12:43:01 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=24011</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[end:CLASS statement evaluation in lexclass : I wrote a lex schema in order...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24011&amp;PID=77752&amp;title=endclass-statement-evaluation-in-lexclass#77752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9428">lestat</a><br /><strong>Subject:</strong> 24011<br /><strong>Posted:</strong> 30 June 2020 at 12:43pm<br /><br /><div>I wrote a lex schema in order to have the xml support but I'm not able to correctly identify&nbsp; the end of a tag. When the editor find a suitable end tag, it closes all the previously opened tags.</div><div>Is it a bug or I made a mistake?</div><div>In this output, the block start tags are correctly colored in red, while the end tags are colored in black. The collapse behavior is wrong: the two "&lt;conf&gt;" tags are closed on the first &lt;/conf&gt;</div><div></div><div><img src="uploads/9428/Capture.PNG" height="92" width="136" border="0" /><br></div><div>Here's a simplified schema:<br></div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div><div><font face="Courier New, Courier, mono">/// XML ///<span style="white-space:pre">	</span></font></div></div><div><div><font face="Courier New, Courier, mono">lexClass:</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>parent:file<span style="white-space:pre">		</span>= &lt;*.xml&gt;</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>name<span style="white-space:pre">			</span>= c_XML</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>//caseSensitive<span style="white-space:pre">	</span>= 0</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>txt:colorFG<span style="white-space:pre">	</span>= 0x000000</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>DisplayName = 'Normal Text'</font></div></div><div><div><font face="Courier New, Courier, mono"><br></font></div></div><div><div><font face="Courier New, Courier, mono">lexClass:</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>name<span style="white-space:pre">		</span>= c_XmlBlock_end</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>parent = c_XML,c_XmlBlock</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>children<span style="white-space:pre">	</span>= 0<span style="white-space:pre">	</span></font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>start:tag = '&lt;/'</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>end:tag<span style="white-space:pre">		</span>= '&gt;'</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>txt:bold<span style="white-space:pre">	</span>= 1</font></div></div><div><div><font face="Courier New, Courier, mono">&nbsp; txt:Underline = 1</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>DisplayName = 'XML Block (end)'</font></div></div><div><div><font face="Courier New, Courier, mono">//:lexClass</font></div></div><div><div><font face="Courier New, Courier, mono"><br></font></div></div><div><div><font face="Courier New, Courier, mono">lexClass:</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>name<span style="white-space:pre">		</span>= c_XmlBlock_start<span style="white-space:pre">	</span></font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>parent = c_XML,c_XmlBlock</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>start:tag = '&lt;'</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>end:tag<span style="white-space:pre">		</span>= '&gt;'<span style="white-space:pre">	</span></font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>txt:bold<span style="white-space:pre">	</span>= 1</font></div></div><div><div><font face="Courier New, Courier, mono">&nbsp; txt:Underline = 1&nbsp;</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>txt:colorFG<span style="white-space:pre">	</span>= 0x840000</font></div></div><div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>DisplayName = 'XML Block (start)'</font></div></div><div><div><font face="Courier New, Courier, mono">//:lexClass</font></div></div><div><font face="Courier New, Courier, mono"><div><br></div><div>lexClass:</div><div>&nbsp; &nbsp; name&nbsp; = c_XmlBlock</div><div><span style="white-space:pre">	</span>&nbsp; parent:dyn = c_XML, c_XmlBlock</div><div>&nbsp; &nbsp; start:CLASS = c_XmlBlock_start</div><div>&nbsp; &nbsp; end:CLASS = c_XmlBlock_end</div><div>&nbsp; &nbsp; Collapsable = 1</div><div>&nbsp; &nbsp; CollapsedText = '...'</div><div>&nbsp; &nbsp; DisplayName = 'XmlBlock'</div><div>//:lexClass</div></font></div></blockquote>]]>
   </description>
   <pubDate>Tue, 30 Jun 2020 12:43:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24011&amp;PID=77752&amp;title=endclass-statement-evaluation-in-lexclass#77752</guid>
  </item> 
 </channel>
</rss>