[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
|