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 189
  • Win 71
  • Mac 56
  • Linux 62
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 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 1 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 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
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 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.