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: 11 months ago
JSON representation
Surface grammar for Tree-sitter
- Host: GitHub
- URL: https://github.com/connorlay/tree-sitter-surface
- Owner: connorlay
- Created: 2021-07-12T15:33:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-19T13:32:15.000Z (almost 3 years ago)
- Last Synced: 2025-03-07T02:00:02.536Z (11 months ago)
- Topics: elixir, neovim, parser, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 19
- Watchers: 0
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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).