#white-space #compiler #deja-vu #language #comments #template

dejavu-ir

Error Handling, Parser and Compiler of DejaVu Language

1 unstable release

0.0.0 Oct 16, 2023

#57 in #white-space

MPL-2.0 license

45KB
1K SLoC

Comment

  • surrounded by parentheses {# and #}
{% filter comment %}

comment block

{% end %}

Whitespace Control

Saha Supports LF only!

  • {%=: Destroy all whitespace on the left

  • {%-: Destroy all blank lines on the left

  • {%_: Destroy left whitespace, and the first newline encountered

  • {%!: destroy left whitespace, but exclude newlines

  • =%}: Destroy all whitespace on the right

  • -%}: Destroy all blank lines on the right

  • _%}: Destroy right whitespace, and the first newline encountered

  • !%}: destroy right whitespace, but exclude newlines

No runtime deps