Skip to content

Add SysML v2 User Defined Language for Notepad++ - #406

Merged
pryrt merged 2 commits into
notepad-plus-plus:masterfrom
aklira:master
Sep 4, 2026
Merged

Add SysML v2 User Defined Language for Notepad++#406
pryrt merged 2 commits into
notepad-plus-plus:masterfrom
aklira:master

Conversation

@aklira

@aklira aklira commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Add User Defined Language support for SysML v2

This pull request adds a Notepad++ User Defined Language (UDL) definition for SysML v2.

The UDL is based on the OMG SysML v2 and KerML language specifications and provides syntax highlighting for the main lexical elements of the textual SysML v2 notation.

Supported syntax

  • SysML v2 reserved keywords
  • Common modeling constructs such as part, port, item, attribute, action, state, requirement, verification, view, viewpoint, connection, and interface
  • Relationship keywords and operators such as specializes, subsets, redefines, :>, ::>, and :>>
  • Line and block comments
  • String literals
  • Quoted identifiers
  • Numeric literals
  • SysML/KerML operators
  • Metadata annotations
  • User-defined keywords prefixed with #
  • Code folding based on { ... } blocks

The .sysml file extension is automatically associated with the language.

References

The definition was created based on the official OMG specifications:

  • SysML v2 Language Specification
  • KerML Specification

The goal is to provide lightweight and convenient syntax highlighting for users editing textual SysML v2 models in Notepad++.

As this is implemented as a Notepad++ UDL, it provides lexical highlighting only and does not attempt semantic or context-sensitive parsing of SysML v2 models.

Added a new User Defined Language (UDL) for OMG SysML v2 to facilitate syntax highlighting and code folding in Notepad++. This includes keyword definitions, styles, and comments relevant to SysML v2.
@pryrt
pryrt merged commit f8138fc into notepad-plus-plus:master Sep 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants