Warning, /frameworks/syntax-highlighting/autotests/folding/highlight.boo.fold is written in an unsupported language. File is not indexed.

0001 <indentfold><beginfold id='1'>"""</beginfold id='1'>module docstring<endfold id='1'>"""</endfold id='1'>
0002 
0003 namespace My.NameSpace #optional namespace declaration
0004 
0005 import Assembly.Reference #import statements
0006 
0007 #followed by the Members of this module (classes, methods, etc.)
0008 class MyClass:
0009     pass
0010 
0011 def domyfunction<beginfold id='2'>(</beginfold id='2'>it<endfold id='2'>)</endfold id='2'>:
0012     print<beginfold id='2'>(</beginfold id='2'>it<endfold id='2'>)</endfold id='2'>
0013 
0014 #start "main" section that is executed when script is run
0015 x as int
0016 x = 3
0017 domyfunction<beginfold id='2'>(</beginfold id='2'>x<endfold id='2'>)</endfold id='2'>
0018 
0019 #optional assembly attribute declarations used when compiling
0020 [assembly: AssemblyTitle<beginfold id='2'>(</beginfold id='2'>'foo'<endfold id='2'>)</endfold id='2'>]
0021 [assembly: AssemblyDescription<beginfold id='2'>(</beginfold id='2'>'bar'<endfold id='2'>)</endfold id='2'>]
0022 
0023 import MyLibrary
0024 print <beginfold id='2'>(</beginfold id='2'>Version<endfold id='2'>)</endfold id='2'>
0025 doit<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>
0026 
0027 [Module]
0028 class MainClass:
0029     public static Version as string
0030 
0031     static def constructor<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>:
0032         Version = "0.1"
0033 
0034 def doit<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>:
0035     #you can refer to "globals" from within your library, too:
0036     print<beginfold id='2'>(</beginfold id='2'>"This library's version is: "+MainClass.Version<endfold id='2'>)</endfold id='2'>
0037