Merge pull request #3315 from philippleidig/extend-st-extensions-twincat

Add TwinCAT file support for structured text (st) language
This commit is contained in:
Henning Dieterichs 2023-07-07 19:05:36 +02:00 committed by GitHub
commit 5ea17c3f59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ declare var require: any;
registerLanguage({ registerLanguage({
id: 'st', id: 'st',
extensions: ['.st', '.iecst', '.iecplc', '.lc3lib'], extensions: ['.st', '.iecst', '.iecplc', '.lc3lib', '.TcPOU', '.TcDUT', '.TcGVL', '.TcIO'],
aliases: ['StructuredText', 'scl', 'stl'], aliases: ['StructuredText', 'scl', 'stl'],
loader: () => { loader: () => {
if (AMD) { if (AMD) {

View file

@ -172,7 +172,8 @@ export const language = <languages.IMonarchLanguage>{
'vendor', 'vendor',
'common_source', 'common_source',
'from', 'from',
'extends' 'extends',
'implements'
], ],
constant: ['false', 'true', 'null'], constant: ['false', 'true', 'null'],