File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " highlightjs-structured-text" ,
3
- "version" : " 1.1 .0" ,
3
+ "version" : " 1.2 .0" ,
4
4
"description" : " highlight.js syntax definition for Structured Text IEC 61131-3 language" ,
5
5
"main" : " src/iecst.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -49,6 +49,16 @@ module.exports = function (hljs) {
49
49
contains : [ hljs . BACKSLASH_ESCAPE , { begin : '""' } ] ,
50
50
relevance : 0 ,
51
51
} ,
52
+ {
53
+ // Conversion Functions *_TO_**
54
+ className : "built_in" ,
55
+ begin : "(ANY|BOOL|BYTE|D?L?WORD|L?TIME|DATE|DT|TOD|W?CHAR|W?STRING|U?S?D?L?INT|L?REAL)_TO_(BOOL|BYTE|D?L?WORD|L?TIME|DATE|DT|TOD|W?CHAR|W?STRING|U?S?D?L?INT|L?REAL)"
56
+ } ,
57
+ {
58
+ // Conversion Functions TO_**
59
+ className : "built_in" ,
60
+ begin : "TO_(BOOL|BYTE|D?L?WORD|L?TIME|DATE|DT|TOD|W?CHAR|W?STRING|U?S?D?L?INT|L?REAL)"
61
+ } ,
52
62
{
53
63
className : "symbol" ,
54
64
begin : "(D|T|DT|TOD)#[0-9:\\-_shmyd]*" ,
@@ -74,7 +84,7 @@ module.exports = function (hljs) {
74
84
} ,
75
85
{
76
86
className : "symbol" ,
77
- begin : "%(I|Q|M)(X|B|W|D|L)[0-9.]*" ,
87
+ begin : "%(I|Q|M)(X|B|W|D|L)[0-9\\ .]*" ,
78
88
} ,
79
89
{
80
90
className : "symbol" ,
You can’t perform that action at this time.
0 commit comments