Skip to content

Commit

Permalink
coffeescript: Recognize string and comment styles
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Nov 26, 2014
1 parent 07002d2 commit 4074843
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/highlighting.c
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 4074843

Please sign in to comment.