components/prism-css.min.js


Log

Author Commit Date CI Message
Michael Schmidt 0d4b6cb6 2022-04-20T20:22:29 CSS: Fixed @-rules not accounting for strings (#3438)
Michael Schmidt 79d22182 2021-06-08T13:50:35 FIxed some cases of quadratic worst-case runtime (#2922)
Michael Schmidt 8dbbbb35 2021-03-05T23:38:23 Markup: Added support for DOM event attributes (#2702)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt b04cbafe 2020-10-13T14:26:34 CSS: Better HTML `style` attribute tokenization (#2569)
Michael Schmidt 964de5a1 2020-06-28T01:44:00 CSS: Improved url and added keywords (#2432)
Michael Schmidt 504a63ba 2020-03-26T23:18:33 CSS: Fixed url() containing "@" (#2272) This fixes URLs that contain the "@" character.
Michael Schmidt 2e0eff76 2020-02-07T16:44:48 CSS: Added support for the selector function (#2201) This adds support for CSS 4's selector function. The selectors passed to the function will now be highlighted as such.
Michael Schmidt f0a10669 2019-05-15T13:41:05 CSS: Extended `url` inside (#1874) This extends the highlighting of the CSS `url` pattern adding highlighting for punctuation and the `url` function.
Michael Schmidt 74050c68 2019-05-12T14:10:17 CSS: Removed useless flag and modifier (#1875) This cleans up CSS' at-rule pattern.
Michael Schmidt 3e00bb9c 2019-03-07T15:22:30 Rebuilt Prism (#1794) This is a rebuilt of Prism to update minified files.
Michael Schmidt a2d445d0 2019-03-06T13:22:08 CSS: Selectors can contain any string (#1638) This fixes that certain attribute value strings break the selector pattern.
Michael Schmidt 57127701 2019-03-04T23:12:46 Markup: Added support for CSS and JS inside of CDATAs (#1660) This adds support for CSS/JS inside of (any number of) CDATAs.
Valtteri Laitinen 4f6f3c7d 2018-12-24T17:28:06 Allow multiline CSS at-rules (#1676) Allows for CSS at-rules containing line breaks.
Michael Schmidt 7ea2ff28 2018-11-24T10:54:26 Added the comma to the list of CSS punctuation
Ran Luo bfbe4464 2018-10-24T04:08:51 Invoke `callback` after `after-highlight` hook (#1588) Previously, `callback`, as passed to `Prism.highlightElement`, would get called before all of the hooks had been run. This moves it after all the hooks, so it can truly be considered a "complete" callback. This could be a breaking change for any userland modifications that were expecting `callback` to fire before plugins, but we expect this change to mostly conform with user expectations and consider this a bugfix..
Олег Дутченко c1d6cb85 2018-10-19T04:06:02 Fix tokenizing !important (#1585) Updates the regex to ensure that when `!important` sits next to a property with no spaces, it's still tokenized correctly.
Golmote cc80ccda 2018-03-13T08:15:56 Remove most of the cloning occurrences in language definitions.
Golmote 7dc1e453 2017-12-05T08:58:11 CSS and JS: Make CSS and JS inclusions in Markup greedy. Fix #1240
Valtteri Laitinen f234ea40 2017-11-20T23:34:38 Unicode characters in CSS properties (#1227) * Unicode characters in CSS properties Highlight Unicode characters in CSS properties correctly, for example “.foo { --bär: 3 }”. Optimized the “function” regex in the JavaScript definition: replaced “_a-zA-Z0-9” with “\w”, removed uppercase “A-Z” because the “i” flag is set. Used that regex for CSS but removed “$” and added “-”. * Add a test * Add minified versions * Update prism.js * Revert "Update prism.js" This reverts commit 241464ba1ba5e350b8483d926e73364f9e9d99c4. * Update prism.js too
Golmote 438926c3 2017-10-22T14:28:13 CSS: Regexp simplification + don't use captures if not needed + handle multi-line style attributes
Golmote 65cbaa95 2017-05-08T13:27:57 Run gulp after #1107
Golmote e57e26d5 2016-08-17T15:56:41 Makes CSS strings greedy. Fix #1013
Golmote 29643f4e 2015-10-06T08:48:21 Simplify patterns for <style> and <script> tags
Golmote 15760e18 2015-07-08T20:23:32 C-like and CSS: Fixes for \r\n
Golmote f2e2718f 2015-07-08T19:39:35 CSS: Selector regexp should not include last spaces before brace
Golmote 901812c1 2015-07-08T19:35:57 CSS: Improved url and string regexps + handle \r
Golmote e2540889 2015-07-08T19:32:10 CSS: Improve atrules
Golmote cd0273ee 2015-07-08T19:26:35 CSS: Highlight parentheses as punctuation
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Golmote a1ebf758 2015-02-25T19:58:27 Fix style attribute highlighting
Golmote b794724c 2015-01-21T19:07:43 CSS: Move string above property to prevent incorrect highlighting of property-like substrings
Golmote a12fbbdd 2015-01-21T19:06:05 CSS: Don't highlight multi-line urls that are not enclosed between quotes.
Golmote e4a13e5c 2015-01-20T22:43:54 Allow multi-line url in CSS
Golmote 2d0e0341 2015-01-11T20:39:15 Run gulp
Golmote c8e3c2d7 2015-01-09T08:11:48 Run gulp
Golmote 45815098 2015-01-08T09:03:52 Allow multiline strings in CSS Fixes #457
Golmote 93530f85 2014-12-12T08:54:55 Undo changes in css, just fix css-extras instead
Golmote 0c2a2085 2014-12-09T20:53:18 Added color and number to CSS
Andreas Rohner e2e36855 2014-11-15T19:56:20 Revert invalid move of the language-css alias One of the language-css aliases, which was moved inwards by the previous patch was actually in the right place. This patch reverts the change to correct the newly introduced error of the previous patch.
Andreas Rohner 3154f9b9 2014-11-15T19:09:40 Move invalid alias declarations, which cause HTML highlighting to fail The alias declarations in prism-javascript.js and prism-css.js are in the wrong place and must be moved inside of the pattern object. Otherwise they get injected into the markup grammar. The execution fails, because the alias is a string and not a RegExp.
Lea Verou 23edcc8c 2014-11-14T20:10:05 Added language-xxx aliases in nested language refs to ease styling
Lea Verou 4b9e11c6 2014-11-14T19:19:31 CSS highlighting in HTML style attribute
Ben Briggs 7cfd29a9 2014-05-26T11:20:55 Rebuild minified files.
Lea Verou 34365bfc 2014-05-24T15:57:07 Minified files
Lea Verou d44312b6 2014-05-24T14:25:49 Converted the CSS, SCSS and JS grammars according to #258
Lea Verou b955edd4 2013-06-14T14:04:51 Allowed numbers in properties (for CSS variables)
Lea Verou dceab61d 2013-06-14T11:33:07 Tweaked CSS parsing for better LESS highlighting, added relevant example
Miles Johnson 9bc70c5e 2013-05-15T10:44:42 Moved CSS rules to an extras file
Miles Johnson 38803bd3 2013-05-14T11:38:36 Added min version
Lea Verou 02653e5c 2012-11-09T16:31:18 Fixed bug with minified files
Lea Verou 9eeeb7c6 2012-07-29T01:03:05 Moved inline CSS & JS to their language definitions
Lea Verou 03548f7e 2012-07-27T04:25:21 Made url() highlighting more robust
Lea Verou 9f82e1c9 2012-07-26T19:13:47 Added more examples, added highlighting for entities, URLs and CSS strings
Lea Verou 9ea808ea 2012-07-23T20:20:40 Added url token in CSS
Lea Verou a4b9b918 2012-07-18T15:57:08 Added minified versions