Skip to content

Instantly share code, notes, and snippets.

@glinesbdev
Created July 4, 2021 18:04
Show Gist options
  • Save glinesbdev/61f55f7fddda21fc8523257904c806ca to your computer and use it in GitHub Desktop.
Save glinesbdev/61f55f7fddda21fc8523257904c806ca to your computer and use it in GitHub Desktop.
Fennel formatting -- off?
(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