summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-03-02 10:44:11 -0500
committerpommicket <pommicket@gmail.com>2023-03-02 10:44:11 -0500
commiteddcc7e8c6c02970ac658024b3a8c6b5f416c8a5 (patch)
tree542e3eb5536cf4abb9592a88ff779fc0d2763103 /syntax.c
parent595cc50b7985ec67c49c6e2ffc649cb04692a318 (diff)
comment-start and comment-end settings
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/syntax.c b/syntax.c
index e1ced05..7a2dc3a 100644
--- a/syntax.c
+++ b/syntax.c
@@ -97,46 +97,6 @@ const char *language_to_str(Language language) {
return "???";
}
-// start of single line comment for language l -- used for comment/uncomment selection
-const char *language_comment_start(Language l) {
- switch (l) {
- case LANG_C:
- case LANG_RUST:
- case LANG_CPP:
- case LANG_JAVASCRIPT:
- case LANG_TYPESCRIPT:
- case LANG_JSON: // JSON technically doesn't have comments but apparently some parsers support this so might as well have this here
- case LANG_JAVA:
- case LANG_GO:
- case LANG_GLSL:
- return "// ";
- case LANG_CONFIG:
- case LANG_TED_CFG:
- case LANG_PYTHON:
- return "# ";
- case LANG_TEX:
- return "% ";
- case LANG_HTML:
- case LANG_XML:
- return "<!-- ";
- case LANG_NONE:
- case LANG_MARKDOWN:
- case LANG_TEXT:
- break;
- }
- return "";
-}
-
-// end of single line comment for language l
-const char *language_comment_end(Language l) {
- switch (l) {
- case LANG_HTML:
- return " -->";
- default:
- return "";
- }
-}
-
ColorSetting syntax_char_type_to_color_setting(SyntaxCharType t) {
switch (t) {
case SYNTAX_NORMAL: return COLOR_TEXT;