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

GDScript: Add void datatype #1948

Merged
merged 2 commits into from Nov 21, 2021
Merged

GDScript: Add void datatype #1948

merged 2 commits into from Nov 21, 2021

Conversation

Morphclue
Copy link
Contributor

@Morphclue Morphclue commented Nov 8, 2021

Context

The Lexer is missing the void-type. This type isn't listed in the Grammar Docs. The reason for that could be that the grammar is incosistent with GDScript (see note in Grammar Docs).

The type void should be added, because you can specify it as a return type in GDScript.
Example from the GDScript Basics:

func void_function() -> void:
    return # Can't return a value

References

@Morphclue Morphclue changed the title GDScript: Add void keyword GDScript: Add void datatype Nov 8, 2021
@Anteru Anteru merged commit 98f8740 into pygments:master Nov 21, 2021
@Anteru
Copy link
Collaborator

Anteru commented Nov 21, 2021

Merged, I'll update the tests manually.

@Anteru Anteru added this to the 2.11.0 milestone Nov 21, 2021
@Morphclue Morphclue deleted the patch-1 branch November 21, 2021 18:28
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.

None yet

2 participants