Skip to content

Commit

Permalink
Added Clojure language files
Browse files Browse the repository at this point in the history
  • Loading branch information
mberndtgen committed Mar 21, 2015
1 parent c545610 commit 9862ba1
Show file tree
Hide file tree
Showing 6 changed files with 663 additions and 0 deletions.
21 changes: 21 additions & 0 deletions langs/clojure/clojure.txt
@@ -0,0 +1,21 @@
### CLOJURE LANGUAGE ###

# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION

NAME Clojure
VERSION 1.0

COMMENT (;.*?$)|(;\|.*?\|;)
STRING (?<!\\)".*?(?<!\\)"

STATEMENT \b(?alt:statement.txt)\b
SPECIAL \b(?alt:special.txt)\b
TYPE \b(?alt:type.txt)\b
HOF \b(?alt:hof.txt)\b
VAR \b(?alt:vars.txt)\b
KEYWORD (?<=\()\s*[a-z-]*[a-z]\b

IDENTIFIER [a-z-]*[a-z]
CONSTANT (?default)
OPERATOR (?default)|\(|\)
SYMBOL (?default)
8 changes: 8 additions & 0 deletions langs/clojure/hof.txt
@@ -0,0 +1,8 @@
not-every?
not-any?
filter
reduce
every?
some
map
for
18 changes: 18 additions & 0 deletions langs/clojure/special.txt
@@ -0,0 +1,18 @@
defrecord
defmacro
quote
throw
recur
defn
when
cond
loop
try
def
not
and
let
if
or
do
fn

0 comments on commit 9862ba1

Please sign in to comment.