codemirror / google-modes

A consistent set of modes for C, C++, Java, Go, JavaScript, TypeScript, Python, HTML, and Angular Templates
MIT License
33 stars 28 forks source link

[py] inconsistent highlighting #296

Closed takamori closed 4 years ago

takamori commented 4 years ago
class Class:
  field1 = 0
  field2: str = "example"

def func():
  var2: int = 0
  var2 = 10 + var2
  var1 = 0
  var1 = 10 + var1

def func2():
  var1 = 0
  var1 = 10 + var1
  var2: int = 0
  var2 = 10 + var2

global_var1 = True
global_var2: bool = False