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)
40((identifier) @variable.builtin
41 (#match? @variable.builtin "^(self|cls)$"))
43(parameters (identifier) @variable.parameter)
44(parameters (typed_parameter (identifier) @variable.parameter))
45(parameters (default_parameter name: (identifier) @variable.parameter))
46(parameters (typed_default_parameter name: (identifier) @variable.parameter))
50((identifier) @type.builtin
53 "^(bool|bytes|dict|float|frozenset|int|list|set|str|tuple)$"))
55; In type hints make everything types to catch non-conforming identifiers
56; (e.g., datetime.datetime) and None
57(type [(identifier) (none)] @type)
58; Handle [] . and | nesting 4 levels deep
60 (_ [(identifier) (none)]? @type
61 (_ [(identifier) (none)]? @type
62 (_ [(identifier) (none)]? @type
63 (_ [(identifier) (none)]? @type)))))
65(class_definition name: (identifier) @type)
66(class_definition superclasses: (argument_list (identifier) @type))
70((identifier) @constant
71 (#match? @constant "^[A-Z_]{2,}$"))
74 (#match? @type "^[A-Z]"))
76(attribute attribute: (identifier) @variable.other.member)
87(integer) @constant.numeric.integer
88(float) @constant.numeric.float
91(escape_sequence) @constant.character.escape
94 "{" @punctuation.special
95 "}" @punctuation.special) @embedded
153(for_statement "in" @keyword.control)
154(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