From 332d3d885703efd51d77d4a847901823d1a5a62d Mon Sep 17 00:00:00 2001 From: Garen Torikian Date: Sun, 1 Apr 2012 01:42:38 -0700 Subject: [PATCH] Fix comments --- lib/ace/mode/javascript_highlight_rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/mode/javascript_highlight_rules.js b/lib/ace/mode/javascript_highlight_rules.js index 4e38c51c..b6a4c8ae 100644 --- a/lib/ace/mode/javascript_highlight_rules.js +++ b/lib/ace/mode/javascript_highlight_rules.js @@ -151,10 +151,10 @@ var JavaScriptHighlightRules = function() { }, { // match regular function like: function myFunc(arg) { } token : ["storage.type", "text", "entity.name.function", "text", "paren.lparen", "variable.parameter", "paren.rparen"], regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()(.*?)(\\))" - }, { // match stuff like: foobar: function() { … } + }, { // match stuff like: foobar: function() { } token : ["entity.name.function", "text", "punctuation.operator", "text", "storage.type", "text", "paren.lparen", "variable.parameter", "paren.rparen"], regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)?(\\s*)(\\()(.*?)(\\))" - }, { // Attempt to match : function() { } (this is for issues with 'foo': function() { } + }, { // Attempt to match : function() { } (this is for issues with 'foo': function() { }) token : ["text", "text", "storage.type", "text", "paren.lparen", "variable.parameter", "paren.rparen"], regex : "(:)(\\s*)(function)?(\\s*)(\\()([^)]*)(\\))" }, {