mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 14:40:20 +09:00
Add converted syntax files
This commit is contained in:
19
runtime/syntax/clojure.yaml
Normal file
19
runtime/syntax/clojure.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
filetype: clojure
|
||||
|
||||
detect:
|
||||
filename: "\\.(clj)$"
|
||||
|
||||
rules:
|
||||
- constant: ""
|
||||
- constant.bool: "\\b(true|false)\\b"
|
||||
- constant.macro: "\\b(nil)\\b"
|
||||
- constant.number: "[\\-]?[0-9]+?\\b"
|
||||
- constant.number: "0x[0-9][A-Fa-f]+?\\b"
|
||||
- constant.number: "[\\-]?(3[0-6]|2[0-9]|1[0-9]|[2-9])r[0-9A-Z]+?\\b"
|
||||
- error: "[\\-]?([4-9][0-9]|3[7-9]|1|0)r[0-9A-Z]+?\\b"
|
||||
- symbol.operator: "[=>+\\-*/'?]"
|
||||
- type: "\\b(byte|short|(big)?int(eger)?|long|float|num|bigdec|rationalize)\\b"
|
||||
- special: ""
|
||||
- constant.string: ""
|
||||
- constant.specialChar: "(\\\\u[0-9A-fa-f]{4,4}|\\\\newline|\\\\space|\\\\tab|\\\\formfeed|\\\\backspace|\\\\return|\\\\.)"
|
||||
- comment: ";.*$"
|
||||
Reference in New Issue
Block a user