From 255345bf9525c94479a7ff9b787d2f9848cb7a18 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 6 Sep 2020 19:25:34 +0200 Subject: Remove stephpy/vim-yaml syntax It causes issues: - https://github.com/dracula/vim/pull/163 - https://github.com/stephpy/vim-yaml/issues/22 --- after/ftplugin/yaml.vim | 11 --------- after/syntax/yaml.vim | 65 ------------------------------------------------- 2 files changed, 76 deletions(-) delete mode 100644 after/ftplugin/yaml.vim delete mode 100644 after/syntax/yaml.vim (limited to 'after') diff --git a/after/ftplugin/yaml.vim b/after/ftplugin/yaml.vim deleted file mode 100644 index 69785fc2..00000000 --- a/after/ftplugin/yaml.vim +++ /dev/null @@ -1,11 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml-extras') == -1 - -" Vim indent file -" Language: Yaml -" Author: Henrique Barcelos -" Date: 2014-10-08 -" URL: https://github.com/hjpbarcelos -setlocal autoindent sw=2 ts=2 expandtab -" vim:set sw=2: - -endif diff --git a/after/syntax/yaml.vim b/after/syntax/yaml.vim deleted file mode 100644 index 3a1e89a2..00000000 --- a/after/syntax/yaml.vim +++ /dev/null @@ -1,65 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml-extras') == -1 - -" To make this file do stuff, add something like the following (without the -" leading ") to your ~/.vimrc: -" au BufNewFile,BufRead *.yaml,*.yml so ~/src/PyYaml/YAML.vim - -" Vim syntax/macro file -" Language: YAML -" Author: Igor Vergeichik -" Sponsor: Tom Sawyer -" Stayven: Ryan King -" Copyright (c) 2002 Tom Saywer - -" Add an item to a gangly list: -"map , o-o -" Convert to Canonical form: -"map \c :%!python -c 'from yaml.redump import redump; import sys; print redump(sys.stdin.read()).rstrip()' - -if version < 600 - syntax clear -endif -syntax clear - -syn match yamlInline "[\[\]\{\}]" -syn match yamlBlock "[>|]\d\?[+-]" - -syn region yamlComment start="\#" end="$" -syn match yamlIndicator "#YAML:\S\+" - -syn region yamlString start="\(^\|\s\|\[\|\,\|\-\)\@<='" end="'" skip="\\'" -syn region yamlString start='"' end='"' skip='\\"' contains=yamlEscape -syn region yamlString matchgroup=yamlBlock start=/[>|]\s*\n\+\z(\s\+\)\S/rs=s+1 skip=/^\%(\z1\S\|^$\)/ end=/^\z1\@!.*/me=s-1 -syn region yamlString matchgroup=yamlBlock start=/[>|]\(\d\|[+-]\)\s*\n\+\z(\s\+\)\S/rs=s+2 skip=/^\%(\z1\S\|^$\)/ end=/^\z1\@!.*/me=s-1 -syn region yamlString matchgroup=yamlBlock start=/[>|]\d\(\d\|[+-]\)\s*\n\+\z(\s\+\)\S/rs=s+3 skip=/^\%(\z1\S\|^$\)/ end=/^\z1\@!.*/me=s-1 -syn match yamlEscape +\\[abfnrtv'"\\]+ contained -syn match yamlEscape "\\\o\o\=\o\=" contained -syn match yamlEscape "\\x\x\+" contained - -syn match yamlType "!\S\+" - -syn keyword yamlConstant NULL Null null NONE None none NIL Nil nil -syn keyword yamlConstant TRUE True true YES Yes yes ON On on -syn keyword yamlConstant FALSE False false NO No no OFF Off off - -syn match yamlKey "^\s*\zs[^ \t\"\'#]\+\ze\s*:" - syn match yamlKey "^\s*-\s*\zs[^ \t\"\'#]\+\ze\s*:" -syn match yamlAnchor "&\S\+" -syn match yamlAlias "*\S\+" - -" Setup the highlighting links - -hi link yamlConstant Keyword -hi link yamlIndicator PreCondit -hi link yamlAnchor Function -hi link yamlAlias Function -hi link yamlKey Identifier -hi link yamlType Type - -hi link yamlComment Comment -hi link yamlInline Operator -hi link yamlBlock Operator -hi link yamlString String -hi link yamlEscape Special - -endif -- cgit v1.2.3