From 3e1eb8d5928282be3270b180f37cd3585e523bdf Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Tue, 2 Nov 2010 17:06:09 +0100 Subject: [PATCH] fix detection of doc comments --- lib/ace/mode/DocCommentHighlightRules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mode/DocCommentHighlightRules.js b/lib/ace/mode/DocCommentHighlightRules.js index 1b500c6e..915c7d29 100644 --- a/lib/ace/mode/DocCommentHighlightRules.js +++ b/lib/ace/mode/DocCommentHighlightRules.js @@ -41,7 +41,7 @@ oop.inherits(DocCommentHighlightRules, TextHighlightRules); this.getStartRule = function(start) { return { token : "comment.doc", // doc comment - regex : "\\/\\*\\*", + regex : "\\/\\*(?=\\*)", next: start }; };