diff --git a/conditional/cond.sublime-snippet b/conditional/cond.sublime-snippet new file mode 100644 index 0000000..eab4efb --- /dev/null +++ b/conditional/cond.sublime-snippet @@ -0,0 +1,8 @@ + + Conditional operator + + cond + source.c, source.objc, source.c++, source.objc++ + diff --git a/reference.md b/reference.md index a46b7d4..16fc672 100644 --- a/reference.md +++ b/reference.md @@ -161,6 +161,12 @@ else { } ``` +**Trigger**: cond + +```cpp +$1 ? $2 : $3; +``` + ## Preprocessor **Trigger**: ifnd