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

@chbk

Description

@chbk

A list of scopes that are wrong or missing:

y

# COMMAS

foo(bar, baz)               # comma is meta.function-call.arguments.python

import random, time         # comma is not scoped

# ASTERISKS

from socket import *        # asterisk is keyword.operator.arithmetic.python

foo(*args)                  # asterisk is keyword.operator.arithmetic.python

def foo(*args):             # asterisk is meta.function.parameters.python

# PERIODS

foo(fizz.buzz)              # period is meta.function-call.arguments.python

instance.method()           # period is meta.function-call.python

'string {}'.format(param)   # period is not scoped

# COLONS

a.wait_for(lambda: a > 0)   # colon is meta.function-call.arguments.python

if condition:               # colon is not scoped

# PARENTHESES

(0,1)                       # parentheses are not scoped

for (item in list):         # parentheses are not scoped

print('text')               # parentheses are not scoped

def foo()                   # second parenthesis is meta.function.parameters.python

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions