From b65592962c5614981b20154000779805c3620075 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Tue, 18 Jul 2006 13:45:08 +0000 Subject: [PATCH] dependeciesParsed fixed to parse URIs also in QSTRINGs (because of alias id qstring = qstring) --- components/grafite_parser/dependenciesParser.ml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/grafite_parser/dependenciesParser.ml b/components/grafite_parser/dependenciesParser.ml index e07d4ec03..5e80d8b4c 100644 --- a/components/grafite_parser/dependenciesParser.ml +++ b/components/grafite_parser/dependenciesParser.ml @@ -45,6 +45,12 @@ let parse_dependencies lexbuf = let rec parse acc = try (parser + | [< '("QSTRING", s) >] -> + (* because of alias id qstring = qstring :-( *) + (try + parse (UriDep (UriManager.uri_of_string s) :: acc) + with + UriManager.IllFormedUri _ -> parse acc) | [< '("URI", u) >] -> parse (UriDep (UriManager.uri_of_string u) :: acc) | [< '("IDENT", "include"); '("QSTRING", fname) >] -> -- 2.39.2