ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Fennel

by gbaptista ST3

Fennel Language Support for Sublime Text 3 & 4

Details

Installs

  • Total 226
  • Win 83
  • Mac 71
  • Linux 72
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

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.