Add comment about generating filetype_extensions.conf.

Update filetype_extensions.conf.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1793 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-08-14 15:24:01 +00:00
parent b9c0dcdc8b
commit 5be30988c8
4 changed files with 26 additions and 18 deletions

View File

@ -6,6 +6,9 @@
Add reStructuredText filetype and parser.
* src/filetypes.c, src/filetypes.h:
Sort filetype groups alphabetically.
* src/keyfile.c, src/filetypes.c, data/filetype_extensions.conf:
Add comment about generating filetype_extensions.conf.
Update filetype_extensions.conf.
2007-08-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -1,36 +1,39 @@
#*** This file generated by: geany --generate-data-files ***
#Filetype extension configuration file for Geany
#Insert as many items as you want, seperate them with a ";".
#See Geany's main documentation for details.
[Extensions]
ASM=*.asm;
C=*.c;*.h;
C++=*.cpp;*.cxx;*.c++;*.cc;*.h;*.hpp;*.hxx;*.h++;*.hh;*.C;
C#=*.cs;*.lala;
CAML=*.ml;*.mli;
D=*.d;*.di;
Fortran=*.f;*.for;*.ftn;*.f77;*.f90;*.f95;
FreeBasic=*.bas;*.bi;
Haskell=*.hs;*.lhs;
Haxe=*.hx;
Java=*.java;*.jsp;
Pascal=*.pas;*.pp;*.inc;*.dpr;*.dpk;
FreeBasic=*.bas;*.bi;
ASM=*.asm;
Fortran=*.f;*.for;*.ftn;*.f77;*.f90;*.f95;
CAML=*.ml;*.mli;
VHDL=*.vhd;*.vhdl;
Ferite=*.fe;
Javascript=*.js;
Lua=*.lua;
Make=*.mak;*.mk;GNUmakefile;makefile;Makefile;makefile.*;Makefile.*;
O-Matrix=*.oms;
Perl=*.pl;*.perl;*.pm;*.agi;*.pod;
PHP=*.php;*.php3;*.php4;*.php5;*.phtml;
Javascript=*.js;
Python=*.py;*.pyw;
Ruby=*.rb;*.rhtml;*.ruby;
Tcl=*.tcl;*.tk;*.wish;
Lua=*.lua;
Ferite=*.fe;
Sh=*.sh;configure;configure.in;configure.in.in;configure.ac;*.ksh;*.zsh;*.ash;*.bash;
Make=*.mak;*.mk;GNUmakefile;makefile;Makefile;makefile.*;Makefile.*;
XML=*.xml;*.sgml;*.xsl;*.xslt;*.xsd;
Tcl=*.tcl;*.tk;*.wish;
CSS=*.css;
Docbook=*.docbook;
HTML=*.htm;*.html;*.shtml;*.hta;*.htd;*.htt;*.cfm;
CSS=*.css;
SQL=*.sql;
LaTeX=*.tex;*.sty;*.idx;
O-Matrix=*.oms;
VHDL=*.vhd;*.vhdl;
Diff=*.diff;*.patch;*.rej;
XML=*.xml;*.sgml;*.xsl;*.xslt;*.xsd;
Conf=*.conf;*.ini;config;*rc;*.cfg;
Haxe=*.hx;
Diff=*.diff;*.patch;*.rej;
LaTeX=*.tex;*.sty;*.idx;
reStructuredText=*.rest;*.reST;
SQL=*.sql;
None=*;

View File

@ -174,7 +174,7 @@ void filetypes_init_types()
filetypes[GEANY_FILETYPES_CS]->name = g_strdup("C#");
filetypes[GEANY_FILETYPES_CS]->title = g_strdup(_("C# source file"));
filetypes[GEANY_FILETYPES_CS]->extension = g_strdup("cs");
filetypes[GEANY_FILETYPES_CS]->pattern = utils_strv_new("*.cs", NULL);
filetypes[GEANY_FILETYPES_CS]->pattern = utils_strv_new("*.cs", "*.lala", NULL);
filetypes[GEANY_FILETYPES_CS]->style_func_ptr = styleset_cs;
filetypes[GEANY_FILETYPES_CS]->comment_open = g_strdup("//");
filetypes[GEANY_FILETYPES_CS]->comment_close = NULL;

View File

@ -725,6 +725,8 @@ static void generate_filetype_extensions(const gchar *output_dir)
GKeyFile *config;
config = g_key_file_new();
g_key_file_set_comment(config, NULL, NULL,
"*** This file generated by: geany --generate-data-files ***", NULL);
// add filetype keys
for (i = 0; i < GEANY_MAX_FILE_TYPES; i++)
{