Engine:CCMD run: Difference between revisions

110 bytes removed ,  15 October 2023
no edit summary
No edit summary
Line 46: Line 46:
:2. 'Command' names begin or end at white-space, semi-colon, or line-end, and end at comment start.
:2. 'Command' names begin or end at white-space, semi-colon, or line-end, and end at comment start.
::<kua>command</kua>
::<kua>command</kua>
::<kua>[ ;\n]command[ ;\n]</kua>
::<kua>;command//comment</kua>
::<kua>command//comment</kua>
:3. 'Other text' starts after any white-space after command name, until semi-colon, line-end, or comment start.
:3. 'Other text' starts after any white-space after command name, until semi-colon, line-end, or comment start.
::<kua>command other</kua>
::<kua>command other</kua>
::<kua>[ ;\n]command other[;\n]</kua>
::<kua>command other//comment</kua>
::<kua>command other//comment</kua>
:4. Comment text starts with '//', placed anywhere on a line, and includes all text until line-end.
:4. Comment text starts with '//', placed anywhere on a line, and includes all text until line-end.
::<kua>command other//comment</kua>
::<kua>command other//comment\n</kua>
::<kua>command other//comment[\n]</kua>
:5. Comment text, empty statements or lines, or statements or lines with only white-space, will be skipped.
:5. Comment text, empty statements or lines, or statements or lines with only white-space, will be skipped.
::<kua>;; ; //comment[\n];</kua>
::<kua>;; ; //comment\n;</kua>
:6. Command names must be at least 2 and less than 63 characters. Statements with invalid command names will be skipped.
:6. Command names must be at least 2 and less than 63 characters. Statements with invalid command names will be skipped.
::<kua>co</kua>
::<kua>co</kua>