Fix a typo "new" in the keywords list for hte JavaScript
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Jun 2008 00:35:51 +0000 (00:35 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Jun 2008 00:35:51 +0000 (00:35 +0000)
        syntax highlighter. And adds "get" and "set" to the keyword list.

        Reviewed by Sam Weinig.

        * page/inspector/SourceFrame.js:
        (WebInspector.SourceFrame.prototype._syntaxHighlightJavascriptLine):
        Fixes the "new" typo and adds "get" and "set".

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34723 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/inspector/SourceFrame.js

index 10f50bc..92bc5e3 100644 (file)
@@ -1,3 +1,14 @@
+2008-06-21  Timothy Hatcher  <timothy@apple.com>
+
+        Fix a typo "new" in the keywords list for hte JavaScript
+        syntax highlighter. And adds "get" and "set" to the keyword list.
+
+        Reviewed by Sam Weinig.
+
+        * page/inspector/SourceFrame.js:
+        (WebInspector.SourceFrame.prototype._syntaxHighlightJavascriptLine):
+        Fixes the "new" typo and adds "get" and "set".
+
 2008-06-21  David Kilzer  <ddkilzer@apple.com>
 
         Bug 7931: Escaped elements within a textarea block can cause the textarea box to be closed prematurely
index 33d1faf..e212a22 100644 (file)
@@ -489,7 +489,7 @@ WebInspector.SourceFrame.prototype = {
         }
 
         var findNumber = generateFinder(/^(-?(\d+\.?\d*([eE][+-]\d+)?|0[xX]\h+|Infinity)|NaN)(?:\W|$)/, 1, "webkit-javascript-number");
-        var findKeyword = generateFinder(/^(null|true|false|break|case|catch|const|default|finally|for|instanceof|enw|var|continue|function|return|void|delete|if|this|do|while|else|in|switch|throw|try|typeof|with|debugger|class|enum|export|extends|import|super)(?:\W|$)/, 1, "webkit-javascript-keyword");
+        var findKeyword = generateFinder(/^(null|true|false|break|case|catch|const|default|finally|for|instanceof|new|var|continue|function|return|void|delete|if|this|do|while|else|in|switch|throw|try|typeof|with|debugger|class|enum|export|extends|import|super|get|set)(?:\W|$)/, 1, "webkit-javascript-keyword");
         var findSingleLineString = generateFinder(/^"(?:[^"\\]|\\.)*"|^'([^'\\]|\\.)*'/, 0, "webkit-javascript-string");
         var findMultilineCommentStart = generateFinder(/^\/\*.*$/, 0, "webkit-javascript-comment");
         var findMultilineCommentEnd = generateFinder(/^.*?\*\//, 0, "webkit-javascript-comment");