<Comment># Sample Nix file</Comment><br/>
<Comment># ---------------</Comment><br/>
<Keyword>let</Keyword><br/>
<Normal Text>    </Normal Text><Identifier>bool</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Constant>true</Constant><Normal Text> </Normal Text><Operator>&&</Operator><Normal Text> </Normal Text><Constant>false</Constant><Symbol>;</Symbol><br/>
<Normal Text>    </Normal Text><Identifier>var1</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Keyword>if</Keyword><Normal Text> </Normal Text><Int>3</Int><Normal Text> < </Normal Text><Int>4</Int><Normal Text> </Normal Text><Keyword>then</Keyword><Normal Text> </Normal Text><String>"a"</String><Normal Text> </Normal Text><Keyword>else</Keyword><Normal Text> </Normal Text><String>"b"</String><Symbol>;</Symbol><br/>
<Keyword>in</Keyword><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>    </Normal Text><Comment>/*</Comment><br/>
<Comment>       Multi-line comments</Comment><br/>
<Comment>    */</Comment><br/>
<Normal Text>    </Normal Text><Keyword>inherit</Keyword><Normal Text> var1</Normal Text><Symbol>;</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>var2</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Keyword>with</Keyword><Normal Text> </Normal Text><Builtin>builtins</Builtin><Symbol>;</Symbol><Normal Text> </Normal Text><Symbol>[</Symbol><br/>
<Normal Text>        </Normal Text><Int>0</Int><Normal Text> </Normal Text><Int>1</Int><Normal Text> </Normal Text><Int>2</Int><Normal Text> </Normal Text><Symbol>(</Symbol><Operator>-</Operator><Int>3</Int><Symbol>)</Symbol><Normal Text> </Normal Text><Symbol>(</Symbol><Operator>-</Operator><Int>4</Int><Symbol>)</Symbol><br/>
<Normal Text>        </Normal Text><Int>123</Int><Normal Text>.</Normal Text><Int>456</Int><Normal Text> </Normal Text><Float>.12e34</Float><br/>
<Normal Text>        </Normal Text><Symbol>(</Symbol><Int>12</Int><Normal Text> </Normal Text><Operator>+</Operator><Normal Text> </Normal Text><Int>345</Int><Normal Text> </Normal Text><Operator>*</Operator><Normal Text> </Normal Text><Int>6789</Int><Normal Text> </Normal Text><Operator>/</Operator><Normal Text> </Normal Text><Int>321</Int><Symbol>)</Symbol><br/>
<Normal Text>    </Normal Text><Symbol>];</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>var3</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Symbol>[</Symbol><br/>
<Normal Text>        </Normal Text><String>"Single-line string"</String><br/>
<Normal Text>        </Normal Text><String>"</String><br/>
<String>          Multi-line string</String><br/>
<String>        "</String><br/>
<Normal Text>        </Normal Text><String>''</String><br/>
<String>          Indented string.</String><br/>
<String>        ''</String><br/>
<Normal Text>    </Normal Text><Symbol>];</Symbol><br/>
<Normal Text>    </Normal Text><Identifier>nested</Identifier><Normal Text>.</Normal Text><Identifier>var4</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Symbol>[</Symbol><br/>
<Normal Text>        </Normal Text><String>"String with </String><Special Char>${</Special Char><Normal Text>var1</Normal Text><Special Char>}</Special Char><String>"</String><br/>
<Normal Text>        </Normal Text><String>"Another one with escaped </String><Special Char>\$</Special Char><String>{var1}"</String><br/>
<Normal Text>        </Normal Text><String>''</String><br/>
<String>          Document with </String><Special Char>${</Special Char><Normal Text>var1</Normal Text><Special Char>}</Special Char><br/>
<String>          which is </String><Special Char>''$</Special Char><String>{var1}</String><br/>
<String>        ''</String><br/>
<Normal Text>        </Normal Text><String>''</String><br/>
<String>          My home: </String><Special Char>${</Special Char><Builtin>builtins</Builtin><Normal Text>.getEnv </Normal Text><String>"HOME"</String><Special Char>}</Special Char><br/>
<String>          Escaped tab: </String><Special Char>''\\</Special Char><String>t</String><br/>
<String>        ''</String><br/>
<Normal Text>    </Normal Text><Symbol>];</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>nested</Identifier><Normal Text>.</Normal Text><Identifier>a</Identifier><Normal Text>.</Normal Text><Identifier>imported</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Symbol>(</Symbol><Builtin>import</Builtin><Normal Text> </Normal Text><Path>./example.nix</Path><Symbol>);</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>fn</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Symbol>(</Symbol><Identifier>x</Identifier><Symbol>:</Symbol><Normal Text> </Normal Text><Identifier>y</Identifier><Symbol>:</Symbol><Normal Text> x </Normal Text><Operator>+</Operator><Normal Text> y</Normal Text><Symbol>);</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>fn1</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Symbol>{</Symbol><Normal Text> </Normal Text><Identifier>a</Identifier><Symbol>,</Symbol><Normal Text> </Normal Text><Identifier>b</Identifier><Normal Text> </Normal Text><Symbol>?</Symbol><Normal Text> </Normal Text><Builtin>import</Builtin><Normal Text> </Normal Text><Path>./file.nix</Path><Symbol>,</Symbol><Normal Text> </Normal Text><Identifier>c</Identifier><Normal Text> </Normal Text><Symbol>?</Symbol><Normal Text> </Normal Text><Symbol>{</Symbol><Normal Text> </Normal Text><Identifier>a</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Int>1</Int><Symbol>;</Symbol><Normal Text> </Normal Text><Identifier>b</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Int>2</Int><Symbol>;</Symbol><Normal Text> </Normal Text><Symbol>},</Symbol><Normal Text> </Normal Text><Symbol>...</Symbol><Normal Text> </Normal Text><Symbol>}</Symbol><Normal Text>: </Normal Text><Keyword>rec</Keyword><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>        </Normal Text><Keyword>inherit</Keyword><Normal Text> </Normal Text><Symbol>(</Symbol><Builtin>import</Builtin><Normal Text> </Normal Text><Path>./.</Path><Symbol>);</Symbol><br/>
<Normal Text>        </Normal Text><Identifier>x</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> a</Normal Text><Symbol>;</Symbol><br/>
<Normal Text>    </Normal Text><Symbol>};</Symbol><br/>
<Symbol>}</Symbol><br/>
