mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 18:37:02 +10:00
docs: deprecate <sfile>
This commit is contained in:
@@ -511,7 +511,7 @@ syntax file. The ":syntax include" command reads in a syntax file and stores
|
||||
the elements it defined in a syntax cluster. For Perl, the statements are as
|
||||
follows: >
|
||||
|
||||
:syntax include @Pod <sfile>:p:h/pod.vim
|
||||
:syntax include @Pod <script>:p:h/pod.vim
|
||||
:syntax region perlPOD start=/^=head/ end=/^=cut/ contains=@Pod
|
||||
|
||||
When "=head" is found in a Perl file, the perlPOD region starts. In this
|
||||
@@ -522,7 +522,7 @@ region ends and we go back to the items defined in the Perl file.
|
||||
command in the included file. And an argument such as "contains=ALL" will
|
||||
only contain items defined in the included file, not in the file that includes
|
||||
it.
|
||||
The "<sfile>:p:h/" part uses the name of the current file (<sfile>),
|
||||
The "<script>:p:h/" part uses the name of the current file (<script>),
|
||||
expands it to a full path (:p) and then takes the head (:h). This results in
|
||||
the directory name of the file. This causes the pod.vim file in the same
|
||||
directory to be included.
|
||||
|
||||
Reference in New Issue
Block a user