Small NEWS udpate
[geany-mirror.git] / data / filetypes.python
blobd06c9377c65244a00621407e30d6b9b5b183b5c5
1 # For complete documentation of this file, please see Geany's main documentation
2 [styling]
3 # Edit these in the colorscheme .conf file instead
4 default=default
5 commentline=comment_line
6 number=number_1
7 string=string_1
8 character=character
9 word=keyword_1
10 triple=string_2
11 tripledouble=string_2
12 classname=type
13 defname=function
14 operator=operator
15 identifier=identifier_1
16 commentblock=comment
17 stringeol=string_eol
18 word2=keyword_2
19 decorator=decorator
21 [keywords]
22 # all items must be in one line
23 # both primary and identifiers are auto-generated by scripts/update-python-identifiers.sh
24 # Python 2&3 keywords
25 primary=False None True and as assert break class continue def del elif else except exec finally for from global if import in is lambda nonlocal not or pass print raise return try while with yield
26 # additional keywords, will be highlighted with style "word2"
27 # Python 2&3 builtins (minus ones in primary)
28 identifiers=ArithmeticError AssertionError AttributeError BaseException BlockingIOError BrokenPipeError BufferError BytesWarning ChildProcessError ConnectionAbortedError ConnectionError ConnectionRefusedError ConnectionResetError DeprecationWarning EOFError Ellipsis EnvironmentError Exception FileExistsError FileNotFoundError FloatingPointError FutureWarning GeneratorExit IOError ImportError ImportWarning IndentationError IndexError InterruptedError IsADirectoryError KeyError KeyboardInterrupt LookupError MemoryError NameError NotADirectoryError NotImplemented NotImplementedError OSError OverflowError PendingDeprecationWarning PermissionError ProcessLookupError ReferenceError ResourceWarning RuntimeError RuntimeWarning StandardError StopIteration SyntaxError SyntaxWarning SystemError SystemExit TabError TimeoutError TypeError UnboundLocalError UnicodeDecodeError UnicodeEncodeError UnicodeError UnicodeTranslateError UnicodeWarning UserWarning ValueError Warning ZeroDivisionError __build_class__ __debug__ __doc__ __import__ __loader__ __name__ __package__ __spec__ abs all any apply ascii basestring bin bool buffer bytearray bytes callable chr classmethod cmp coerce compile complex copyright credits delattr dict dir divmod enumerate eval execfile exit file filter float format frozenset getattr globals hasattr hash help hex id input int intern isinstance issubclass iter len license list locals long map max memoryview min next 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
30 [lexer_properties]
31 fold.comment.python=1
32 fold.quotes.python=1
34 [settings]
35 # default extension used when saving files
36 extension=py
38 # MIME type
39 mime_type=text/x-python
41 # the following characters are these which a "word" can contains, see documentation
42 #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
44 # single comment char, like # in this file
45 comment_single=#
46 # multiline comments
47 #comment_open="""
48 #comment_close="""
50 # set to false if a comment character/string should start at column 0 of a line, true uses any
51 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
52 #command_example();
53 # setting to false would generate this
54 # command_example();
55 # This setting works only for single line comments
56 comment_use_indent=true
58 # context action command (please see Geany's main documentation for details)
59 context_action_cmd=
61 [indentation]
62 #width=4
63 # 0 is spaces, 1 is tabs, 2 is tab & spaces
64 #type=0
66 [build-menu]
67 # %f will be replaced by the complete filename
68 # %e will be replaced by the filename without extension
69 # (use only one of it at one time)
70 FT_00_LB=_Compile
71 FT_00_CM=python -m py_compile "%f"
72 FT_00_WD=
73 FT_02_LB=_Lint
74 FT_02_CM=pep8 --max-line-length=80 "%f"
75 FT_02_WD=
76 error_regex=(.+):([0-9]+):([0-9]+)
77 EX_00_LB=_Execute
78 EX_00_CM=python "%f"
79 EX_00_WD=