GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(editor): add Structured Text (IEC 61131-3) language support by kaftanati · Pull Request #914 · massCodeIO/massCode

Conversation

@kaftanati

@kaftanati kaftanati commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactor
  • Other, please describe:

Adds Structured Text (IEC 61131-3) to the editor language selector using the st language ID. Previously, Structured Text had no dedicated syntax highlighting and the legacy st mapping 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

  • Follow our CONTRIBUTING guide
  • 26 tests passed using the editor's TextMate engine: node node_modules/vitest/vitest.mjs run src/renderer/components/editor/grammars/__tests__/structuredText.test.ts.
  • ESLint passed for the four changed files; git diff --check and commitlint passed.
  • Electron UI was not launched; validation covers language registration and tokenization.

Literal syntax references: numeric literals, duration literals, string literals.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kaftanati
feat(editor): add Structured Text language support
b2f5377
@antonreshetov
antonreshetov self-requested a review September 4, 2026 11:06
antonreshetov
antonreshetov requested changes Sep 4, 2026
View reviewed changes
Comment thread src/renderer/components/editor/grammars/__tests__/structuredText.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@kaftanati
test(editor): remove Structured Text grammar tests
4e56d54
antonreshetov
antonreshetov approved these changes Sep 4, 2026
View reviewed changes
@antonreshetov
antonreshetov merged commit cd11cc4 into massCodeIO:main Sep 4, 2026
@kaftanati
kaftanati deleted the feat/structured-text branch September 4, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@antonreshetov antonreshetov antonreshetov approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@kaftanati @antonreshetov
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.