Skip to content

Slim template language syntax highlighting#37

Open
detomastah wants to merge 1 commit intopragtical:masterfrom
detomastah:slim-templates-syntax
Open

Slim template language syntax highlighting#37
detomastah wants to merge 1 commit intopragtical:masterfrom
detomastah:slim-templates-syntax

Conversation

@detomastah
Copy link

@detomastah detomastah commented Mar 14, 2026

Adds support for highlighting Slim templates: https://github.com/slim-template/slim (popular in Ruby on Rails)

Adapted from TextMate syntax highlighting. Proof that it works:

image

@jgmdev
Copy link
Member

jgmdev commented Mar 15, 2026

This new language syntax should be registered on the manifest.json file. Also, are the underscores between current_theme_mode made a different symbol type on purpose?

Edit: about the underscores

Maybe adding a _ after the %w would help here:

      -- Generic identifiers (best-effort fallback).
      -- Matches:
      --   div
      --   render
      pattern = "[%a][%w]*",

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