Skip to content

hjr265/zed-gotmpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zed Extension for Go Templates

A Zed extension providing rudimentary (includes syntax highlighting) support for Go templates (text/template and html/template).

Syntax Highlighting

This extension provides comprehensive syntax highlighting for Go templates, including:

  • Keywords: define, block, if, else, end, range, template, with
  • Variables: identifiers and field access (.Name, .User.Email)
  • Function calls: printf, len, index, etc.
  • Operators: :=
  • Literals: strings (interpreted and raw), numbers, booleans, runes
  • Special punctuation: {{, }}, {{-, -}}
  • Comments: {{/* ... */}}
  • Built-in constants: nil, true, false

For a comprehensive example showcasing all syntax highlighting features, see:

Installation

Clone the repository and install as a "dev" extension.

Contributions

For bug reports or feature requests, please open an issue on the GitHub repository.

Credits

To-dos

  • Add language server support

About

Go template (gotmpl, gohtml) support for Zed

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •