mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-28 18:00:23 +09:00
Legacy syntax overhaul 2 (#577)
* Added title setting (Requires tcell pull!) and optimized tab display. * Added Clojure highlighting. * Changed tcell call to screen. * Fixed bad reference for getting Buffer name. * Yet another massive syntax overhaul * Tweaking and testing web syntax * More webdev goodies * Added html5 highlighting and strict html4 highlighting. * Documentation update
This commit is contained in:
committed by
Zachary Yedidia
parent
ab74e56a40
commit
d949b58fc0
29
runtime/syntax/clojure.micro
Normal file
29
runtime/syntax/clojure.micro
Normal file
@@ -0,0 +1,29 @@
|
||||
#Syntax highlighting for Clojure
|
||||
syntax "clojure" "\.(clj)$"
|
||||
|
||||
#Constants
|
||||
color constant ""
|
||||
color constant.bool "\b(true|false)\b"
|
||||
color constant.macro "\b(nil)\b"
|
||||
#Valid numbers
|
||||
color constant.number "[\-]?[0-9]+?\b"
|
||||
color constant.number "0x[0-9][A-Fa-f]+?\b"
|
||||
color constant.number "[\-]?(3[0-6]|2[0-9]|1[0-9]|[2-9])r[0-9A-Z]+?\b"
|
||||
#Invalid numbers
|
||||
color error "[\-]?([4-9][0-9]|3[7-9]|1|0)r[0-9A-Z]+?\b"
|
||||
|
||||
#Symbols
|
||||
color symbol.operator "[=>+\-*/'?]"
|
||||
|
||||
#Types/casting
|
||||
color type "\b(byte|short|(big)?int(eger)?|long|float|num|bigdec|rationalize)\b"
|
||||
|
||||
#Bitwise operations
|
||||
color special ""
|
||||
|
||||
#String highlighting
|
||||
color constant.string ""
|
||||
color constant.specialChar "(\\u[0-9A-fa-f]{4,4}|\\newline|\\space|\\tab|\\formfeed|\\backspace|\\return|\\.)"
|
||||
|
||||
#Comments
|
||||
color comment ";.*$"
|
||||
Reference in New Issue
Block a user