PHP Classes

File: vendors/google-code-prettify/src/lang-yaml.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/google-code-prettify/src/lang-yaml.js   Download  
File: vendors/google-code-prettify/src/lang-yaml.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 839 bytes
 

Contents

Class file image Download
// Contributed by ribrdb @ code.google.com /** * @fileoverview * Registers a language handler for YAML. * * @author ribrdb */ PR['registerLangHandler']( PR['createSimpleLexer']( [ [PR['PR_PUNCTUATION'], /^[:|>?]+/, null, ':|>?'], [PR['PR_DECLARATION'], /^%(?:YAML|TAG)[^#\r\n]+/, null, '%'], [PR['PR_TYPE'], /^[&]\S+/, null, '&'], [PR['PR_TYPE'], /^!\S*/, null, '!'], [PR['PR_STRING'], /^"(?:[^\\"]|\\.)*(?:"|$)/, null, '"'], [PR['PR_STRING'], /^'(?:[^']|'')*(?:'|$)/, null, "'"], [PR['PR_COMMENT'], /^#[^\r\n]*/, null, '#'], [PR['PR_PLAIN'], /^\s+/, null, ' \t\r\n'] ], [ [PR['PR_DECLARATION'], /^(?:---|\.\.\.)(?:[\r\n]|$)/], [PR['PR_PUNCTUATION'], /^-/], [PR['PR_KEYWORD'], /^\w+:[ \r\n]/], [PR['PR_PLAIN'], /^\w+/] ]), ['yaml', 'yml']);