From ba0845cce8e9dbd72933b154e43b7f540f35f84d Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Tue, 19 May 2020 14:58:14 +0200 Subject: [PATCH] detect // as a comment too In Citus we run the spec files through the C preprocesser, so we use // as comments instead of # now. --- syntax/pgspec.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/syntax/pgspec.vim b/syntax/pgspec.vim index dd676db..2ab4e03 100644 --- a/syntax/pgspec.vim +++ b/syntax/pgspec.vim @@ -2,6 +2,7 @@ syntax include @sql syntax/sql.vim syntax keyword specKeyword setup teardown session step permutation syntax match specComment /^\#.*/ +syntax match specComment /\/\/.*/ syntax region specString start=/"/ skip=/\\./ end=/"/ syntax region specSQL start=/{/ end=/}/ contains=@sql