Sort filetype groups alphabetically.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1792 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-08-14 15:11:54 +00:00
parent 2e454f7af5
commit b9c0dcdc8b
3 changed files with 30 additions and 23 deletions

View File

@ -4,6 +4,8 @@
tagmanager/parsers.h, tagmanager/makefile.win32, tagmanager/rest.c, tagmanager/parsers.h, tagmanager/makefile.win32, tagmanager/rest.c,
tagmanager/Makefile.am: tagmanager/Makefile.am:
Add reStructuredText filetype and parser. Add reStructuredText filetype and parser.
* src/filetypes.c, src/filetypes.h:
Sort filetype groups alphabetically.
2007-08-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> 2007-08-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -595,22 +595,22 @@ void filetypes_init()
// insert separators for different filetype groups // insert separators for different filetype groups
switch (ft_id) switch (ft_id)
{ {
case GEANY_FILETYPES_C: // programming case GEANY_FILETYPES_GROUP_COMPILED: // programming
{ {
sub_menu = sub_menu_programming; sub_menu = sub_menu_programming;
break; break;
} }
case GEANY_FILETYPES_PERL: // scripts case GEANY_FILETYPES_GROUP_SCRIPT: // scripts
{ {
sub_menu = sub_menu_scripts; sub_menu = sub_menu_scripts;
break; break;
} }
case GEANY_FILETYPES_XML: // markup case GEANY_FILETYPES_GROUP_MARKUP: // markup
{ // (include also CSS, not really markup but fit quite well to HTML) { // (include also CSS, not really markup but fit quite well to HTML)
sub_menu = sub_menu_markup; sub_menu = sub_menu_markup;
break; break;
} }
case GEANY_FILETYPES_SQL: // misc case GEANY_FILETYPES_GROUP_MISC: // misc
{ {
sub_menu = sub_menu_misc; sub_menu = sub_menu_misc;
break; break;

View File

@ -33,48 +33,53 @@
#include "ScintillaWidget.h" #include "ScintillaWidget.h"
// each group should be alpha-sorted, based on filetype::name (not enum name)
typedef enum typedef enum
{ {
// normally compiled languages // normally compiled languages
GEANY_FILETYPES_C = 0, GEANY_FILETYPES_GROUP_COMPILED = 0,
GEANY_FILETYPES_ASM = GEANY_FILETYPES_GROUP_COMPILED,
GEANY_FILETYPES_C,
GEANY_FILETYPES_CPP, GEANY_FILETYPES_CPP,
GEANY_FILETYPES_CS, GEANY_FILETYPES_CS,
GEANY_FILETYPES_CAML,
GEANY_FILETYPES_D, GEANY_FILETYPES_D,
GEANY_FILETYPES_FORTRAN,
GEANY_FILETYPES_BASIC, // FreeBasic
GEANY_FILETYPES_HASKELL,
GEANY_FILETYPES_HAXE,
GEANY_FILETYPES_JAVA, GEANY_FILETYPES_JAVA,
GEANY_FILETYPES_PASCAL, GEANY_FILETYPES_PASCAL,
GEANY_FILETYPES_BASIC,
GEANY_FILETYPES_ASM,
GEANY_FILETYPES_FORTRAN,
GEANY_FILETYPES_CAML,
GEANY_FILETYPES_HASKELL,
GEANY_FILETYPES_VHDL, GEANY_FILETYPES_VHDL,
GEANY_FILETYPES_HAXE,
// script languages // script languages
GEANY_FILETYPES_PERL, GEANY_FILETYPES_GROUP_SCRIPT,
GEANY_FILETYPES_PHP, GEANY_FILETYPES_FERITE = GEANY_FILETYPES_GROUP_SCRIPT,
GEANY_FILETYPES_JS, GEANY_FILETYPES_JS,
GEANY_FILETYPES_PYTHON,
GEANY_FILETYPES_RUBY,
GEANY_FILETYPES_TCL,
GEANY_FILETYPES_LUA, GEANY_FILETYPES_LUA,
GEANY_FILETYPES_FERITE,
GEANY_FILETYPES_SH,
GEANY_FILETYPES_MAKE, GEANY_FILETYPES_MAKE,
GEANY_FILETYPES_OMS, GEANY_FILETYPES_OMS,
GEANY_FILETYPES_PERL,
GEANY_FILETYPES_PHP,
GEANY_FILETYPES_PYTHON,
GEANY_FILETYPES_RUBY,
GEANY_FILETYPES_SH,
GEANY_FILETYPES_TCL,
// markup langauges // markup langauges
GEANY_FILETYPES_XML, GEANY_FILETYPES_GROUP_MARKUP,
GEANY_FILETYPES_CSS = GEANY_FILETYPES_GROUP_MARKUP,
GEANY_FILETYPES_DOCBOOK, GEANY_FILETYPES_DOCBOOK,
GEANY_FILETYPES_HTML, GEANY_FILETYPES_HTML,
GEANY_FILETYPES_CSS, GEANY_FILETYPES_XML,
// miscellaneous languages // miscellaneous languages
GEANY_FILETYPES_SQL, GEANY_FILETYPES_GROUP_MISC,
GEANY_FILETYPES_LATEX, GEANY_FILETYPES_CONF = GEANY_FILETYPES_GROUP_MISC,
GEANY_FILETYPES_DIFF, GEANY_FILETYPES_DIFF,
GEANY_FILETYPES_CONF, GEANY_FILETYPES_LATEX,
GEANY_FILETYPES_REST, GEANY_FILETYPES_REST,
GEANY_FILETYPES_SQL,
GEANY_FILETYPES_ALL, // must be last filetype, used for 'None' item. GEANY_FILETYPES_ALL, // must be last filetype, used for 'None' item.
GEANY_MAX_FILE_TYPES GEANY_MAX_FILE_TYPES