Tagging the 0.19.1 release.
[geany-mirror.git] / data / filetypes.python
blob0f458971d02d8e615d929d3ca6e9478aef6c416b
1 # For complete documentation of this file, please see Geany's main documentation
2 [styling]
3 # foreground;background;bold;italic
4 default=0x000000;0xffffff;false;false
5 commentline=0x808080;0xffffff;false;false
6 number=0x400080;0xffffff;false;false
7 string=0x008000;0xffffff;false;false
8 character=0x008000;0xffffff;false;false
9 word=0x600080;0xffffff;true;false
10 triple=0x008020;0xffffff;false;false
11 tripledouble=0x404000;0xffffff;false;false
12 classname=0x003030;0xffffff;false;false
13 defname=0x000080;0xffffff;false;false
14 operator=0x300080;0xffffff;false;false
15 identifier=0x000000;0xffffff;false;false
16 commentblock=0x808080;0xffffff;false;false
17 stringeol=0x000000;0xe0c0e0;false;false
18 word2=0x9f0200;0xffffff;false;false
19 decorator=0x808000;0xffffff;false;false
21 [keywords]
22 # all items must be in one line
23 primary=and as assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while with yield False None True
24 # additional keywords, will be highlighted with style "word2"
25 # these are the builtins for Python 2.5 created with ' '.join(dir(__builtins__))
26 identifiers=ArithmeticError AssertionError AttributeError BaseException DeprecationWarning EOFError Ellipsis EnvironmentError Exception False FloatingPointError FutureWarning GeneratorExit IOError ImportError ImportWarning IndentationError IndexError KeyError KeyboardInterrupt LookupError MemoryError NameError None NotImplemented NotImplementedError OSError OverflowError PendingDeprecationWarning ReferenceError RuntimeError RuntimeWarning StandardError StopIteration SyntaxError SyntaxWarning SystemError SystemExit TabError True TypeError UnboundLocalError UnicodeDecodeError UnicodeEncodeError UnicodeError UnicodeTranslateError UnicodeWarning UserWarning ValueError Warning ZeroDivisionError _ __debug__ __doc__ __import__ __name__ abs all any apply basestring bool buffer callable chr classmethod cmp coerce compile complex copyright credits delattr dict dir divmod enumerate eval execfile exit file filter float frozenset getattr globals hasattr hash help hex id input int intern isinstance issubclass iter len license list locals long map max min object oct open ord pow property quit range raw_input reduce reload repr reversed round set setattr slice sorted staticmethod str sum super tuple type unichr unicode vars xrange zip
28 [lexer_properties]
29 fold.comment.python=1
30 fold.quotes.python=1
32 [settings]
33 # default extension used when saving files
34 #extension=py
36 # the following characters are these which a "word" can contains, see documentation
37 #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
39 # if only single comment char is supported like # in this file, leave comment_close blank
40 comment_open=#
41 comment_close=
43 # set to false if a comment character/string should start at column 0 of a line, true uses any
44 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
45 #command_example();
46 # setting to false would generate this
47 # command_example();
48 # This setting works only for single line comments
49 comment_use_indent=true
51 # context action command (please see Geany's main documentation for details)
52 context_action_cmd=
54 [build_settings]
55 # %f will be replaced by the complete filename
56 # %e will be replaced by the filename without extension
57 # (use only one of it at one time)
58 compiler=python -c "import py_compile; py_compile.compile('%f')"
59 run_cmd=python "%f"