简体   繁体   English

代码破坏了Atom / Nuclide中语法的突出显示

[英]Code breaks syntax highlighting in Atom / Nuclide

This Javascript / React Native code, which works just fine, breaks the syntax highlighting in Atom / Nuclide for anything that comes after it. 这个运行良好的Javascript / React Native代码打破了Atom / Nuclide中语法的突出显示。 Is there anything wrong with the code or is it the syntax highlighting engine? 代码有什么问题吗?还是语法高亮引擎?

static navigationOptions = {
    headerTitle: "TFN Top Headlines",
    headerTitleStyle: { fontFamily: "Iowan Old Style" },
    headerLeft: (
      <Icon
        size={35}
        onPress={() => {
          _this.toggleMenu();
        }}
        style={{
          marginLeft: 10
        }}
        name="navicon"
      />
    )
  };

在此处输入图片说明

You will need to install a Plug-in to support JSX formatting. 您将需要安装插件以支持JSX格式。

You could try https://atom.io/packages/language-babel 您可以尝试https://atom.io/packages/language-babel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM