mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 17:59:30 +00:00
Ignore comments and long string in preprocessor
This commit is contained in:
parent
7405a6f949
commit
30a10d6ed9
4 changed files with 218 additions and 173 deletions
|
|
@ -253,7 +253,7 @@ end
|
|||
`if`, `elseif`, `for`, and `while` statements can be writtent without `do`, `then` or `end`, in which case they contain a single statement.
|
||||
|
||||
### Preprocessor
|
||||
Before compiling, Candran's preprocessor is run. It execute every line starting with a _#_ (ignoring whitespace) as Candran code.
|
||||
Before compiling, Candran's preprocessor is run. It execute every line starting with a _#_ (ignoring prefixing whitespace, long strings and comments) as Candran code.
|
||||
For example,
|
||||
|
||||
````lua
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue