Skip to content

Commit 79c5ec7

Browse files
committed
Missing possibility for Element 'compounddef', attribute 'language'
Added Missing possibility 'Lex' for Element 'compounddef', attribute 'language' in compound.xsd
1 parent 86fe8ce commit 79c5ec7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

addon/doxmlparser/doxmlparser/compound.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,8 @@ class DoxLanguage(str, Enum):
10591059
XML='XML'
10601060
SQL='SQL'
10611061
MARKDOWN='Markdown'
1062+
SLICE='Slice'
1063+
LEX='Lex'
10621064

10631065

10641066
class DoxMemberKind(str, Enum):
@@ -1694,7 +1696,7 @@ def validate_DoxLanguage(self, value):
16941696
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
16951697
return False
16961698
value = value
1697-
enumerations = ['Unknown', 'IDL', 'Java', 'C#', 'D', 'PHP', 'Objective-C', 'C++', 'JavaScript', 'Python', 'Fortran', 'VHDL', 'XML', 'SQL', 'Markdown']
1699+
enumerations = ['Unknown', 'IDL', 'Java', 'C#', 'D', 'PHP', 'Objective-C', 'C++', 'JavaScript', 'Python', 'Fortran', 'VHDL', 'XML', 'SQL', 'Markdown', 'Slice', 'Lex']
16981700
if value not in enumerations:
16991701
lineno = self.gds_get_node_lineno_()
17001702
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxLanguage' % {"value" : encode_str_2_3(value), "lineno": lineno} )

templates/xml/compound.xsd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,8 @@
826826
<xsd:enumeration value="XML" />
827827
<xsd:enumeration value="SQL" />
828828
<xsd:enumeration value="Markdown" />
829+
<xsd:enumeration value="Slice" />
830+
<xsd:enumeration value="Lex" />
829831
</xsd:restriction>
830832
</xsd:simpleType>
831833

0 commit comments

Comments
 (0)