Skip to content

whizzml/whizzml-sublime

Repository files navigation

WhizzML for Sublime Text 3

BigML's DSL for Machine Learning WhizzML syntax highlighting, autocompletions, and settings for Sublime Text.

WhizzML-Sublime

Instalation

Using Package Control

Install it through Package Control: Install Package > WhizzML. Open Command Palette panel from Tools > Command Palette (cmd+shift+P).

Manually

Copy WhizzML.sublime-syntax, WhizzML.sublime-completions, and WhizzML.sublime-settings or clone this repository inside the User directory in Sublime Text's Packages directory.

Features

  • Syntax highlighting
  • Autocomplete
  • Syntax settings (auto-indent, tab size, etc.)
  • Future Snippets
  • Future Code linter

Development

Copy WhizzML.sublime-syntax, WhizzML.sublime-completions, and WhizzML.sublime-settings into <path-to-sublime-installation>/Packages/User (~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User in Mac). Modify the desired definitions. When you're done make sure that tests on syntax highlighting pass using the test file syntax_test.whizzml. Open it and using Command Palette panel run the command "Build With: Syntax Tests - All Syntaxes".

Dev resources

A way to get the list of WhizzML reserved names used to build the syntax and completions rules is to run the following commands in the DevTools JS console of the Web WhizzML REPL.

privatePrefixRegex = /^bigml/;
whizzml.user.reserved_names().filter(function(p) {
    return !privatePrefixRegex.test(p);
}).join('\n')

Current WhizzML Version supported

0.35.0 (08-29-2019)