You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GDScript supports both public and private comments - with the private ones being omitted from generated GDScript documentation.
## Publicly visible constant shows up in generated documentationconstGRAVITY=9.8# Private constant is hiddenconst_FLAGS_BUSY=0x40
The default gdlint regular expression [A-Z][A-Z0-9]*(_[A-Z0-9]+)* does not permit leading underscores and so errors are reported: Error: Constant name "_FLAGS_BUSY" is not valid (constant-name)
It seems like a similar single leading underscore should be permitted - _?[A-Z][A-Z0-9]*(_[A-Z0-9]+)* just as is permitted for numerous other names (functions, class-variables, etc.)
The text was updated successfully, but these errors were encountered:
GDScript supports both public and private comments - with the private ones being omitted from generated GDScript documentation.
The default gdlint regular expression
[A-Z][A-Z0-9]*(_[A-Z0-9]+)*
does not permit leading underscores and so errors are reported:Error: Constant name "_FLAGS_BUSY" is not valid (constant-name)
It seems like a similar single leading underscore should be permitted -
_?[A-Z][A-Z0-9]*(_[A-Z0-9]+)*
just as is permitted for numerous other names (functions, class-variables, etc.)The text was updated successfully, but these errors were encountered: