[geany/geany] 407484: coffeescript: Recognize string and comment styles

Colomban Wendling git-noreply at xxxxx
Wed Nov 26 18:52:20 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Wed, 26 Nov 2014 18:52:20 UTC
Commit:      4074843b42218f59e7b1696f27e8306fd9b6c4ad
             https://github.com/geany/geany/commit/4074843b42218f59e7b1696f27e8306fd9b6c4ad

Log Message:
-----------
coffeescript: Recognize string and comment styles


Modified Paths:
--------------
    src/highlighting.c

Modified: src/highlighting.c
10 lines changed, 10 insertions(+), 0 deletions(-)
===================================================================
@@ -1540,6 +1540,11 @@ gboolean highlighting_is_string_style(gint lexer, gint style)
 				style == SCE_RUST_BYTESTRING ||
 				style == SCE_RUST_BYTESTRINGR ||
 				style == SCE_RUST_LEXERROR);
+
+		case SCLEX_COFFEESCRIPT:
+			return (style == SCE_COFFEESCRIPT_CHARACTER ||
+				style == SCE_COFFEESCRIPT_STRING ||
+				style == SCE_COFFEESCRIPT_STRINGEOL);
 	}
 	return FALSE;
 }
@@ -1700,6 +1705,11 @@ gboolean highlighting_is_comment_style(gint lexer, gint style)
 				style == SCE_RUST_COMMENTLINE ||
 				style == SCE_RUST_COMMENTBLOCKDOC ||
 				style == SCE_RUST_COMMENTLINEDOC);
+
+		case SCLEX_COFFEESCRIPT:
+			return (style == SCE_COFFEESCRIPT_COMMENTLINE ||
+				style == SCE_COFFEESCRIPT_COMMENTBLOCK ||
+				style == SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT);
 	}
 	return FALSE;
 }



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list