From b25b614cb62c91da6730ec59fc05d68dae9e9052 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Sun, 24 Sep 2017 21:47:46 +1000 Subject: [PATCH] Remove comment. --- lexers/yaml.go | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/lexers/yaml.go b/lexers/yaml.go index 5066374..52e6e3a 100644 --- a/lexers/yaml.go +++ b/lexers/yaml.go @@ -4,51 +4,6 @@ import ( . "github.com/alecthomas/chroma" // nolint ) -// Prism.languages.yaml = { -// 'scalar': { -// pattern: /([\-:]\s*(![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\3[^\r\n]+)*)/, -// lookbehind: true, -// alias: 'string' -// }, -// 'comment': /#.*/, -// 'key': { -// pattern: /(\s*(?:^|[:\-,[{\r\n?])[ \t]*(![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/, -// lookbehind: true, -// alias: 'atrule' -// }, -// 'directive': { -// pattern: /(^[ \t]*)%.+/m, -// lookbehind: true, -// alias: 'important' -// }, -// 'datetime': { -// pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)(\d{4}-\d\d?-\d\d?([tT]|[ \t]+)\d\d?:\d{2}:\d{2}(\.\d*)?[ \t]*(Z|[-+]\d\d?(:\d{2})?)?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(:\d{2}(\.\d*)?)?)(?=[ \t]*($|,|]|}))/m, -// lookbehind: true, -// alias: 'number' -// }, -// 'boolean': { -// pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)(true|false)[ \t]*(?=$|,|]|})/im, -// lookbehind: true, -// alias: 'important' -// }, -// 'null': { -// pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)(null|~)[ \t]*(?=$|,|]|})/im, -// lookbehind: true, -// alias: 'important' -// }, -// 'string': { -// pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')(?=[ \t]*($|,|]|}))/m, -// lookbehind: true, -// greedy: true -// }, -// 'number': { -// pattern: /([:\-,[{]\s*(![^\s]+)?[ \t]*)[+\-]?(0x[\da-f]+|0o[0-7]+|(\d+\.?\d*|\.?\d+)(e[\+\-]?\d+)?|\.inf|\.nan)[ \t]*(?=$|,|]|})/im, -// lookbehind: true -// }, -// 'tag': /![^\s]+/, -// 'important': /[&*][\w]+/, -// 'punctuation': /---|[:[\]{}\-,|>?]|\.\.\./ - var YAML = Register(MustNewLexer( &Config{ Name: "YAML",