How to setup Atom's 'styles.less' file to highlight function and method call in Python?

会有一股神秘感。 提交于 2019-12-04 10:40:51
Holland Wilson

You need to remove the '' from the color rule. Those don't go there. I tested and this works:

atom-text-editor.editor {
  .syntax--meta.syntax--function-call.syntax--python {
    color: #66D9EF;
  }
}

This solution highlighted all function calls for me:

atom-text-editor.editor {
  .syntax--source.syntax--python {
    .syntax--function-call.syntax--generic.syntax--python  {
      color: #ffc1c1;
    }
  }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!