Nova Scala provides syntax highlighting and autocompletion for the Scala language in the Nova Editor.
Follow the instructions at Nova Tree Sitter Reference to create a parser for the Scala syntax.
The steps are:
- Checkout the latest tag from the tree-sitter-scala library with the command
git checkout tags/v{latest} -b v{latest}in thetree-sitter-scaladirectory. - Run
tree-sitter generatein thetree-sitter-scaladirectory. - Download the Nova parser build tools from Nova Build Script and unzip to the root directory.
- Copy the
Makefileandcompile_parser.shfiles from the build scripts folder into thetree-sitter-scaladirectory. - Run
./compile_parser.sh . path/to/Nova.appfrom thetree-sitter-scaladirectory. - Copy the generated
libtree-sitter-scala.dylibfile intoscala.novaextension/Syntaxes/libtree-sitter-scala.dyliband replace the existing library.
In order for the extension to be published, the Tree Sitter Library needs to be signed.
From the root directory run
codesign -s - ./scala.novaextension/Syntaxes/libtree-sitter-scala.dylib