Fix a typo (#1597)
[geany-mirror.git] / data / filedefs / filetypes.python
blob61a3c11ccd70912ea1520e171e54e3105b140a18
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
20 fstring=string_1
21 fcharacter=character
22 ftriple=string_2
23 ftripledouble=string_2
25 [keywords]
26 # all items must be in one line
27 # both primary and identifiers are auto-generated by scripts/update-python-identifiers.sh
28 # Python 2&3 keywords
29 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
30 # additional keywords, will be highlighted with style "word2"
31 # Python 2&3 builtins (minus ones in primary)
32 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
34 [lexer_properties]
35 fold.quotes.python=1
36 lexer.python.keywords2.no.sub.identifiers=1
38 [settings]
39 # default extension used when saving files
40 extension=py
42 # MIME type
43 mime_type=text/x-python
45 # the following characters are these which a "word" can contains, see documentation
46 #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
48 # single comment char, like # in this file
49 comment_single=#
50 # multiline comments
51 #comment_open="""
52 #comment_close="""
54 # set to false if a comment character/string should start at column 0 of a line, true uses any
55 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
56 #command_example();
57 # setting to false would generate this
58 # command_example();
59 # This setting works only for single line comments
60 comment_use_indent=true
62 # context action command (please see Geany's main documentation for details)
63 context_action_cmd=
65 [indentation]
66 #width=4
67 # 0 is spaces, 1 is tabs, 2 is tab & spaces
68 #type=0
70 [build-menu]
71 # %f will be replaced by the complete filename
72 # %e will be replaced by the filename without extension
73 # (use only one of it at one time)
74 FT_00_LB=_Compile
75 FT_00_CM=python -m py_compile "%f"
76 FT_00_WD=
77 FT_02_LB=_Lint
78 FT_02_CM=pep8 --max-line-length=80 "%f"
79 FT_02_WD=
80 error_regex=(.+):([0-9]+):([0-9]+)
81 EX_00_LB=_Execute
82 EX_00_CM=python "%f"
83 EX_00_WD=