Nix (language): Difference between revisions

imported>Makefu
No edit summary
imported>Makefu
m fix syntax highlight
Line 45: Line 45:
! Type !! Description !! Example
! Type !! Description !! Example
|-
|-
| Strings || Strings either start with <code>double quotes</code> or <code>double single quotes</code>. They also support antiquotation (templating) || <code>"Say ${pkgs.hello.name}"</code>, <code>''first line
| Strings || Strings either start with <code>double quotes</code> or <code>double single quotes</code>. They also support antiquotation (templating). Leading spaces are stripped with double single quotes. || <code>"Say ${pkgs.hello.name}"</code>,
second line''</code>
<syntaxHighlight lang="nix">''first line
  second line
''</SyntaxHighlight>
|-
|-
| Integers || There is no float in the nix language|| <code>5</code>
| Integers || There is no float in the nix language|| <code>5</code>