4 function: (identifier) @function.builtin)
7 "^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$"))
12 function: (attribute attribute: (identifier) @constructor)
13 (#match? @constructor "^[A-Z]"))
15 function: (identifier) @constructor
16 (#match? @constructor "^[A-Z]"))
19 function: (attribute attribute: (identifier) @function.method))
22 function: (identifier) @function)
27 name: (identifier) @constructor
28 (#match? @constructor "^(__new__|__init__)$"))
31 name: (identifier) @function)
36(decorator (identifier) @function)
37(decorator (attribute attribute: (identifier) @function))
39 function: (attribute attribute: (identifier) @function)))
43((identifier) @variable.builtin
44 (#match? @variable.builtin "^(self|cls)$"))
46(parameters (identifier) @variable.parameter)
47(parameters (typed_parameter (identifier) @variable.parameter))
48(parameters (default_parameter name: (identifier) @variable.parameter))
49(parameters (typed_default_parameter name: (identifier) @variable.parameter))
50(keyword_argument name: (identifier) @variable.parameter)
54((identifier) @type.builtin
57 "^(bool|bytes|dict|float|frozenset|int|list|set|str|tuple)$"))
59; In type hints make everything types to catch non-conforming identifiers
60; (e.g., datetime.datetime) and None
61(type [(identifier) (none)] @type)
62; Handle [] . and | nesting 4 levels deep
64 (_ [(identifier) (none)]? @type
65 (_ [(identifier) (none)]? @type
66 (_ [(identifier) (none)]? @type
67 (_ [(identifier) (none)]? @type)))))
69(class_definition name: (identifier) @type)
70(class_definition superclasses: (argument_list (identifier) @type))
74((identifier) @constant
75 (#match? @constant "^[A-Z_]{2,}$"))
78 (#match? @type "^[A-Z]"))
80(attribute attribute: (identifier) @variable.other.member)
91(integer) @constant.numeric.integer
92(float) @constant.numeric.float
95(escape_sequence) @constant.character.escape
98 "{" @punctuation.special
99 "}" @punctuation.special) @embedded
157(for_statement "in" @keyword.control)
158(for_in_clause "in" @keyword.control)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list