- Fixed documentation.
This commit is contained in:
parent
de31e2cf6c
commit
fafe9cbc75
@ -326,7 +326,6 @@ Example:
|
|||||||
if ${1:condition}
|
if ${1:condition}
|
||||||
${2}
|
${2}
|
||||||
endif
|
endif
|
||||||
<
|
|
||||||
|
|
||||||
The snippet syntax is close to the one of |snipMate|. Each snippet starts with
|
The snippet syntax is close to the one of |snipMate|. Each snippet starts with
|
||||||
some keywords that define the name and modify the expansion and treatment of
|
some keywords that define the name and modify the expansion and treatment of
|
||||||
@ -367,7 +366,14 @@ Snippet Keywords:
|
|||||||
>
|
>
|
||||||
regexp '^% '
|
regexp '^% '
|
||||||
<
|
<
|
||||||
|
This snippet works same as "options head".
|
||||||
|
>
|
||||||
|
snippet if
|
||||||
|
regexp '^\S*'
|
||||||
|
if ${1:condition}
|
||||||
|
${2}
|
||||||
|
endif
|
||||||
|
<
|
||||||
- options [options] (Optional)
|
- options [options] (Optional)
|
||||||
|
|
||||||
Options influence the snippet behavior. The possible values are:
|
Options influence the snippet behavior. The possible values are:
|
||||||
@ -377,9 +383,9 @@ Snippet Keywords:
|
|||||||
be a word character (digits, alphabetical characters or "_").
|
be a word character (digits, alphabetical characters or "_").
|
||||||
|
|
||||||
>
|
>
|
||||||
snippet date
|
snippet date
|
||||||
options word
|
options word
|
||||||
`strftime("%d %b %Y")`
|
`strftime("%d %b %Y")`
|
||||||
<
|
<
|
||||||
|
|
||||||
+ head This snippet expands at the beginning of a line only.
|
+ head This snippet expands at the beginning of a line only.
|
||||||
@ -387,11 +393,11 @@ Snippet Keywords:
|
|||||||
there for backwards compatibility.
|
there for backwards compatibility.
|
||||||
|
|
||||||
>
|
>
|
||||||
snippet if
|
snippet if
|
||||||
options head
|
options head
|
||||||
if ${1:condition}
|
if ${1:condition}
|
||||||
${2}
|
${2}
|
||||||
endif
|
endif
|
||||||
<
|
<
|
||||||
|
|
||||||
+ indent The horizontal position of the snippet will be adjusted
|
+ indent The horizontal position of the snippet will be adjusted
|
||||||
@ -492,8 +498,8 @@ The structure of a placeholder can be:
|
|||||||
>
|
>
|
||||||
snippet namespace
|
snippet namespace
|
||||||
namespace ${1:name} {
|
namespace ${1:name} {
|
||||||
${0}
|
${0}
|
||||||
} // namespace $1
|
} // namespace $1
|
||||||
<
|
<
|
||||||
|
|
||||||
Note: If you like to include characters in snippets that already have
|
Note: If you like to include characters in snippets that already have
|
||||||
|
Loading…
Reference in New Issue
Block a user