mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
vim-cmake-syntax 2018-10-18 (64ff4bd7)
Code extracted from:
https://github.com/pboettch/vim-cmake-syntax.git
at commit 64ff4bd793c247da5a1772fffad91378dddf03b9 (master).
Upstream Shortlog
-----------------
Patrick Boettcher (1):
64ff4bd7 break line after each high-lighting keyword
This commit is contained in:
committed by
Brad King
parent
456d96f0d5
commit
c9493939ea
@@ -103,25 +103,25 @@ while(<IN>)
|
||||
my @tmp = grep { ! exists $conditional{$_} and
|
||||
! exists $loop{$_} and
|
||||
! exists $deprecated{$_} } @commands;
|
||||
print OUT " " x 12 , "\\ ", join(" ", @tmp), "\n";
|
||||
print_list(\*OUT, @tmp);
|
||||
} elsif ($1 eq "VARIABLE_LIST") {
|
||||
print OUT " " x 12 , "\\ ", join(" ", sort keys %variables), "\n";
|
||||
print_list(\*OUT, keys %variables);
|
||||
} elsif ($1 eq "MODULES") {
|
||||
print OUT " " x 12 , "\\ ", join("\n", @modules), "\n";
|
||||
print_list(\*OUT, @modules);
|
||||
} elsif ($1 eq "GENERATOR_EXPRESSIONS") {
|
||||
print OUT " " x 12 , "\\ ", join(" ", @generator_expr), "\n";
|
||||
print_list(\*OUT, @generator_expr);
|
||||
} elsif ($1 eq "CONDITIONALS") {
|
||||
print OUT " " x 12 , "\\ ", join(" ", sort keys %conditional), "\n";
|
||||
print_list(\*OUT, keys %conditional);
|
||||
} elsif ($1 eq "LOOPS") {
|
||||
print OUT " " x 12 , "\\ ", join(" ", sort keys %loop), "\n";
|
||||
print_list(\*OUT, keys %loop);
|
||||
} elsif ($1 eq "DEPRECATED") {
|
||||
print OUT " " x 12 , "\\ ", join(" ", sort keys %deprecated), "\n";
|
||||
print_list(\*OUT, keys %deprecated);
|
||||
} elsif ($1 eq "PROPERTIES") {
|
||||
print OUT " " x 12 , "\\ ", join(" ", sort keys %properties), "\n";
|
||||
print_list(\*OUT, keys %properties);
|
||||
} elsif ($1 eq "KEYWORDS") {
|
||||
foreach my $k (sort keys %keywords) {
|
||||
print OUT "syn keyword cmakeKW$k contained\n";
|
||||
print OUT " " x 12, "\\ ", join(" ", @{$keywords{$k}}), "\n";
|
||||
print_list(\*OUT, @{$keywords{$k}});
|
||||
print OUT "\n";
|
||||
push @keyword_hi, "hi def link cmakeKW$k ModeMsg";
|
||||
}
|
||||
@@ -164,3 +164,10 @@ sub extract_upper
|
||||
|
||||
return @word;
|
||||
}
|
||||
|
||||
sub print_list
|
||||
{
|
||||
my $O = shift;
|
||||
my $indent = " " x 12 . "\\ ";
|
||||
print $O $indent, join("\n" . $indent, sort @_), "\n";
|
||||
}
|
||||
|
||||
2229
syntax/cmake.vim
2229
syntax/cmake.vim
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user