Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow DOCTYPE in protocol definition #752

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

Nxllpointer
Copy link
Contributor

Currently wayland-scanner only allows the <?xml ... ?> declaration and the protocol tag at the start of a xml protocol definition. This PR allows one to additionaly specify a <!DOCTYPE ...> like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE protocol SYSTEM "https://gitlab.freedesktop.org/wayland/wayland/-/raw/ee12e69b8fb8c55460126e4e527eb4f7fee5526e/protocol/wayland.dtd">
<protocol name="test_proto">
    <interface name="test_interface" version="1">
        <description summary="Testing"></description>
        <event name="ping"></event>
    </interface>
</protocol>

The specified file can be consumed by LSPs to enable assisting with autocompletion and syntax checking.

@ids1024 ids1024 merged commit 1551b97 into Smithay:master Sep 3, 2024
13 checks passed
@Nxllpointer
Copy link
Contributor Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants