mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-07 23:50:18 +09:00
* 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
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
##############################################################################
|
|
# Swift syntax highlighting for Micro.
|
|
##############################################################################
|
|
|
|
syntax "swift" "\.swift$"
|
|
|
|
# Operators
|
|
color symbol.operator "[.:;,+*|=!?\%]" "<" ">" "/" "-" "&"
|
|
|
|
# Statements
|
|
color statement "(class|import|let|var|struct|enum|func|if|else|switch|case|default|for|in|internal|external|unowned|private|public|throws)\ "
|
|
color statement "(prefix|postfix|operator|extension|lazy|get|set|self|willSet|didSet|override|super|convenience|weak|strong|mutating|return|guard)\ "
|
|
|
|
# Keywords
|
|
color preproc "(print)"
|
|
color preproc "(init)"
|
|
|
|
# Numbers
|
|
color constant.number "([0-9]+)"
|
|
|
|
# Standard Types
|
|
color type "\ ((U)?Int(8|16|32|64))"
|
|
color constant.bool "(true|false|nil)"
|
|
color type "\ (Double|String|Float|Boolean|Dictionary|Array|Int)"
|
|
color type "\ (AnyObject)"
|
|
|
|
# Text
|
|
color constant.string ""[^"]*""
|
|
|
|
# Comments
|
|
color comment "//.*"
|
|
color comment "///.*"
|
|
color comment start="/\*\*" end="\*/"
|
|
color comment "[/**]"
|