Commit 2e425413 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

support # comment lines in .metadata files, based on patch by Andrea Del

2007-09-26  Juerg Billeter  <j@bitron.ch>

	* vapigen/valagidlparser.vala: support # comment lines in .metadata
	  files, based on patch by Andrea Del Signore

svn path=/trunk/; revision=630
parent 689cc50e
2007-09-26 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: support # comment lines in .metadata
files, based on patch by Andrea Del Signore
2007-09-26 Jürg Billeter <j@bitron.ch>
* vala/valacodecontext.vala, vala/valacodegenerator.vala: fix crash
......
......@@ -108,6 +108,11 @@ public class Vala.GIdlParser : CodeVisitor {
FileUtils.get_contents (metadata_filename, out metadata, out metadata_len);
foreach (string line in metadata.split ("\n")) {
if (line.has_prefix ("#")) {
// ignore comment lines
continue;
}
var tokens = line.split (" ", 2);
if (null == tokens[0]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment