From eddad899157294dc1a7fdd4d333ff9f71b6b361a Mon Sep 17 00:00:00 2001 From: Jimmy Thrasher Date: Tue, 2 Dec 2014 11:44:02 -0500 Subject: [PATCH] Support @"" style strings for Obj-C syntax highlighting --- rc/c-family.kak | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rc/c-family.kak b/rc/c-family.kak index 25f848334..27240a863 100644 --- a/rc/c-family.kak +++ b/rc/c-family.kak @@ -50,9 +50,15 @@ def -hidden _c-family-indent-on-closing-curly-brace %[ # Regions definition are the same between c++ and objective-c %sh{ for ft in cpp objc; do + if [ "${ft}" = "objc" ]; then + maybe_at='@?' + else + maybe_at='' + fi + printf '%s' ' addhl -group / regions -default code FT \ - string %{(?