Created
July 4, 2021 18:04
-
-
Save glinesbdev/61f55f7fddda21fc8523257904c806ca to your computer and use it in GitHub Desktop.
Fennel formatting -- off?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(where ident (not (identifier? ident))) (if (keyword? str-token) | |
(parsers.next text pos col 1 | |
line tokens | |
str-token | |
types.keyword) | |
(string.find str-token "^:%w*") | |
;; Match a "string" identifier i.e. :hello | |
(parsers.next text pos col 1 | |
line tokens | |
str-token | |
types.str) | |
(parsers.next text pos col 1 | |
line tokens | |
str-token | |
types.ident)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment