aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2012-03-27 10:59:32 +0200
committerLars Thorsen <[email protected]>2012-03-28 11:05:41 +0200
commit464e7f0a438fb83c1dabd612a1522ab0b312f148 (patch)
tree91e4ce7ad41844ff23ea86bcd674ff3f89e6cfef
parent6ca158338f81867fc5f9ff55439b4fb8d39445f0 (diff)
downloadotp-464e7f0a438fb83c1dabd612a1522ab0b312f148.tar.gz
otp-464e7f0a438fb83c1dabd612a1522ab0b312f148.tar.bz2
otp-464e7f0a438fb83c1dabd612a1522ab0b312f148.zip
[xmerl] Fix bug for comments in XSD files
-rw-r--r--lib/xmerl/src/xmerl_xsd.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xmerl/src/xmerl_xsd.erl b/lib/xmerl/src/xmerl_xsd.erl
index ed0890f0d0..f0d9acb976 100644
--- a/lib/xmerl/src/xmerl_xsd.erl
+++ b/lib/xmerl/src/xmerl_xsd.erl
@@ -2338,6 +2338,8 @@ complexity([]) ->
undefined;
complexity([#xmlText{}|T]) ->
complexity(T);
+complexity([#xmlComment{}|T]) ->
+ complexity(T);
complexity([H|T]) ->
case kind(H) of
simpleContent ->