summaryrefslogtreecommitdiff
path: root/rc/filetype/swift.kak
diff options
context:
space:
mode:
authorhss <hristo.staykov@gmail.com>2021-05-13 04:49:17 -0400
committerhss <hristo.staykov@gmail.com>2021-05-13 23:44:22 -0400
commit92800c07ef336cf057315ae951674c791b1a9014 (patch)
tree2cdce6f93143d8ada017bb2ec54bad2fce01cb42 /rc/filetype/swift.kak
parentead12e11bdfc861c0f1decb9ff7e91582196fcfe (diff)
rc swift: highlight "extension" and "fileprivate" keywords
Diffstat (limited to 'rc/filetype/swift.kak')
-rw-r--r--rc/filetype/swift.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/swift.kak b/rc/filetype/swift.kak
index 4e7018c2..9dbdcc11 100644
--- a/rc/filetype/swift.kak
+++ b/rc/filetype/swift.kak
@@ -27,7 +27,7 @@ add-highlighter shared/swift/code/ regex %{\b(true|false|nil)\b|\b-?(?!\$)\d+[fd
add-highlighter shared/swift/code/ regex "\b(let|var|while|in|for|if|guard|else|do|switch|case|default|break|continue|return|try|catch|throw|new|delete|and|or|not|operator|explicit|func|import|return|init|deinit|get|set)\b" 0:keyword
add-highlighter shared/swift/code/ regex "\bas\b[!?]?" 0:keyword
add-highlighter shared/swift/code/ regex "(\$[0-9])\b" 0:keyword
-add-highlighter shared/swift/code/ regex "\b(const|mutable|auto|namespace|inline|static|volatile|class|struct|enum|union|public|protected|private|typedef|virtual|friend|extern|typename|override|final|required|convenience|dynamic)\b" 0:attribute
+add-highlighter shared/swift/code/ regex "\b(const|mutable|auto|namespace|inline|static|volatile|class|struct|enum|union|extension|public|protected|private|fileprivate|typedef|virtual|friend|extern|typename|override|final|required|convenience|dynamic)\b" 0:attribute
add-highlighter shared/swift/code/ regex "\b(self|nil|id|super)\b" 0:value
add-highlighter shared/swift/code/ regex "\b(Bool|String|UInt|UInt16|UInt32|UInt64|UInt8)\b" 0:type