Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/connorlay/tree-sitter-surface

Surface grammar for Tree-sitter
https://github.com/connorlay/tree-sitter-surface

elixir neovim parser tree-sitter

Last synced: 20 days ago
JSON representation

Surface grammar for Tree-sitter

Awesome Lists containing this project

README

        

# Tree-sitter Surface

[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar and parser for [Surface](https://surface-ui.org), the server-side rendering component library for [Phoenix](https://www.phoenixframework.org/).

Supports the Surface 0.5+ template syntax.

For HEEx support, see [tree-sitter-heex](https://github.com/connorlay/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](https://github.com/nvim-treesitter/nvim-treesitter).