aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/syntax.txt
diff options
context:
space:
mode:
authorNicolas Dumazet <ndumazet@google.com>2016-01-27 14:17:19 +0100
committerNicolas Dumazet <ndumazet@google.com>2016-01-27 14:22:48 +0100
commit71980676f0ab9e29bd8bc72791febe0d53d91921 (patch)
treee98f431abf228b97bc1e68bca847c6a667d91df9 /runtime/doc/syntax.txt
parent130611fca3900276d4525e17ded47504d73b38a1 (diff)
downloadrneovim-71980676f0ab9e29bd8bc72791febe0d53d91921.tar.gz
rneovim-71980676f0ab9e29bd8bc72791febe0d53d91921.tar.bz2
rneovim-71980676f0ab9e29bd8bc72791febe0d53d91921.zip
vim-patch:5a5f459
Original commit: https://github.com/vim/vim/commit/5a5f459 commit 5a5f45917dbf542cb00617fa5ef70a14898495dd Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 13 12:43:06 2015 +0200 Updated runtime files. (1) Merged manually vimrc_example.vim (2) Left out README.txt, doc/tags, doc/todo.txt, tutor/tutor.de, tutor.de.utf-8, ga.po
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r--runtime/doc/syntax.txt28
1 files changed, 27 insertions, 1 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 6603d65645..6aed7441a0 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1,4 +1,4 @@
-*syntax.txt* For Vim version 7.4. Last change: 2015 Mar 20
+*syntax.txt* For Vim version 7.4. Last change: 2015 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3307,6 +3307,32 @@ must not click outside of the pixel strings, but feel free to improve it.
It will look much better with a font in a quadratic cell size, e.g. for X: >
:set guifont=-*-clean-medium-r-*-*-8-*-*-*-*-80-*
+
+YAML *yaml.vim* *ft-yaml-syntax*
+
+ *g:yaml_schema* *b:yaml_schema*
+A YAML schema is a combination of a set of tags and a mechanism for resolving
+non-specific tags. For user this means that YAML parser may, depending on
+plain scalar contents, treat plain scalar (which can actually be only string
+and nothing else) as a value of the other type: null, boolean, floating-point,
+integer. `g:yaml_schema` option determines according to which schema values
+will be highlighted specially. Supported schemas are
+
+Schema Description ~
+failsafe No additional highlighting.
+json Supports JSON-style numbers, booleans and null.
+core Supports more number, boolean and null styles.
+pyyaml In addition to core schema supports highlighting timestamps,
+ but there are some differences in what is recognized as
+ numbers and many additional boolean values not present in core
+ schema.
+
+Default schema is `core`.
+
+Note that schemas are not actually limited to plain scalars, but this is the
+only difference between schemas defined in YAML specification and the only
+difference defined in the syntax file.
+
==============================================================================
5. Defining a syntax *:syn-define* *E410*