Skip to content

Add TextMate Grammar for Linden Scripting Language (LSL) #9

@bennettgoble

Description

@bennettgoble

We’re looking for a high-quality TextMate grammar for Linden Scripting Language (LSL) to be added to this repository so that it can ultimately be be contributed to tm-grammars, the canonical grammar collection used by Shiki.

Why This Matters

We are looking to use Mintlify for documentation, which relies on Shiki for syntax highlighting. LSL code blocks are currently unhighlighted, making developer docs harder to read and write. Fixing this will benefit the Second Life scripting community and enhance the developer experience across the web wherever Shiki is used.

Acceptance Criteria

  • Create a fully functional .tmLanguage.json grammar for LSL and make a PR against this repository
  • Proper classification of LSL keywords, types, constants, events, functions, and operators
  • Verified syntax highlighting using the Shiki engine (e.g., via shiki-playground)
  • LSL added to the languages.json mapping if necessary
  • Demo screenshot or GIF showing LSL highlighting in action

Further details

  • Make this grammar as evergreen as possible, we don't want to have to update it every time a new library function is added
    • Ex. target patterns (functions begin with ll...(), constants are all caps snake case, etc.) instead of targeting a finite list of key words

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions