feat(editor): add Structured Text (IEC 61131-3) language support - #914
Merged
Merged
Conversation
antonreshetov
self-requested a review
September 4, 2026 11:06
antonreshetov
requested changes
Sep 4, 2026
antonreshetov
approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Adds Structured Text (IEC 61131-3) to the editor language selector using the
stlanguage ID. Previously, Structured Text had no dedicated syntax highlighting and the legacystmapping fell back to plain text.The TextMate grammar highlights declarations, control flow, types, operators, PLC addresses, numeric and date/time literals, strings with dollar escapes, and nested block and line comments. The legacy mapping now preserves
st.Validations
node node_modules/vitest/vitest.mjs run src/renderer/components/editor/grammars/__tests__/structuredText.test.ts.git diff --checkand commitlint passed.Literal syntax references: numeric literals, duration literals, string literals.