Giter Site home page Giter Site logo

kolen / tree-sitter-slim Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 1.0 228 KB

Slim template language grammar for tree-sitter

License: MIT License

JavaScript 44.54% Scheme 3.36% C 52.10%
slim-template syntax-highlighting tree-sitter tree-sitter-grammar tree-sitter-parser

tree-sitter-slim's Introduction

tree-sitter-slim

Slim template grammar for tree-sitter.

Alpha-stage, parses most cases, but syntax tree structure isn't stabilized yet, prone to changes.

Limitations

Slim is highly configurable and some of configuration parameters change syntax. Tree-sitter does not support dynamically generated syntax, so this grammar is not configurable. It should work for default settings and some subset of customized settings.

  • tabsize: always 4, should work with other values if you don't mix spaces and tabs in the same file
  • encoding: always utf-8 (some unicode features don't work yet)
  • shortcut: some of shortcuts work TODO: describe
  • code_attr_delims: only default is supported, () [] {}
  • attr_list_delims: only default is supported, () [] {}
  • enable_engines: TODO
  • disable_engines: TODO
  • splat_prefix: only default is supported, *

Grammar references

tree-sitter-slim's People

Contributors

kolen avatar calmyournerves avatar

Stargazers

Alexandru Ungur avatar  avatar Theodor Tonum avatar Maksatbek avatar Bob Maerten avatar Pasha Dashkovskii avatar Gustavo Chen avatar

Watchers

 avatar José Gonçalves avatar Richard McGain avatar  avatar  avatar

Forkers

calmyournerves

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.