Files
zyedidia.micro/runtime/syntax/swift.micro
CaptainMcClellan c29e58e3d4 Syntax Highlight Overhaul (#568)
* Adds new syntax groups and docs
* Large refactor of syntax highlighting files

* Changed keybindings for changing tabs.

* Improved the documentation.

* Added F3 for find to default bindings.

* Massive overhaul of the syntax files

* Phase 1 color-scheme updates.

* The new colorschemes.

* Colorscheme and syntax updates.

* Tiny fix to the cmc theme.

* Another phase of colorschemes and testing gitconfig.

* Fixed haskell error

* Fortran fix

* Delete test.txt

Heh, sorry about forgetting to do this again.
2017-03-01 09:30:35 -05:00

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 statement "(print)"
color statement "(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 "[/**]"