From 29b778fb0ac83a0e5c9dfa417508763025123645 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 11 Aug 2008 12:02:59 +0000 Subject: [PATCH] Add SCE_[CD]_COMMENTDOCKEYWORD(ERROR) comment detection to is_comment(). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2870 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 7 +++++++ src/editor.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f1a77dba..ca58c1df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-11 Nick Treleaven + + * src/editor.c: + Add SCE_[CD]_COMMENTDOCKEYWORD(ERROR) comment detection to + is_comment(). + + 2008-08-08 Nick Treleaven * src/printing.c: diff --git a/src/editor.c b/src/editor.c index 17a5a36b..57b9bb8d 100644 --- a/src/editor.c +++ b/src/editor.c @@ -2561,6 +2561,8 @@ static gboolean is_comment(gint lexer, gint prev_style, gint style) style == SCE_C_COMMENTLINE || style == SCE_C_COMMENTDOC || style == SCE_C_COMMENTLINEDOC || + style == SCE_C_COMMENTDOCKEYWORD || + style == SCE_C_COMMENTDOCKEYWORDERROR || style == SCE_C_CHARACTER || style == SCE_C_PREPROCESSOR || style == SCE_C_STRING) @@ -2572,8 +2574,10 @@ static gboolean is_comment(gint lexer, gint prev_style, gint style) if (style == SCE_D_COMMENT || style == SCE_D_COMMENTLINE || style == SCE_D_COMMENTDOC || - style == SCE_D_COMMENTLINEDOC || style == SCE_D_COMMENTNESTED || + style == SCE_D_COMMENTLINEDOC || + style == SCE_D_COMMENTDOCKEYWORD || + style == SCE_D_COMMENTDOCKEYWORDERROR || style == SCE_D_CHARACTER || style == SCE_D_STRING) result = TRUE;