components/prism-css.js


Log

Author Commit Date CI Message
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 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
Олег Дутченко 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
Valtteri Laitinen 8aa2cc4a 2017-05-08T13:56:50 Replace [\w\W] with [\s\S] and [0-9] with \d in regexes (#1107) * Replace [\w\W] with [^] and [0-9] with \d in regexes * Replace [\s\S] with [^] * Replace [^] with [\s\S]
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 4d2cdad3 2015-01-11T20:34:58 Merge branch 'master' into prism-css Conflicts: components/prism-css.min.js
Golmote 9487b5be 2015-01-09T08:11:21 Removed unneeded escapes in RegExps, added some semicolons
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
Miles Johnson 7b20bc1a 2014-05-24T12:55:05 Use lookahead for function matching
Miles Johnson bae1210e 2014-05-24T12:33:50 Move function to base CSS [#237]
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 f9abda28 2013-05-14T11:34:53 Added pseudo, hexcode, number and function matchers
Simon Sapin d4bd5e78 2012-09-13T20:00:27 Fix parsing of CSS at-rules Test case: @page { size: A4 landscape; margin: 2cm } The previous *atrule* regexp matched until the `;` but it should stop at the first `{`.
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 28b5cbc9 2012-07-11T04:27:33 Fixed bug with single letter selectors
Lea Verou 4552f5c7 2012-07-10T22:48:14 First commit