annotate runtime/ftplugin/elm.vim @ 28403:2655935b5ccc v8.2.4726

patch 8.2.4726: cannot use expand() to get the script name Commit: https://github.com/vim/vim/commit/6013d0045dec7ca7c0068fbe186c42d754a7368b Author: LemonBoy <thatlemon@gmail.com> Date: Sat Apr 9 21:42:10 2022 +0100 patch 8.2.4726: cannot use expand() to get the script name Problem: Cannot use expand() to get the script name. Solution: Support expand('<script>'). (closes https://github.com/vim/vim/issues/10121)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Apr 2022 22:45:03 +0200
parents 661eb972cb22
children 4d76b3e07c07
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20753
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Elm filetype plugin file
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Elm
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Andreas Scharf <as@99n.de>
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Latest Revision: 2020-05-29
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("b:did_ftplugin")
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let b:did_ftplugin = 1
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 let s:cpo_save = &cpo
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 set cpo&vim
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 setlocal comments=s1fl:{-,mb:\ ,ex:-},:--
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 setlocal commentstring=--\ %s
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 let &cpo = s:cpo_save
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 unlet s:cpo_save