"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/clojure.lang" (12 May 2020, 1250 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "clojure.lang": 3.56_vs_3.57.

    1 
    2 Description="Clojure"
    3 
    4 -- Syntax file created by Pierre Larochelle
    5 
    6 Categories = {"source"}
    7 
    8 
    9 Identifiers=[[ [a-zA-Z_][\w\-\/]* ]]
   10 
   11 Keywords={
   12   { Id=1,
   13     List={"def", "defn", "defmacro", "fn", "defstruct", "defmulti", "defmethod", "remove-method"},
   14   },
   15   { Id=2,
   16     List={"for", "loop", "recur", "dotimes", "doseq"},
   17   },
   18   { Id=3,
   19     List={"case", "caselet", "check", "if", "let", "when", "whenlet", "unless"},
   20   },
   21   { Id=4,
   22     List={"first", "rest", "cons", "ffirst", "frest", "rrest", "second", "every?", "not-every?", "some", "not-any?", "concat", "map", "mapcat", "reducefilter", "take", "take-nth", "take-while", "drop", "nthrest", "drop-while", "reverse", "cycle", "interleave", "split-at", "split-with", "repeat", "replicate", "iterate", "range", "into", "distinct", "sort", "sort-by", "zipmap", "fnseq", "lazy-cons", "lazy-cat", "when-first"},
   23   },
   24 }
   25 
   26 Strings={
   27   Delimiter=[["]],
   28   Interpolation=[[ %s ]],
   29   Escape=[=[\\[\w]]=],
   30 }
   31 
   32 Comments={
   33   { Block=false,
   34     Delimiter= { [[;]] },
   35   },
   36   { Block=true,
   37     Nested=false,
   38     Delimiter= { [[\;\|]],[[\|\;]],}
   39   }
   40 }
   41 
   42 Operators=[[\(|\)|\[|\]|\{|\}|\,|\:|\&|<|>|\!|\+|\=|\/|\*|\'|\#|\%|\^|\.]]
   43 
   44 --FIXME no default escchar param: regex(\\\d{3}|\\x[[:xdigit:]]{2}|\\[ntvbrfa\\\?'"])