Mercurial > vim
annotate runtime/ftplugin/sass.vim @ 25929:51a1ff50bd24 v8.2.3498
patch 8.2.3498: recover test may fail on some systems
Commit: https://github.com/vim/vim/commit/37f341d7236ff8a1e886bbb0f0ba0700ad589373
Author: James McCoy <jamessan@jamessan.com>
Date: Mon Oct 11 21:04:37 2021 +0100
patch 8.2.3498: recover test may fail on some systems
Problem: Recover test may fail on some systems.
Solution: Adjust the little endian and 64 bit detection. (James McCoy,
closes #8941)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 11 Oct 2021 22:15:03 +0200 |
parents | 5c40013d45ee |
children | 92fd65eac53a |
rev | line source |
---|---|
1668 | 1 " Vim filetype plugin |
2415 | 2 " Language: Sass |
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | |
18818 | 4 " Last Change: 2019 Dec 05 |
1668 | 5 |
6 " Only do this when not done yet for this buffer | |
7 if exists("b:did_ftplugin") | |
8 finish | |
9 endif | |
10 let b:did_ftplugin = 1 | |
11 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2415
diff
changeset
|
12 let b:undo_ftplugin = "setl com< cms< def< inc< inex< ofu< sua<" |
1668 | 13 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2415
diff
changeset
|
14 setlocal comments=:// |
1668 | 15 setlocal commentstring=//\ %s |
18818 | 16 setlocal includeexpr=SassIncludeExpr(v:fname) |
1668 | 17 setlocal omnifunc=csscomplete#CompleteCSS |
2415 | 18 setlocal suffixesadd=.sass,.scss,.css |
18818 | 19 if &filetype =~# '\<s[ac]ss]\>' |
20 setlocal iskeyword+=- | |
21 setlocal iskeyword+=$ | |
22 setlocal iskeyword+=% | |
23 let b:undo_ftplugin .= ' isk<' | |
24 endif | |
1668 | 25 |
18818 | 26 let &l:define = '^\C\v\s*%(\@function|\@mixin|\=)|^\s*%(\$[[:alnum:]-]+:|[%.][:alnum:]-]+\s*%(\{|$))@=' |
2415 | 27 let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\=' |
1668 | 28 |
18818 | 29 function! SassIncludeExpr(file) abort |
30 let partial = substitute(a:file, '\%(.*/\|^\)\zs', '_', '') | |
31 if !empty(findfile(partial)) | |
32 return partial | |
33 endif | |
34 return a:file | |
35 endfunction | |
36 | |
1668 | 37 " vim:set sw=2: |