Skip to content

Bump rouge to 4.3.0 with the new IEC 61131-3 Structured Text lexer

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

This MR bumps the rouge library which adds a new lexer IEC 61131-3 Structured Text, Structured text is a programming language for PLCs (programmable logic controllers). This is important for the automation domain, one of the technologies we develop and use at Siemens, see https://github.com/rouge-ruby/rouge/pull/2027 which is made by Martin Waitz from Siemens.

The MR by the bot failed somehow: !155409 (closed)

Full Changelog: https://github.com/rouge-ruby/rouge/compare/v4.2.0...v4.3.0

🛠 with at Siemens

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image
image image
image image
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. create a snippet with this test file using one of the following file endings: *.awl, *.scl, *.st
  2. view the snippet, no syntax highlighting or wrong syntax highlighting for *.st (detected as smalltalk)
  3. apply this patch
  4. view the snippet with correct syntax highlighting
Edited by Roger Meier

Merge request reports