Skip to content

Commit 8697657

Browse files
committed
Fix all
1 parent 00d9092 commit 8697657

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "highlightjs-structured-text",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "highlight.js syntax definition for Structured Text IEC 61131-3 language",
55
"main": "src/iecst.js",
66
"scripts": {

src/iecst.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ module.exports = function (hljs) {
4949
contains: [hljs.BACKSLASH_ESCAPE, { begin: '""' }],
5050
relevance: 0,
5151
},
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+
},
5262
{
5363
className: "symbol",
5464
begin: "(D|T|DT|TOD)#[0-9:\\-_shmyd]*",
@@ -74,7 +84,7 @@ module.exports = function (hljs) {
7484
},
7585
{
7686
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\\.]*",
7888
},
7989
{
8090
className: "symbol",

0 commit comments

Comments
 (0)