Skip to content

Standard ML (SML) major mode for Emacs using tree-sitter

License

Notifications You must be signed in to change notification settings

nverno/sml-ts-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SML major mode using tree-sitter

License: GPL v3

This mode provides the following features for Standard ML (SML) buffers:

  • Indentation
  • Font-locking
  • Imenu
  • Structural navigation

example

Installing

Emacs 29.1 or above with tree-sitter support is required.

This package requires the SML tree-sitter grammar from https://github.com/MatthewFluet/tree-sitter-sml. It won't work with other parsers!

Installing the SML parser

Add the source to treesit-language-source-alist.

(add-to-list
 'treesit-language-source-alist
 '(sml "https://github.com/MatthewFluet/tree-sitter-sml"))

Then run M-x treesit-install-language-grammar and select sml to install.

About

Standard ML (SML) major mode for Emacs using tree-sitter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published