1
# Syntax Highlight Test File for Python
2
# Some Comments about this file
5
A test file for checking styles for the python highlighter.
9
__author__ = "Cody Precord"
16
"""Prints hello world to the console"""
18
print "unclosed string
22
"""A class to represent a greeting"""
23
def __init__(self, language):
24
"""initializes the greeting"""
28
"""Returns the string representation of the greeting"""
29
if self._lang == "English":
31
elif self._lang == "Spanish":
34
return "Sorry I dont know %s" % self._lang
36
# Decorator's (python 2.4+)
39
return '\n'.join([ x.__doc__ for x in dir(self) if hasattr(x, '__doc__')])
41
if __name__ == '__main__':
43
print Greeting('English')