Skip to content

Commit c129053

Browse files
authored
Merge pull request #21 from simatic-ax/add_Sourround
Add surround for namespace
2 parents a003bdd + e60507b commit c129053

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,7 @@ Available surround with:
7777
"prefix" : ["namespace, Siemens"]
7878
```
7979

80-
Output:
81-
82-
```iecst
83-
NAMESPACE Simatic.Ax
84-
85-
END_NAMESPACE
86-
```
80+
![namespace](doc/img/namespace.gif)
8781

8882
### Snippets for class support
8983

doc/img/namespace.gif

42.5 KB
Loading

snippets/namespacesupport.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"scope": "javascript,typescript,st",
44
"prefix": ["namespace, Siemens"],
55
"body": [
6-
"NAMESPACE ${1:Simatic.Ax}",
7-
"\t$2",
6+
"NAMESPACE Simatic.Ax.${1:<YourNamespace>}",
7+
"\t${TM_SELECTED_TEXT}",
88
"END_NAMESPACE$0"
99
],
1010
"description": "Creates an namespace template"

0 commit comments

Comments
 (0)