xref: /Universal-ctags/docs/parser-vim.rst (revision bb84f88a985e0b87fe4313a43b215269a119c4d1)
109ca50a9SMasatake YAMATO.. _vim:
209ca50a9SMasatake YAMATO
309ca50a9SMasatake YAMATO======================================================================
409ca50a9SMasatake YAMATOThe Vim parser
509ca50a9SMasatake YAMATO======================================================================
609ca50a9SMasatake YAMATO
709ca50a9SMasatake YAMATOIncompatible change
809ca50a9SMasatake YAMATO---------------------------------------------------------------------
909ca50a9SMasatake YAMATO
10f8958684SMasatake YAMATOQuoted from ``:help script-variable`` in the Vim documentation::
1109ca50a9SMasatake YAMATO
1209ca50a9SMasatake YAMATO			    *script-variable* *s:var*
13ef3f4dd3SDoug Kearns    In a Vim script variables starting with "s:" can be used. They
14ef3f4dd3SDoug Kearns    cannot be accessed from outside of the scripts, thus are local to
15ef3f4dd3SDoug Kearns    the script.
1609ca50a9SMasatake YAMATO
17*bb84f88aSHiroo HAYASHIExuberant Ctags records the prefix `s:` as part of a script-local
18ef3f4dd3SDoug Kearnsvariable's name. However, it is omitted from function names. As
19dccba5efSHiroo HAYASHIrequested in issue #852 on GitHub, Universal Ctags now also includes
20ef3f4dd3SDoug Kearnsthe prefix in script-local function names.
21