From ce1e49aa91dedb6530917c44110ac938237e217c Mon Sep 17 00:00:00 2001 From: Nate Lillich Date: Sat, 18 Jun 2011 11:54:51 -0700 Subject: [PATCH 1/2] Fix'd warnings. --- lib/ace/mode/doc_comment_highlight_rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/mode/doc_comment_highlight_rules.js b/lib/ace/mode/doc_comment_highlight_rules.js index 1cf1c0f0..98f27a29 100644 --- a/lib/ace/mode/doc_comment_highlight_rules.js +++ b/lib/ace/mode/doc_comment_highlight_rules.js @@ -48,7 +48,7 @@ var DocCommentHighlightRules = function() { regex : "@[\\w\\d_]+" // TODO: fix email addresses }, { token : "comment.doc", - regex : "\s+" + regex : "\\s+" }, { token : "comment.doc", regex : "TODO" @@ -80,7 +80,7 @@ oop.inherits(DocCommentHighlightRules, TextHighlightRules); regex : "\\*\\/", next : start }; - } + }; }).call(DocCommentHighlightRules.prototype); From 495ea8f46bcf0b40ba5b86ca61f647e475b4cf47 Mon Sep 17 00:00:00 2001 From: Nate Lillich Date: Sat, 18 Jun 2011 12:09:42 -0700 Subject: [PATCH 2/2] Fix'd comment-doc not working in C/C++ --- lib/ace/mode/c_cpp_highlight_rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mode/c_cpp_highlight_rules.js b/lib/ace/mode/c_cpp_highlight_rules.js index 24e03456..5a30ce24 100644 --- a/lib/ace/mode/c_cpp_highlight_rules.js +++ b/lib/ace/mode/c_cpp_highlight_rules.js @@ -71,7 +71,7 @@ var c_cppHighlightRules = function() { token : "comment", regex : "\\/\\/.*$" }, - new DocCommentHighlightRules().getStartRule("start"), + new DocCommentHighlightRules().getStartRule("doc-start"), { token : "comment", // multi line comment regex : "\\/\\*",