Commit 24c52ae4 authored by timothy@apple.com's avatar 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".


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 82f9f10c
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
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment