ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> scintilla-interest
scintilla-interest
[scintilla-interest] Lexer bugs
by Ivo Jansch other posts by this author
Dec 20 2000 11:23AM messages near this date
Re: [scintilla-interest] Fw: Splitting up Edit Menu | Re: [scintilla-interest] Lexer bugs
Hi,

we found some weird lexer bugs:


1) The following code is rendered really weird (in some yellowish
green), and it's caused by the name
   'jscript'. (php lexer)

<?
  $jscript = "test";
?> 

2) In the following piece of code, the lexer sees the </script>  as
comments. This is a hard one I guess, because it depends on how you
interpret the -->  and the //.  (php lexer) (it works when </script> is
on the next line)

<script language="javascript"> <!--

  function something()
  {
  }

//--> </script>

3) The following piece of code breaks the lexer (caused by the <script> 
tag) (xml lexer):

<?xml version="1.0"> 
<page> 
  <script> 
    <item value="something"/> 
  </script> 
</page> 
</xml> 

Greetings,
Ivo

-- 
Ivo Jansch <ivo@[...].nl> 
ibuildings.nl BV - information technology
http://www.ibuildings.nl
Thread:
Ivo Jansch
Neil Hodgson
Neil Hodgson
Steve Lhomme
Michele Campeotto

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved