Coding Conventions
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Re: Coding Conventions
Indeed. Whitespace is also valid. It just needs to be escaped.Celtic_Minstrel wrote:Underscores are perfectly valid in Lua table key identifiers.
"Wesnoth has many strong points but team and users management are certainly not in them." -- pyrophorus
- Celtic_Minstrel
- Developer
- Posts: 2216
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Coding Conventions
No, whitespace is not valid in Lua table key identifiers. Underscores are.
The syntax {['a b c'] = 'xyz'} is not an escape syntax. It's a non-identifier table key.
The syntax {['a b c'] = 'xyz'} is not an escape syntax. It's a non-identifier table key.
Re: Coding Conventions
Yeah, I guess we get a bit off topic here.
"Wesnoth has many strong points but team and users management are certainly not in them." -- pyrophorus