From e502e777d2ed54c58ec6a94f705b73f5d6bfad04 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Wed, 2 Sep 2009 17:41:41 -0500 Subject: [PATCH] fix #10873: Code editor breaks CSS comments --- docs/changelog/7.x.x.txt | 1 + www/extras/yui-webgui/build/code-editor/code-editor.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 4a9728646..7e8c70105 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,6 @@ 7.8.0 - fixed #10844: Ad Sales: No template variable Help + - fixed #10873: Code editor breaks CSS comments 7.7.19 - fixed #10838: Forwarded forum post email to new CS adds reply to original thread diff --git a/www/extras/yui-webgui/build/code-editor/code-editor.js b/www/extras/yui-webgui/build/code-editor/code-editor.js index 2d1a82a73..924dbd211 100755 --- a/www/extras/yui-webgui/build/code-editor/code-editor.js +++ b/www/extras/yui-webgui/build/code-editor/code-editor.js @@ -83,7 +83,7 @@ { code: /\'(.*?)(\'|
|<\/P>)/gi, tag: '\'$1$2' }, // strings single quote { code: /\b(alert|isNaN|parent|Array|parseFloat|parseInt|blur|clearTimeout|prompt|prototype|close|confirm|length|Date|location|Math|document|element|name|self|elements|setTimeout|navigator|status|String|escape|Number|submit|eval|Object|event|onblur|focus|onerror|onfocus|onclick|top|onload|toString|onunload|unescape|open|valueOf|window|onmouseover|innerHTML)\b/g, tag: '$1' }, // special words { code: /([^:]|^)\/\/(.*?)(//$2$3' }, // comments // - { code: /\/\*(.*?)\*\//g, tag: '/*$1* /' } // comments / * */ + { code: /\/\*(.*?)\*\//g, tag: '/*$1*/' } // comments / * */ ]; //End Borrowed Content