Commit fd7682a1 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

support multiple namespaces in a using directive, patch by Kyle Ambroff,

2007-08-06  Juerg Billeter  <j@bitron.ch>

	* vala/parser.y: support multiple namespaces in a using directive,
	  patch by Kyle Ambroff, fixes bug 463821

svn path=/trunk/; revision=422
parent b0dec7e9
2007-08-06 Jürg Billeter <j@bitron.ch>
* vala/parser.y: support multiple namespaces in a using directive,
patch by Kyle Ambroff, fixes bug 463821
2007-08-06 Jürg Billeter <j@bitron.ch>
* vapigen/Makefile.am, vapigen/valavapigen.vala: fix --version option
......
......@@ -2051,12 +2051,21 @@ using_directives
;
using_directive
: USING identifier SEMICOLON
: USING using_list SEMICOLON
;
using_list
: using_list COMMA namespace_identifier
| namespace_identifier
;
namespace_identifier
: identifier
{
ValaSourceReference *src = src(@2);
ValaNamespaceReference *ns_ref = vala_namespace_reference_new ($2, src);
ValaSourceReference *src = src(@1);
ValaNamespaceReference *ns_ref = vala_namespace_reference_new ($1, src);
g_object_unref (src);
g_free ($2);
g_free ($1);
vala_source_file_add_using_directive (current_source_file, ns_ref);
g_object_unref (ns_ref);
}
......
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