From e3ba7f7d56d9f19bfcaaa5c42b57e7cc9f22ce6d Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 22 Oct 2019 11:12:10 +0200 Subject: [PATCH] rc swift: Remove highlighting of non-standard comments Highlighting arbitrary words in Swift comments should be done from the user configuration, plus hardcoding the `red` color doesn't play well with all colorschemes. --- rc/filetype/swift.kak | 1 - 1 file changed, 1 deletion(-) diff --git a/rc/filetype/swift.kak b/rc/filetype/swift.kak index e1f6d9af..c3f12d95 100644 --- a/rc/filetype/swift.kak +++ b/rc/filetype/swift.kak @@ -21,7 +21,6 @@ add-highlighter shared/swift/comment region /\* \*/ group add-highlighter shared/swift/line_comment region // $ ref swift/comment add-highlighter shared/swift/comment/ fill comment -add-highlighter shared/swift/comment/ regex "\b(TODO|XXX|MARK)\b" 0:red add-highlighter shared/swift/code/ regex %{\b(true|false|nil)\b|\b-?(?!\$)\d+[fdiu]?|'((\\.)?|[^'\\])'} 0:value add-highlighter shared/swift/code/ regex "\b(let|var|while|in|for|if|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