bakpakin / fennel.vim Goto Github PK
View Code? Open in Web Editor NEWSyntax highlighting for Fennel
Home Page: https://fennel-lang.org
License: MIT License
Syntax highlighting for Fennel
Home Page: https://fennel-lang.org
License: MIT License
Single-quoted strings aren't available in fennel (since they are used as a quoting character - 'quoted-symbol
), but they are still highlighted on this plugin's syntax.
Can you try pushing syntax, indent and ftdetect to vim?
Currently this plugin has:
setlocal iskeyword=!,$,%,#,*,+,-,.,/,:,<,=,>,?,_,a-z,A-Z,48-57,128-247,124,126,38,94
I don't think the .
or the :
should be in here, since they have special meaning on fennel, not being part of keyword symbols.
This ends up messsing with the word jumping mechanism:
(print some-table.some-field.some-sub-field)
;; ^ the cursor is here
;; upon pressing `w`:
(print some-table.some-field.some-sub-field)
;; the cursor is here ^
And also the completion mechanism:
(my-table.some_field)
(my-table:some_method)
(my-table+--------------------+ ;; I want my-table, some_field or some_method, not pairs of them!
|my-table.some_field |
|my-table:some_method|
+--------------------+
Should we review how if
, do
, and with-open
are indented?
Currently, they indent like this, if using two-space indentation:
(do (print "test")
(print "test2")
(print "test3"))
(with-open [file-out (io.open "test.txt" :w)]
(file-out:write data))
(if (some-function :test)
(another-function :test2)
(yet-another-function :test3))
If this is the intended behaviour, please ignore or close this! <3
It might be nice to have an abbreviation or something that autoexpanded to λ, though I don't know what would make sense.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.