Skip to content

Commit

Permalink
Version 0.2.4 - Feature update, add language-specs apache.lang (.conf…
Browse files Browse the repository at this point in the history
… files), asm-intel.lang, gnuplot.lang, and xorg.conf.lang.
  • Loading branch information
David C. Rankin committed Feb 20, 2019
1 parent 46de1c0 commit 0c7e963
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 37 deletions.
2 changes: 1 addition & 1 deletion gtk_appdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#define HAVEMSWIN 1
#endif

#define VER "0.2.3"
#define VER "0.2.4"
#define SITE "https://www.rankinlawfirm.com"
#define LICENSE "gpl-2.0.txt"
#define CFGDIR "gtkwrite"
Expand Down
2 changes: 1 addition & 1 deletion gtk_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ void help_about (kwinst *app)
};

static const gchar copyright[] = \
"Copyright \xc2\xa9 2018 David C. Rankin";
"Copyright \xc2\xa9 2019 David C. Rankin";

static const gchar comments[] = APPSTR;

Expand Down
71 changes: 38 additions & 33 deletions gtk_sourceview.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,39 +455,44 @@ void sourceview_set_comment_syntax (kwinst *app)

const gchar *lang_id = gtk_source_language_get_id (app->language);

const comment_t cmtsyntax[] = { { "ada" , "-- ", NULL, NULL },
{ "asp" , "' " , NULL, NULL },
{ "awk" , "# " , NULL, NULL },
{ "c" , "// ", "/* ", " */" },
{ "chdr" , "// ", "/* ", " */" },
{ "c-sharp" , "// ", "/* ", " */" },
{ "cmake" , "# " , NULL, NULL },
{ "cpp" , "// ", "/* ", " */" },
{ "desktop" , "# " , NULL, NULL },
{ "diff" , "# " , NULL, NULL },
{ "dosbatch", "rem " , NULL, NULL },
{ "erlang" , "% ", NULL, NULL },
{ "fortran" , "!* ", NULL, NULL },
{ "gtkrc" , "# " , NULL, NULL },
{ "haskell" , "-- ", "{- ", " -}" },
{ "html" , NULL, "<!-- ", " -->" },
{ "java" , "// ", "/* ", " */" },
{ "js" , "// ", "/* ", " */" },
{ "lua" , "-- ", "--[[ ", " --]]", },
{ "makefile", "# " , NULL, NULL },
{ "objc" , NULL, "/* ", " */" },
{ "octave" , "% ", NULL, NULL },
{ "pascal" , NULL, "(* ", " *)", },
{ "perl" , "# " , NULL, NULL },
{ "php" , "// ", "/* ", " */" },
{ "python" , "# ", NULL, NULL },
{ "rpmspec" , "# ", NULL, NULL },
{ "ruby" , "# ", NULL, NULL },
{ "sql" , "-- ", NULL, NULL },
{ "sh" , "# ", NULL, NULL },
{ "vbnet" , "' " , NULL, NULL },
{ "xml" , NULL, "<!-- ", " -->" },
{ NULL , NULL, NULL, NULL }};
const comment_t cmtsyntax[] = { { "ada" , "-- ", NULL, NULL },
{ "apache" , "# " , NULL, NULL },
{ "asm-intel", "; " , NULL, NULL },
{ "asp" , "' " , NULL, NULL },
{ "awk" , "# " , NULL, NULL },
{ "c" , "// ", "/* ", " */" },
{ "chdr" , "// ", "/* ", " */" },
{ "c-sharp" , "// ", "/* ", " */" },
{ "cmake" , "# " , NULL, NULL },
{ "conf" , "# " , NULL, NULL },
{ "cpp" , "// ", "/* ", " */" },
{ "css" , NULL, "/* ", " */" },
{ "desktop" , "# " , NULL, NULL },
{ "diff" , "# " , NULL, NULL },
{ "dosbatch" , "rem " , NULL, NULL },
{ "erlang" , "% ", NULL, NULL },
{ "fortran" , "!* ", NULL, NULL },
{ "gnuplot" , "# " , NULL, NULL },
{ "gtkrc" , "# " , NULL, NULL },
{ "haskell" , "-- ", "{- ", " -}" },
{ "html" , NULL, "<!-- ", " -->" },
{ "java" , "// ", "/* ", " */" },
{ "js" , "// ", "/* ", " */" },
{ "lua" , "-- ", "--[[ ", " --]]", },
{ "makefile" , "# " , NULL, NULL },
{ "objc" , NULL, "/* ", " */" },
{ "octave" , "% ", NULL, NULL },
{ "pascal" , NULL, "(* ", " *)", },
{ "perl" , "# " , NULL, NULL },
{ "php" , "// ", "/* ", " */" },
{ "python" , "# ", NULL, NULL },
{ "rpmspec" , "# ", NULL, NULL },
{ "ruby" , "# ", NULL, NULL },
{ "sql" , "-- ", NULL, NULL },
{ "sh" , "# ", NULL, NULL },
{ "vbnet" , "' " , NULL, NULL },
{ "xml" , NULL, "<!-- ", " -->" },
{ NULL , NULL, NULL, NULL }};
gint i = 0;

if (!lang_id)
Expand Down
4 changes: 2 additions & 2 deletions styles/gtkwrite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<color name="bgblack" value="#06090D"/>
<color name="bgblackhlt" value="#121928"/>
<color name="bgblue" value="#0E141F"/>
<color name="bgbluesel" value="#122555"/>
<color name="bgbluesel" value="#192E65"/>
<color name="blue" value="#4C55FF"/>
<color name="bluebasen" value="#55DAE6"/>
<color name="bluedoxy" value="#1F1FFF"/>
Expand Down Expand Up @@ -67,7 +67,7 @@
<style name="bookmark" background="bgbluesel"/>

<!-- Bracket Matching -->
<style name="bracket-match" background="bluemkr" bold="true"/>
<style name="bracket-match" foreground="yellow" background="bluemkrlt"/>
<style name="bracket-mismatch" foreground="#white" background="#red" bold="true"/>

<!-- Search Matching -->
Expand Down

0 comments on commit 0c7e963

Please sign in to comment.