[vim/vim] Handlebars + Glimmer syntax support (PR #19569)

1 view
Skip to first unread message

Devin Weaver

unread,
2:58 PM (5 hours ago) 2:58 PM
to vim/vim, Subscribed

This PR adds syntax highlighting and indentation support for Handlebars (*.hbs) templates and Glimmer (*.gjs/*.gts) files. While Vim already detected these filetypes, it lacked the syntax and indentation definitions needed for proper editing.

Changes:

  1. Handlebars Support:

    • Added new runtime/syntax/handlebars.vim with syntax highlighting for Handlebars templates
    • Added new runtime/indent/handlebars.vim with better indentation rules for Handlebars
    • Added a missing filetype test case for .hbs files
  2. Glimmer Support:

    • Added new runtime/syntax/glimmer.vim that combines JavaScript/TypeScript syntax with Handlebars syntax
    • Properly handles <template> blocks within Glimmer files

The Handlebars code is adapted from an external project with permission from the original author under the MIT license (properly attributed in both files). This enhances Vim's support for Ember.js and other frameworks that use these template formats.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19569

Commit Summary

  • 1b520d7 runtime(handlebars): adds handlebars template syntax & indent support
  • 08d4810 runtime(glimmer): add syntax support for glimmer files

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19569@github.com>

Devin Weaver

unread,
4:16 PM (3 hours ago) 4:16 PM
to vim/vim, Push

@sukima pushed 2 commits.

  • c359888 runtime(handlebars): adds handlebars template syntax & indent support
  • 8636c41 runtime(glimmer): add syntax support for glimmer files


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19569/before/08d4810f97cf6eeaf032428f1546a016641edcc1/after/8636c41ca237e91943f6eb1858a7356c3b7fe584@github.com>

Devin Weaver

unread,
5:41 PM (2 hours ago) 5:41 PM
to vim/vim, Subscribed
sukima left a comment (vim/vim#19569)

I am unable to understand the current test failures. They appear to be network issues concerning Linux OS packages unrelated to the runtime files added in this PR?

Please advise.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19569/c3994007826@github.com>

Reply all
Reply to author
Forward
0 new messages