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
Closed
Description
A list of scopes that are wrong or missing:
# 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