Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.0

Bug #12284 JS: hex numbers are not recognized
Submitted: 2007-10-19 19:50 UTC
From: sirzooro Assigned: stoyan
Status: Closed Package: Text_Highlighter (version 0.7.0)
PHP Version: 4.4.7 OS: Windows
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 13 + 25 = ?

 
 [2007-10-19 19:50 UTC] sirzooro (Daniel Fruzynski)
Description: ------------ Hex numbers are not highlighted correctly - Text_Highlighter splits them into number and identifier. Test script: --------------- $highlighter =& Text_Highlighter::factory('JAVASCRIPT'); print $highlighter->highlight('0x123'); Expected result: ---------------- <pre><span class="hl-number">0x123</span></pre> Actual result: -------------- <pre><span class="hl-number">0</span><span class="hl-identifier">x123</span></pre>

Comments

 [2008-01-01 23:50 UTC] stoyan (Stoyan Stefanov)
Thanks for the report! Now fixed in cvs. Stoyan