@@ -130,16 +130,16 @@ export async function exists(
130
130
* **{feature}** argument is a feature name like "nvim-0.2.1" or
131
131
* "win32", see below. See also `exists()`.
132
132
*
133
- * To get the system name use `vim.loop `.os_uname() in Lua:
133
+ * To get the system name use `vim.uv `.os_uname() in Lua:
134
134
*
135
- * :lua print(vim.loop .os_uname().sysname)
135
+ * print(vim.uv .os_uname().sysname)
136
136
*
137
137
* If the code has a syntax error then Vimscript may skip the
138
138
* rest of the line. Put `:if` and `:endif` on separate lines to
139
139
* avoid the syntax error:
140
140
*
141
141
* if has('feature')
142
- * let x = this->breaks->without->the->feature
142
+ * let x = this_breaks_without_the_feature()
143
143
* endif
144
144
*
145
145
* Vim's compile-time feature-names (prefixed with "+") are not
@@ -150,12 +150,16 @@ export async function exists(
150
150
* 1. Nvim version. For example the "nvim-0.2.1" feature means
151
151
* that Nvim is version 0.2.1 or later:
152
152
*
153
- * :if has("nvim-0.2.1")
153
+ * if has("nvim-0.2.1")
154
+ * " ...
155
+ * endif
154
156
*
155
157
* 2. Runtime condition or other pseudo-feature. For example the
156
158
* "win32" feature checks if the current system is Windows:
157
159
*
158
- * :if has("win32")
160
+ * if has("win32")
161
+ * " ...
162
+ * endif
159
163
*
160
164
* List of supported pseudo-feature names:
161
165
* acl `ACL` support.
@@ -182,12 +186,16 @@ export async function exists(
182
186
* 3. Vim patch. For example the "patch123" feature means that
183
187
* Vim patch 123 at the current `v:version` was included:
184
188
*
185
- * :if v:version > 602 || v:version == 602 && has("patch148")
189
+ * if v:version > 602 || v:version == 602 && has("patch148")
190
+ * " ...
191
+ * endif
186
192
*
187
193
* 4. Vim version. For example the "patch-7.4.237" feature means
188
194
* that Nvim is Vim-compatible to version 7.4.237 or later.
189
195
*
190
- * :if has("patch-7.4.237")
196
+ * if has("patch-7.4.237")
197
+ * " ...
198
+ * endif
191
199
*/
192
200
export async function has (
193
201
denops : Denops ,
0 commit comments