GithubHelp home page GithubHelp logo

perigord-kleisli / tree-sitter-pyf Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 39 KB

tree-sitter grammars for the PyF Haskell library https://hackage.haskell.org/package/PyF

License: MIT License

Nix 1.82% JavaScript 3.26% Scheme 1.34% Haskell 0.58% C 93.00%

tree-sitter-pyf's Introduction

tree-sitter-pyf

A grammar for the PyF QuasiQuote.

Do note that this is very rudimentary and was made mostly for learning Tree-Sitter.

Example Highlights

Screenshot of the treesitter with syntax highlighting

Installation

Place this somewhere in your config and run :TSInstall pyf

local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.pyf = {
    install_info = {
            url = "https://github.com/Perigord-Kleisli/tree-sitter-pyf.git", 
            files = {"src/parser.c", "src/scanner.c"},
            branch = "main",
        },
    filetype = "pyf",
}

For the highlighting and injections, copy queries to the first path in :lua =vim.api.nvim_list_runtime_paths() (most likely ~/.config/nvim). If the files in queries/ already exist, instead append the contents to your already defined queries.

tree-sitter-pyf's People

Contributors

perigord-kleisli avatar

Watchers

 avatar

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.