Skip to content

Commit

Permalink
Support cmake filetype
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Aug 30, 2024
1 parent 96d7952 commit 611920f
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions UltiSnips/cmake.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
priority -50

snippet if "if" b
if($1)
$2
endif()
endsnippet

snippet ife "if / else" b
if($1)
$2
else()
$3
endif()
endsnippet

snippet ifee "if / elseif / else" b
if($1)
$2
elseif($3)
$4
else()
$5
endif()
endsnippet

snippet for "foreach" b
foreach($1 ${$2})
$3
endforeach()
endsnippet

snippet while "while" b
while($1)
$2
endwhile()
endsnippet

snippet macro "macro" b
macro($1)
$2
endmacro()
endsnippet

snippet function "function" b
function($1)
$2
endfunction()
endsnippet

0 comments on commit 611920f

Please sign in to comment.