Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

No scopes on punctuation #134

Description

@chbk

A list of scopes that are wrong or missing:

y

# COMMASfoo(bar, baz) # comma is meta.function-call.arguments.pythonimportrandom, time# comma is not scoped# ASTERISKSfromsocketimport*# asterisk is keyword.operator.arithmetic.pythonfoo(*args) # asterisk is keyword.operator.arithmetic.pythondeffoo(*args): # asterisk is meta.function.parameters.python# PERIODSfoo(fizz.buzz) # period is meta.function-call.arguments.pythoninstance.method() # period is meta.function-call.python'string {}'.format(param) # period is not scoped# COLONSa.wait_for(lambda: a>0) # colon is meta.function-call.arguments.pythonifcondition: # colon is not scoped# PARENTHESES
(0,1) # parentheses are not scopedfor (iteminlist): # parentheses are not scopedprint('text') # parentheses are not scopeddeffoo() # second parenthesis is meta.function.parameters.python

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions