-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drake-black主题python class着色错误 #112
Labels
Bug
Something isn't working
Comments
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
class Employee:
'所有员工的基类' # __doc__
empCount = 0 # 类属性
name = 0
salary = 0
def __init__(this, name, salary): # 构造方法
this.name = name # 实例属性
this.salary = salary
Employee.empCount += 1
def __del__(self): # 析构方法
Employee.empCount -= 1
def displayCount(this): # 类方法,this是必须的,在方法里引用实例使用。
print("Total Employee %d" % Employee.empCount)
def displayEmployee(this): # this不是关键字,也可以使用this
print("Name : ", this.name, ", Salary: ", this.salary)
emp1 = Employee("Zara", 2000) # 创建实例
emp2 = Employee("Manni", 5000)
emp1.displayEmployee()
emp2.displayEmployee() # 访问方法
print("Total Employee %d" % Employee.empCount) # 访问类属性
del emp2 # 消毁实例,触发析构
print("Total Employee %d" % Employee.empCount) # 访问类属性 |
你指的是图中高亮存在红色背景是吧? |
两个def渲染一个有红色背景一个没有。 这些bug只有class的渲染才会如此。删除class就正常了。 |
语法-类.md 我试了下,在material theme渲染这个md也有一样的问题。其它theme没问题 |
两天前已经修复了(我已经close本issues), 你下载最新版本吧 |
嗯,刚才我在release包里重现的。原来是要同步master |
没有更新过标签, 因为更新比较频繁, 直接点击README里面的下载就好了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述问题
python代码着色处理。其它主题测试无此总是。
如何复现问题
将下列内容帖成md,然后用typora的drake-black主题打开. 其中'要换成`
期望结果
下面截图里,正确的是drake主题。哎呀图上传不上来。你帖下代码试下就能重现了。
截图
系统 (建议使用最新Typora版本)
The text was updated successfully, but these errors were encountered: