Skip to content

gbaptista/sublime-text-fennel

Repository files navigation

Fennel Support for Sublime Text 3 & 4 Syntax Tests

"Fennel is a programming language that brings together the speed, simplicity, and reach of Lua with the flexibility of a lisp syntax and macro system." fennel-lang.org

Heavily tested against Fennel 1.3.0 and Lua 5.4.4 specifications.

Screenshot of a Fennel code highlighted.

Installing

  • Install Package Control
  • ctrl + shift + p
    • Package Control: Install Package
    • Fennel

Completions

One hundred ninety-nine completions are available for Fennel 1.3.0 and Lua 5.4.4.

Fennel Completions

Screenshot of a Fennel code with a completions list.

Lua Completions

Screenshot of a Fennel code with a completions list.

Snippets

14 snippets are available:

  • fn lambda λ
  • and or not
  • -> ->> -?> -?>>
  • while do if do while

Screenshot of a Fennel code highlighted.

References

Development

Uninstall your current Fennel package.

Clone the repository inside Packages/Fennel (symbolic link doesn't work):

git clone \
  https://github.com/gbaptista/sublime-text-fennel.git \
  /home/me/.config/sublime-text/Packages/Fennel

Check the files under tests/ and:

ctrl + shift + p:

  • Build With: Syntax Tests
  • Build With: Syntax Tests - Performance
  • Build With: Syntax Tests - All Syntaxes
  • Build With: Syntax Tests - Regex Compatibility

To debug the current scope of a character: ctrl + alt + shift + p

The project Sublime Text Colors may be helpful.

Screenshots

Material Theme Darker Screenshots

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Monokai Screenshots

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Solarized (Light) Screenshots

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Completions Screenshots

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Snippets Screenshots

Screenshot of a Fennel code highlighted.

Screenshot of a Fennel code highlighted.

Acknowledgments

The Clojure Package inspired this package.