Docs > Comments

Comments in Sardonyx are done using `#` and `#><#`. `#` comments until the end of a line, for example: ``` func(5, 6) # calls func with the arguments 5 and 6 ``` Each `#>` comments all code until the next `<#`. For example: ``` #> The following calls func with the arguments 5 and 6: <# func(5, 6) ``` ## Technical Details - `#><#` functions like in C - each multiline comment is treated as a single space. Thus, `5#>6<#7` is the same as `5 7`, not `57`. - `#` comments are lexed as a single token, which is then dropped from the output of the lexer. Conversely, `#> <#` comments cause an actual pause in lexing, and no tokens are generated. - The nature of the lexer is such that a `#> <#` comment at the end of a program need not be closed. Thus, `#> a` is a valid program.