Skip to content

Commit

Permalink
Merge pull request #3902 from maxonfjvipon/bug/#3869/methods-in-xsd
Browse files Browse the repository at this point in the history
bug(#3896): even more strict XSD
  • Loading branch information
yegor256 authored Feb 10, 2025
2 parents c9ff38c + 42cfdb8 commit 279ed6a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eo-parser/src/main/resources/XMIR.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ SOFTWARE.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="∅|\.(^|@|[a-z]\S*)|(Q|$)(\.(^|@|[a-z]\S*))*"/>
<xs:pattern value="∅|\.(\^|@|[a-z][^\s.]*|α[0-9]*)|([Q$])(\.(\^|@|[a-z][^\s.]*|α[0-9]*))*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="program-name">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# The MIT License (MIT)
#
# Copyright (c) 2016-2025 Objectionary.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
---
errors: 2
document: |
<program name='foo'>
<objects>
<o base=".org.eolang">
<o base="Q.com"/>
</o>
</objects>
</program>

0 comments on commit 279ed6a

Please sign in to comment.