Files
source/S/misc--syntax--yaml.syntax.html
github-actions[bot] 08571174ab Deploy to GitHub Pages
2026-02-01 17:32:02 +00:00

76 lines
5.6 KiB
HTML

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>misc/syntax/yaml.syntax</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.11' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/misc.html'>misc</a>/<a href='../files/misc--syntax.html'>syntax</a>/yaml.syntax</span></li>
</ul></div>
<!-- end of fixed guide -->
<div align='right'>Manual pages:
<a href=man/mc.html>mc</a> &bullet; <a href=man/mcdiff.html>mcdiff</a> &bullet; <a href=man/mcedit.html>mcedit</a> &bullet; <a href=man/mcview.html>mcview</a>
</div>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/misc.html'>misc</a>/<a href='../files/misc--syntax.html'>syntax</a>/yaml.syntax</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 misc/syntax/yaml.syntax' /> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a># YAML syntax highlighting
<a id='L2' name='L2'></a>
<a id='L3' name='L3'></a># Reference:
<a id='L4' name='L4'></a># https://en.wikipedia.org/wiki/YAML
<a id='L5' name='L5'></a># https://yaml.org/refcard.html
<a id='L6' name='L6'></a>
<a id='L7' name='L7'></a>context default
<a id='L8' name='L8'></a> spellcheck
<a id='L9' name='L9'></a> keyword #*\n brown
<a id='L10' name='L10'></a> keyword {{*}} brightred
<a id='L11' name='L11'></a> keyword linestart --- brightcyan
<a id='L12' name='L12'></a> keyword linestart \[\s\]-\s brightcyan
<a id='L13' name='L13'></a> # "YAML requires that colons and commas used as list separators be followed by a space [...]"
<a id='L14' name='L14'></a> keyword ,\{\s\n\} brightcyan
<a id='L15' name='L15'></a> keyword , red
<a id='L16' name='L16'></a> # Below, we can get by with just "*:\{\s\n\}", but we prefer to restrict the
<a id='L17' name='L17'></a> # key names in order not to grab too much (e.g., "{one: 1, two: 2}", "one: 1 # possibilities: 1 or 2").
<a id='L18' name='L18'></a> keyword \{0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\}\[\s-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]:\{\s\n\} yellow
<a id='L19' name='L19'></a> keyword [ brightcyan
<a id='L20' name='L20'></a> keyword ] brightcyan
<a id='L21' name='L21'></a> keyword { brightcyan
<a id='L22' name='L22'></a> keyword } brightcyan
<a id='L23' name='L23'></a> keyword whole true brightmagenta
<a id='L24' name='L24'></a> keyword whole false brightmagenta
<a id='L25' name='L25'></a> keyword whole null brightmagenta
<a id='L26' name='L26'></a>
<a id='L27' name='L27'></a>context " " green
<a id='L28' name='L28'></a> spellcheck
<a id='L29' name='L29'></a> keyword {{*}} brightred
<a id='L30' name='L30'></a> keyword \\" brightgreen
<a id='L31' name='L31'></a> keyword \\\\ brightgreen
<a id='L32' name='L32'></a> keyword \\\{xuU\}\[0123456789\] brightgreen
<a id='L33' name='L33'></a> keyword \\\{0abfnrtve_NLP\} brightgreen
<a id='L34' name='L34'></a>
<a id='L35' name='L35'></a>context ' ' green
<a id='L36' name='L36'></a> spellcheck
<a id='L37' name='L37'></a> keyword {{*}} brightred
<a id='L38' name='L38'></a>
<a id='L39' name='L39'></a># The last word below may be: "\n*:\{\s\n\}", but used strict version suitable for more cases
<a id='L40' name='L40'></a>context exclusive |\[123456789\+\-\s\t\]\n \n\n\[\s-\]\[-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]:\{\s\n\} brown
<a id='L41' name='L41'></a>context exclusive &gt;\[123456789\+\-\s\t\]\n \n\n\[\s-\]\[-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]:\{\s\n\} brown
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+41 misc/syntax/yaml.syntax' /> */</em>
</body>
</html>