/tree-sitter-surface

Surface grammar for Tree-sitter

Primary LanguageJavaScript

Tree-sitter Surface

Tree-sitter grammar and parser for Surface, the server-side rendering component library for Phoenix.

Supports the Surface 0.5+ template syntax.

For HEEx support, see tree-sitter-heex.

Features

Parsing support for the following nodes:

  • Tags
  • Components
  • Blocks
  • Directives
  • Expressions
  • Attributes
  • Text
  • Comments

Queries

  • Highlights
  • Folds
  • Indents
  • Injections

Currently supported in NeoVim via nvim-treesitter.