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

0001 """module docstring"""
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(it):
0012     print(it)
0013 
0014 #start "main" section that is executed when script is run
0015 x as int
0016 x = 3
0017 domyfunction(x)
0018 
0019 #optional assembly attribute declarations used when compiling
0020 [assembly: AssemblyTitle('foo')]
0021 [assembly: AssemblyDescription('bar')]
0022 
0023 import MyLibrary
0024 print (Version)
0025 doit()
0026 
0027 [Module]
0028 class MainClass:
0029     public static Version as string
0030 
0031     static def constructor():
0032         Version = "0.1"
0033 
0034 def doit():
0035     #you can refer to "globals" from within your library, too:
0036     print("This library's version is: "+MainClass.Version)
0037