Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for bug #12284 (hex numbers not recognized)

git-svn-id: http://svn.php.net/repository/pear/packages/Text_Highlighter/trunk@249647 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 2712a36f23e321b5b7358487efec74a7ea64dc74 1 parent 370c15f
Stoyan Stefanov authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 javascript.xml
View
5 javascript.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<!-- $Id: javascript.xml,v 1.2 2007-06-05 21:57:21 ssttoo Exp $ -->
+<!-- $Id: javascript.xml,v 1.3 2008-01-01 23:43:36 ssttoo Exp $ -->
<highlight lang="javascript" case = "no">
@@ -44,7 +44,8 @@
<block name="identifier" match="[a-z_]\w*" innerClass="identifier" case="no"/>
- <block name="number" match="\d*\.?\d+" innerClass="number"/>
+ <block name="number" match="0x\d*|\d*\.?\d+" innerClass="number"/>
+
<block name="url" match="((https?|ftp):\/\/[\w\?\.\-\&amp;=\/%+]+)|(^|[\s,!?])www\.\w+\.\w+[\w\?\.\&amp;=\/%+]*" innerClass="url" contained="yes">
<onlyin region="mlcomment"/>
Please sign in to comment.
Something went wrong with that request. Please try again.