Permalink
Browse files

Fix for bug #11160 - removed the part that was trying to quote regexp…

…s in JS code

git-svn-id: http://svn.php.net/repository/pear/packages/Text_Highlighter/trunk@237053 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 0fab9c0 commit d13ed9f1b04f6c4d49a93b8114614be7d1eecdbc Stoyan Stefanov committed Jun 5, 2007
Showing with 5 additions and 15 deletions.
  1. +5 −15 javascript.xml
View
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<!-- $Id: javascript.xml,v 1.1 2007-06-03 02:35:28 ssttoo Exp $ -->
+<!-- $Id: javascript.xml,v 1.2 2007-06-05 21:57:21 ssttoo Exp $ -->
<highlight lang="javascript" case = "no">
@@ -38,20 +38,10 @@
<onlyin region="strdouble"/>
</block>
- <block name="reescaped" match="\\\/" innerClass="special" contained="yes">
- <onlyin region="regexp"/>
- </block>
-
-
<region name="comment" start="\/\/" end="/$/m" innerClass="comment">
<contains block="cvstag"/>
</region>
- <region name="regexp" start="\/" end="\/g?i?" innerClass="string" delimClass="quotes" case="yes">
- <contains block="reescaped"/>
- </region>
-
-
<block name="identifier" match="[a-z_]\w*" innerClass="identifier" case="no"/>
<block name="number" match="\d*\.?\d+" innerClass="number"/>
@@ -60,17 +50,17 @@
<onlyin region="mlcomment"/>
<onlyin region="comment"/>
</block>
-
+
<block name="email" match="\w+[\.\w\-]+@(\w+[\.\w\-])+" innerClass="url" contained="yes">
<onlyin region="mlcomment"/>
<onlyin region="comment"/>
</block>
-
+
<block name="note" match="\b(note|fixme):" innerClass="inlinedoc" contained="yes" case="no">
<onlyin region="mlcomment"/>
<onlyin region="comment"/>
</block>
-
+
<block name="cvstag" match="\$\w+:.+\$" innerClass="inlinedoc" contained="yes">
<onlyin region="mlcomment"/>
@@ -178,6 +168,6 @@
<keyword match="true"/>
<keyword match="try"/>
<keyword match="volatile"/>
- </keywords>
+ </keywords>
</highlight>

0 comments on commit d13ed9f

Please sign in to comment.