components/prism-yaml.js


Log

Author Commit Date CI Message
Michael Schmidt e2630d89 2021-09-26T11:52:18 ESLint: Added `regexp/sort-alternatives` rule (#3093)
Michael Schmidt e8d3b503 2021-06-27T14:56:07 ESLint: Added `regexp/strict` rule (#2944)
Michael Schmidt f471d2d7 2021-06-17T22:27:40 Fixed problems reported by `regexp/no-dupe-disjunctions` (#2952)
Michael Schmidt b03e7eb0 2021-04-17T22:30:39 ESLint: Added semi rule (#2836)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt 59853a52 2020-10-01T12:33:11 YAML: Improved key pattern (#2561)
Michael Schmidt 5d7aab56 2020-03-26T23:30:29 Updated all String.propotype.replace calls for literal strings
Michael Schmidt 5362ba16 2020-02-23T14:06:24 YAML: Improvements (#2226) The patterns for tags, anchors, and aliases and their usage in other patterns are improved to match the YAML spec as close as possible.
Tilo Prütz 6124c974 2020-02-19T20:03:29 YAML: Fixed highlighting of anchors and aliases (#2217)
Masafumi Koba 0c8f6504 2018-12-03T04:37:20 Add file extensions support for major languages (#1478) This adds aliases for file extensions of some major languages. - `coffee` -> `coffeescript` - `md` -> `markdown` - `py` -> `python` - `rb` -> `ruby` - `yml` -> `yaml`
Chris Johnston 1c5f28a9 2018-10-29T12:00:54 Allow YAML strings to have trailing comments (#1602) Updates the string regex to allow for strings that may have a trailing '#'. This uses a different pattern from other regex patterns, because only the string regex pattern is greedy, while the others are not. Fix #1601.
Golmote 5d658471 2018-03-08T22:21:24 Code style
Golmote 1fd690dd 2017-10-22T15:36:14 YAML: Regexp optimisation + don't use captures if not needed
Golmote 565a2ccf 2017-02-07T23:42:48 YAML: Make strings greedy (partial fix for #1075)
Andreas Rohner 8477e457 2016-04-30T11:58:43 Minor fix for the YAML language Recent changes to YAML caused it to fail some test cases. This patch fixes this minor problem, by excluding whitespace characters from the "key"-pattern.
Lars Kellogg-Stedman f19db819 2016-04-29T12:05:00 fix hilighting of YAML keys on first line of code block The YAML highlighter would fail to highlight a key if it occurred on the first line of a `<code>` block, as in: <pre><code>somekey: somevalue anotherkey: anothervalue</pre></code> This adds "beginning of file" as an acceptable marker for the start of a key. Resolves #942 and, it turns out, #649.
Golmote 9e33e0a8 2015-09-03T20:17:28 YAML: Handled \r\n and \r, simplified some patterns, fixed "---"
Martin Hasoň 6e555bc0 2015-03-03T23:29:32 Added YAML highlighter