summaryrefslogtreecommitdiffstats
path: root/after
diff options
context:
space:
mode:
Diffstat (limited to 'after')
-rw-r--r--after/syntax/mma.vim8
-rw-r--r--after/syntax/yaml.vim4
2 files changed, 4 insertions, 8 deletions
diff --git a/after/syntax/mma.vim b/after/syntax/mma.vim
index 45c5c428..c01de4d0 100644
--- a/after/syntax/mma.vim
+++ b/after/syntax/mma.vim
@@ -2,17 +2,13 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') =
"Vim conceal file
" Language: Mathematica
-" Maintainer: Voldikss <dyzplus@gmail.com>
-" Last Change: 2019 Jan 23 by Voldikss
-" Source: https://github.com/voldikss/vim-mma/after/syntax/mma.vim
-" Credits:
-" Rsmenon: https://github.com/rsmenon
+" Maintainer: R. Menon <rsmenon@icloud.com>
+" Last Change: Feb 25, 2013
if (exists('g:mma_candy') && g:mma_candy == 0) || !has('conceal') || &enc != 'utf-8'
finish
endif
-
"These are fairly safe and straightforward conceals
if exists('g:mma_candy') && g:mma_candy > 0
"Rules
diff --git a/after/syntax/yaml.vim b/after/syntax/yaml.vim
index 4dd2c4e9..097d1535 100644
--- a/after/syntax/yaml.vim
+++ b/after/syntax/yaml.vim
@@ -42,8 +42,8 @@ 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 yamlKey "^\s*\zs[^ \t\"\'#]\+\ze\s*:"
+ syn match yamlKey "^\s*-\s*\zs[^ \t\"\'#]\+\ze\s*:"
syn match yamlAnchor "&\S\+"
syn match yamlAlias "*\S\+"