解析片段 xml 时出错:数据意外结束
Error parsing snippet xml: unexpected end of data
<snippet>
<content>
<![CDATA[${1:type} ${2:name} (${3:void}){
; return ${4:able};}]]>
</content>
<tabTrigger>f,fn,fct</tabTrigger>
<description>decl funct<description>
<scope>source.c99</scope>
</snippet>
错误解析代码段 xml:文件 Packages/User/c99/funct.sublime-snippet 第 12 行的数据意外结束
消息中的结束标记 <description>
不好。将其修复为 </description>
.
所以你的 xml 必须是:
<snippet>
<content>
<![CDATA[
${1:type} ${2:name} (${3:void})
{
return ${4:able};
}
]]>
</content>
<tabTrigger>f,fn,fct</tabTrigger>
<description>decl funct</description>
<scope>source.c99</scope>
</snippet>
<snippet>
<content>
<![CDATA[${1:type} ${2:name} (${3:void}){
; return ${4:able};}]]>
</content>
<tabTrigger>f,fn,fct</tabTrigger>
<description>decl funct<description>
<scope>source.c99</scope>
</snippet>
错误解析代码段 xml:文件 Packages/User/c99/funct.sublime-snippet 第 12 行的数据意外结束
消息中的结束标记 <description>
不好。将其修复为 </description>
.
所以你的 xml 必须是:
<snippet>
<content>
<![CDATA[
${1:type} ${2:name} (${3:void})
{
return ${4:able};
}
]]>
</content>
<tabTrigger>f,fn,fct</tabTrigger>
<description>decl funct</description>
<scope>source.c99</scope>
</snippet>