Remove unused code
[geany-mirror.git] / data / filedefs / filetypes.python.in
blobe07558c84112008da0d670a95afbb3c830535a31
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
24 attribute=identifier_1
26 [keywords]
27 # all items must be in one line
28 # both primary and identifiers are auto-generated by scripts/update-python-identifiers.sh
29 # Python 3 keywords
30 primary=False None True _ and as assert async await break case class continue def del elif else except finally for from global if import in is lambda match nonlocal not or pass raise return try while with yield
31 # additional keywords, will be highlighted with style "word2"
32 # Python 3 builtins (minus ones in primary)
33 identifiers=ArithmeticError AssertionError AttributeError BaseException BlockingIOError BrokenPipeError BufferError BytesWarning ChildProcessError ConnectionAbortedError ConnectionError ConnectionRefusedError ConnectionResetError DeprecationWarning EOFError Ellipsis EncodingWarning EnvironmentError Exception FileExistsError FileNotFoundError FloatingPointError FutureWarning GeneratorExit IOError ImportError ImportWarning IndentationError IndexError InterruptedError IsADirectoryError KeyError KeyboardInterrupt LookupError MemoryError ModuleNotFoundError NameError NotADirectoryError NotImplemented NotImplementedError OSError OverflowError PendingDeprecationWarning PermissionError ProcessLookupError RecursionError ReferenceError ResourceWarning RuntimeError RuntimeWarning StopAsyncIteration 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 aiter all anext any ascii bin bool breakpoint bytearray bytes callable chr classmethod compile complex copyright credits delattr dict dir divmod enumerate eval exec exit filter float format frozenset getattr globals hasattr hash help hex id input int isinstance issubclass iter len license list locals map max memoryview min next object oct open ord pow print property quit range repr reversed round set setattr slice sorted staticmethod str sum super tuple type vars zip
35 [lexer_properties]
36 fold.quotes.python=1
37 lexer.python.keywords2.no.sub.identifiers=1
38 lexer.python.identifier.attributes=1
39 lexer.python.identifier.decorator=1
41 [settings]
42 # default extension used when saving files
43 extension=py
45 # MIME type
46 mime_type=text/x-python
48 # these characters define word boundaries when making selections and searching
49 # using word matching options
50 #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
52 # single comment char, like # in this file
53 comment_single=#\s
54 # multiline comments
55 #comment_open="""
56 #comment_close="""
58 # set to false if a comment character/string should start at column 0 of a line, true uses any
59 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
60 # #command_example();
61 # setting to false would generate this
62 # # command_example();
63 # This setting works only for single line comments
64 comment_use_indent=true
66 # context action command (please see Geany's main documentation for details)
67 context_action_cmd=
69 [indentation]
70 #width=4
71 # 0 is spaces, 1 is tabs, 2 is tab & spaces
72 #type=0
74 [build-menu]
75 # %f will be replaced by the complete filename
76 # %e will be replaced by the filename without extension
77 FT_00_LB=_Compile
78 FT_00_CM=@PYTHON_COMMAND@ -m py_compile "%f"
79 FT_00_WD=
80 FT_02_LB=_Lint
81 FT_02_CM=pycodestyle --max-line-length=80 "%f"
82 FT_02_WD=
83 error_regex=(.+):([0-9]+):([0-9]+)
84 EX_00_LB=_Execute
85 EX_00_CM=@PYTHON_COMMAND@ "%f"
86 EX_00_WD=