Skip to content

mimmanuel/tree-sitter-matlab

 
 

Repository files navigation

tree-sitter-matlab

Installing the parser

Neovim

Using a simple function from treesitter

local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.matlab = {
  install_info = {
    url = <path_to_repo>,
    files = { "src/parser.c" },
    branch= 'main'
  },
  filetype = "matlab", -- if filetype does not agrees with parser name
}

In our case <path_to_repo> is https://github.com/mstanciu552/tree-sitter-matlab.git

TODO

  • Basic grammar
  • Add support for variable definition
  • Add support for array and matrix definitions
  • Add syntax highlighting
  • Add function call definition
  • Add support for comments
  • Add numbers in identifier definition
  • Check out class definitions in Matlab

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 88.5%
  • Makefile 7.9%
  • JavaScript 2.1%
  • Rust 0.8%
  • Scheme 0.4%
  • C++ 0.2%
  • Other 0.1%