Skip to content

Commit

Permalink
Fixed the xml field snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdp committed Apr 21, 2021
1 parent d8816a7 commit e5f300b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -510,7 +510,7 @@ with "ComponentName" editable and cursor inside the block

Typing `<field<tab>` generates
```xml
<field name="name" type="integer" />
<field id="id" type="integer" />
```
with "name" editable, and the type is a dropdown of possible values

Expand Down
4 changes: 2 additions & 2 deletions snippets/xml.json
Expand Up @@ -34,15 +34,15 @@
"Field Element": {
"prefix": "<field",
"body": [
"<field name=\"${1:name}\" type=\"${2|integer,longInteger,float,string,boolean,vector2d,color,time,uri,node,array,floatArray,intArray,boolArray,stringArray,vector2dArray,colorArray,timeArray,nodeArray,assocArray,rect2d,rect2dArray|}\" />"
"<field id=\"${1:id}\" type=\"${2|integer,longInteger,float,string,boolean,vector2d,color,time,uri,node,array,floatArray,intArray,boolArray,stringArray,vector2dArray,colorArray,timeArray,nodeArray,assocArray,rect2d,rect2dArray|}\" />"
],
"description": "Field element"
},

"Field Element with Alias": {
"prefix": "<field-alias",
"body": [
"<field name=\"${1:name}\" type=\"${2|integer,longInteger,float,string,boolean,vector2d,color,time,uri,node,array,floatArray,intArray,boolArray,stringArray,vector2dArray,colorArray,timeArray,nodeArray,assocArray,rect2d,rect2dArray|}\" alias=\"${3:alias}\" />"
"<field id=\"${1:id}\" type=\"${2|integer,longInteger,float,string,boolean,vector2d,color,time,uri,node,array,floatArray,intArray,boolArray,stringArray,vector2dArray,colorArray,timeArray,nodeArray,assocArray,rect2d,rect2dArray|}\" alias=\"${3:alias}\" />"
],
"description": "Field element with alias"
},
Expand Down

0 comments on commit e5f300b

Please sign in to comment.