Skip to content

Commit

Permalink
Add Clojure (#1311)
Browse files Browse the repository at this point in the history
* Add Clojure

* Remove global flags

* Simplify comment match

* Update string regex

* Update keyword regex to use non-capturing group

* Update boolean regex to use non-capturing group

* Add intro to prism-clojure example HTML

* Remove duplicated comment test

* Fix thread-first macro highlight

Moved the thread-first macro (->) further up the group capture in order
to have it properly highlight...

* Add thread-last macro support

* Add `nil` to the boolean capture

I would like to rename the `boolean` group to something else as I don't
believe it is accurate now that `nil` is there.

* Update number regex to support hexidecimal

* Remove global from keyword object

* Add clojure.min

Forgot to compile with gulp in the last commit.  my bad.

* Resolve operator regex note in code review

* Add "nil" test

* Fix test error - (>=) (==) (<=)

* Add more tests to keywords

* Fix indentation

* Remove duplicate test

* Remove duplicates partner from tests

* Fix indentation?

* Fix indentation...

* Fix indentation!!
  • Loading branch information
athomasoriginal authored and Golmote committed Mar 2, 2018
1 parent 3bc3e9c commit 8b4d3bd
Show file tree
Hide file tree
Showing 9 changed files with 643 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ var components = {
"require": "javascript",
"owner": "R-osey"
},
"clojure": {
"title": "Clojure",
"owner": "troglotit"
},
"crystal": {
"title": "Crystal",
"require": "ruby",
Expand Down
13 changes: 13 additions & 0 deletions components/prism-clojure.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions components/prism-clojure.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8b4d3bd

Please sign in to comment.