From 71559750694cc9f33fb92c529242e1990bfee0f1 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 2 Feb 2005 05:53:42 +0000 Subject: [PATCH] Convert JavaScript to new scheme git-svn-id: http://macromates.com/svn/Bundles/trunk/JavaScript.tmbundle@182 dfb7d73b-c2ec-0310-8fea-fb051d288c6d --- Syntaxes/JavaScript.plist | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Syntaxes/JavaScript.plist b/Syntaxes/JavaScript.plist index 614668c..cd5436c 100644 --- a/Syntaxes/JavaScript.plist +++ b/Syntaxes/JavaScript.plist @@ -18,24 +18,24 @@ backgroundColor = "#111111"; patterns = ( - { name = "Keyword"; foregroundColor = "#CC7833"; match = "\\<(this|typeof|new|true|false|undefined|null|for|in|break|continue|while|do|function|return|if|else|case|switch|var)\\>"; }, - { name = "Numeric Constant"; match = "\\<((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\>"; foregroundColor = "#3387CC"; }, + { name = "keywords.js"; foregroundColor = "#CC7833"; match = "\\<(this|typeof|new|true|false|undefined|null|for|in|break|continue|while|do|function|return|if|else|case|switch|var)\\>"; }, + { name = "constants.numeric.js"; match = "\\<((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\>"; foregroundColor = "#3387CC"; }, - { name = "method or function"; match = "(\\<|\\.)([a-zA-Z_]\\w*(?=\s*\\())"; + { name = "keywords.functions.js"; match = "(\\<|\\.)([a-zA-Z_]\\w*(?=\s*\\())"; "foregroundColor[2]" = "#CC3833"; }, - { name = "Single String"; begin = "'"; end = "'"; swallow = "\\\\."; foregroundColor = "#66CC33"; }, - { name = "Double Quoted String"; begin = "\""; end = "\""; swallow = "\\\\."; foregroundColor = "#66CC33"; }, + { name = "strings.single-quoted.js"; begin = "'"; end = "'"; swallow = "\\\\."; foregroundColor = "#66CC33"; }, + { name = "strings.double-quoted.js"; begin = "\""; end = "\""; swallow = "\\\\."; foregroundColor = "#66CC33"; }, - { name = "Regular Expression"; begin = "/"; end = "/([igm]+)?"; foregroundColor = "#CCCC33"; + { name = "strings.regex.js"; begin = "/"; end = "/([igm]+)?"; foregroundColor = "#CCCC33"; patterns = ( - { name = "Escaped slash"; match = "\\\\/"; foregroundColor = "#CCCC33"; } + { name = "strings.escaped-slash.js"; match = "\\\\/"; foregroundColor = "#CCCC33"; } ); }, - { name = "Multiline Comment"; begin = "\\/\\*"; end = "\\*\\/"; swallow = "\\\\."; foregroundColor = "#9933CC"; }, - { name = "Comment"; match = "\\/\\/.*$"; "fontStyle" = ( italic ); foregroundColor = "#9933CC"; }, + { name = "comments.block.js"; begin = "\\/\\*"; end = "\\*\\/"; swallow = "\\\\."; foregroundColor = "#9933CC"; }, + { name = "comments.line.js"; match = "\\/\\/.*$"; "fontStyle" = ( italic ); foregroundColor = "#9933CC"; }, ); }