WilliamVenner / vscode-glua-enhanced

👨‍💻 Garry's Mod Lua VSCode Extension for enhanced auto completion, wiki integration, snippets, color palette, and much more...
https://marketplace.visualstudio.com/items?itemName=venner.vscode-glua-enhanced
GNU General Public License v3.0
410 stars 10 forks source link

What is the purpose of this line if it is just being used to continue the loop? #42

Open ghost opened 2 years ago

ghost commented 2 years ago

https://github.com/WilliamVenner/vscode-glua-enhanced/blob/df312a279cfeff123e002019093d51ef25e5a3d0/generator/scrape.py#L77

I'm rewriting the script in Lua but I am unsure if this behaves differently from continue used in other Lua versions such as Luau, Lua++ & etc.

What is the purpose of this continue statement, if anything?

WilliamVenner commented 2 years ago

I believe it's to make up for that dumb bug on the wiki where if one member of a struct is deprecated, the entire struct shows up as deprecated in the sidebar. For a while this is what the SWEP struct was in the sidebar.