Mercurial > vim
comparison runtime/doc/syntax.txt @ 6741:fbc1131f0ba5
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 13 Apr 2015 12:43:06 +0200 |
parents | 12155a47f6c2 |
children | b2673982c625 |
comparison
equal
deleted
inserted
replaced
6740:2ed977b23d68 | 6741:fbc1131f0ba5 |
---|---|
1 *syntax.txt* For Vim version 7.4. Last change: 2015 Mar 20 | 1 *syntax.txt* For Vim version 7.4. Last change: 2015 Mar 29 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
3319 It will work with XPM files that have one character per pixel only and you | 3319 It will work with XPM files that have one character per pixel only and you |
3320 must not click outside of the pixel strings, but feel free to improve it. | 3320 must not click outside of the pixel strings, but feel free to improve it. |
3321 | 3321 |
3322 It will look much better with a font in a quadratic cell size, e.g. for X: > | 3322 It will look much better with a font in a quadratic cell size, e.g. for X: > |
3323 :set guifont=-*-clean-medium-r-*-*-8-*-*-*-*-80-* | 3323 :set guifont=-*-clean-medium-r-*-*-8-*-*-*-*-80-* |
3324 | |
3325 | |
3326 YAML *yaml.vim* *ft-yaml-syntax* | |
3327 | |
3328 *g:yaml_schema* *b:yaml_schema* | |
3329 A YAML schema is a combination of a set of tags and a mechanism for resolving | |
3330 non-specific tags. For user this means that YAML parser may, depending on | |
3331 plain scalar contents, treat plain scalar (which can actually be only string | |
3332 and nothing else) as a value of the other type: null, boolean, floating-point, | |
3333 integer. `g:yaml_schema` option determines according to which schema values | |
3334 will be highlighted specially. Supported schemas are | |
3335 | |
3336 Schema Description ~ | |
3337 failsafe No additional highlighting. | |
3338 json Supports JSON-style numbers, booleans and null. | |
3339 core Supports more number, boolean and null styles. | |
3340 pyyaml In addition to core schema supports highlighting timestamps, | |
3341 but there are some differences in what is recognized as | |
3342 numbers and many additional boolean values not present in core | |
3343 schema. | |
3344 | |
3345 Default schema is `core`. | |
3346 | |
3347 Note that schemas are not actually limited to plain scalars, but this is the | |
3348 only difference between schemas defined in YAML specification and the only | |
3349 difference defined in the syntax file. | |
3324 | 3350 |
3325 ============================================================================== | 3351 ============================================================================== |
3326 5. Defining a syntax *:syn-define* *E410* | 3352 5. Defining a syntax *:syn-define* *E410* |
3327 | 3353 |
3328 Vim understands three types of syntax items: | 3354 Vim understands three types of syntax items: |