amber-lang / amber

💎 Amber the programming language compiled to Bash
https://amber-lang.com
GNU General Public License v3.0
3.86k stars 83 forks source link

[Feature] Neovim syntax highlighting support #194

Open Heus-Sueh opened 3 months ago

Heus-Sueh commented 3 months ago

https://github.com/nvim-treesitter/nvim-treesitter

Ph0enixKM commented 3 months ago

This requires a tree-sitter parser to be created. I've already created a minimal tree-sitter parser but didn't have time to polish it out

Mte90 commented 3 months ago

@Ph0enixKM can you share that parser? In what language is written?

Ph0enixKM commented 3 months ago

@Ph0enixKM can you share that parser? In what language is written?

Tree sitter is written in JavaScript, but when you run tree-sitter generate then it will create a corresponding c code and then it will be compiled. The only problem is that it doesn't work totally. I'll create a repo for it

Mte90 commented 1 month ago

For vim exists https://github.com/gbhorwood/amber.vim so also for neovim but isn't treesitter just a syntax file