Recognize #!/bin/dash as shebang for Shell files (closes #3470986)
[geany-mirror.git] / data / filetypes.python
blob04349b011efb5abb4107c3ce8766a5bde1e55a4a
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 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 BufferError BytesWarning 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__ __package__ abs all any apply 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 min next object oct open ord pow print 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 # single comment char, like # in this file
40 comment_single=#
41 # multiline comments
42 #comment_open="""
43 #comment_close="""
45 # set to false if a comment character/string should start at column 0 of a line, true uses any
46 # indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
47 #command_example();
48 # setting to false would generate this
49 # command_example();
50 # This setting works only for single line comments
51 comment_use_indent=true
53 # context action command (please see Geany's main documentation for details)
54 context_action_cmd=
56 [indentation]
57 #width=4
58 # 0 is spaces, 1 is tabs, 2 is tab & spaces
59 #type=0
61 [build_settings]
62 # %f will be replaced by the complete filename
63 # %e will be replaced by the filename without extension
64 # (use only one of it at one time)
65 compiler=python -m py_compile "%f"
66 run_cmd=python "%f"