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

No scopes on punctuation #134

Closed
chbk opened this issue Feb 25, 2016 · 0 comments · Fixed by #325
Closed

No scopes on punctuation #134

chbk opened this issue Feb 25, 2016 · 0 comments · Fixed by #325
Labels

Comments

@chbk
Copy link

chbk commented Feb 25, 2016

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants