<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> </Normal Text><Identifier>var1</Identifier><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><Float>123.456</Float><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><Symbol>.</Symbol><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/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>var5</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>        </Normal Text><Keyword>inherit</Keyword><Normal Text> </Normal Text><Identifier>a</Identifier><Normal Text> </Normal Text><Identifier>b</Identifier><Normal Text> </Normal Text><Identifier>c</Identifier><Symbol>;</Symbol><br/>
<Normal Text>        </Normal Text><Keyword>inherit</Keyword><Normal Text> </Normal Text><Symbol>(</Symbol><Normal Text>expr</Normal Text><Symbol>)</Symbol><Normal Text> </Normal Text><Identifier>a</Identifier><Normal Text> </Normal Text><Identifier>b</Identifier><Normal Text> </Normal Text><Identifier>c</Identifier><Symbol>;</Symbol><br/>
<Normal Text>    </Normal Text><Symbol>};</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>var6</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>        </Normal Text><Special Char>${</Special Char><Normal Text>foo</Normal Text><Special Char>}</Special Char><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> bar</Normal Text><Symbol>;</Symbol><br/>
<Normal Text>        </Normal Text><Special Char>${</Special Char><Normal Text>bar</Normal Text><Special Char>}</Special Char><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> baz</Normal Text><Symbol>;</Symbol><br/>
<Normal Text>        </Normal Text><Identifier>a</Identifier><Normal Text>.</Normal Text><Special Char>${</Special Char><Normal Text>b</Normal Text><Special Char>}</Special Char><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> c</Normal Text><Symbol>;</Symbol><br/>
<Normal Text>    </Normal Text><Symbol>};</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>var7</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>        </Normal Text><String>"first"</String><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Int>1</Int><Symbol>;</Symbol><br/>
<Normal Text>        </Normal Text><String>"second"</String><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Int>2</Int><Symbol>;</Symbol><br/>
<Normal Text>    </Normal Text><Symbol>};</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Identifier>abc</Identifier><Normal Text>.</Normal Text><String>"cde"</String><Normal Text>.</Normal Text><Identifier>fgh</Identifier><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> abc</Normal Text><Symbol>.</Symbol><String>"cde"</String><Symbol>.</Symbol><Normal Text>fgh</Normal Text><Symbol>;</Symbol><br/>
<Symbol>}</Symbol><br/>
