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

[Question] What type of regex is supported by the Lua.Docs.* setting #2324

Closed
NeOzay opened this issue Sep 12, 2023 · 1 comment
Closed

[Question] What type of regex is supported by the Lua.Docs.* setting #2324

NeOzay opened this issue Sep 12, 2023 · 1 comment

Comments

@NeOzay
Copy link
Contributor

NeOzay commented Sep 12, 2023

in the documentation, for packageName, privateName and protectedName we have no information on the forms that the pattern can take

is it possible to differentiate _fieldname and _fieldname_?

@PinewoodPip
Copy link

They use LPeg.
Ex. to use names with leading underscore as private you can use

"Lua.doc.privateName": [
    "_[a-z]*",
    "_[A-Z]*"
]

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

No branches or pull requests

2 participants