components/prism-css-extras.js

Branch


Log

Author Commit Date CI Message
Michael Schmidt 646b2e0a 2022-05-14T14:19:19 CSS Extras: Added support for `RebeccaPurple` color (#3448)
Michael Schmidt e2630d89 2021-09-26T11:52:18 ESLint: Added `regexp/sort-alternatives` rule (#3093)
Michael Schmidt 14fdfe32 2021-07-15T19:36:08 Sass: Fixed issues with CSS Extras (#2994)
Michael Schmidt 18a00828 2021-06-13T19:53:03 ESLint: Added regexp plugin (#2924)
Michael Schmidt 79d22182 2021-06-08T13:50:35 FIxed some cases of quadratic worst-case runtime (#2922)
Michael Schmidt 158011e4 2021-04-18T15:55:05 ESLint: Added wrap-iife rule (#2867)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt 48fac3b2 2020-06-12T15:58:46 Added a test for identifier support across all languages (#2371)
Michael Schmidt fdbc4473 2020-05-19T01:52:38 CSS Extras: Optimized `class` and `id` patterns (#2359)
那里好脏不可以 e523f5d0 2020-05-09T02:42:24 CSS Extras: Renamed `attr-{name,value}` tokens and added tokens for combinators and selector lists (#2373)
Michael Schmidt 8d2c5a3e 2020-03-10T15:11:13 Inline color: Support for (semi-)transparent colors and minor improvements (#2223) - This changes the inline preview to include a background image, so (semi-)transparent colors can be identified as such instead of blending with the background color of the current theme. - The black outline is now more transparent to better blend in with light themes. - The `transparent` color was added to CSS Extras. - This fixes the `parseHexColor` function.
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 8403e453 2019-09-03T19:06:15 Added Inline color plugin (#2007) This adds a new plugin to display an inline preview of CSS colors as most IDEs do.
Michael Schmidt ebe363f4 2019-08-17T14:31:41 CSS Extras & PHP: Fixed too greedy number token (#2009) This fixes the too greedy number tokenization of CSS Extras which cause the placeholders of PHP (via markup templating) to be partly tokenized. The CSS extras number pattern was adjusted to solve the issue.
Michael Schmidt 5e5a3e00 2019-05-12T14:14:03 CSS-Extras: Added `even` & `odd` keywords to `n-th` pattern (#1872) `even` and `odd` are keywords which are also an `n-th` value. This adds it to the pattern which previously only captured values of the form `an+b`.
Michael Schmidt 70a40414 2019-03-10T22:15:10 CSS extras: Highlighting for pseudo class arguments (#1650) This adds highlighting for pseudo class arguments, selector punctuation, and n-th expressions.
Michael Schmidt 245b59d4 2019-03-04T22:17:23 CSS: Highlight attribute selector (#1671) This adds highlighting for CSS attributes selectors in CSS Extras
Michael Schmidt 9de47d3a 2018-12-03T14:20:07 Fixed CSS extra variable (#1649) Details are described [here](https://github.com/PrismJS/prism/pull/1450#discussion_r238257002). I decided to go with the property variant, highlighting custom property declarations as `variable`.
Rex Zeng 5fcee966 2018-12-03T20:55:22 Identify CSS units and variables (#1450) Assume CSS unit is a word or `%` after a number, CSS variable is a word inside `var()`. `%` is not recognized as a part of number, but the leading `-` is. When using minus operator in `calc` function, we must type a space in both sides of `-` (value like `calc(100%-5px)` is wrong), so if we met a pattern like `-[\d.]` in a CSS value (not in selector, rule or variable), it must be the start of a negative number.
Michael Schmidt e2f2fd19 2018-12-01T21:19:37 Reuse CSS selector pattern in CSS Extras (#1637) The CSS extras for the selector now use the CSS selector pattern.
Golmote 5edfd2f2 2017-10-22T14:25:35 CSS Extras: Regexp simplification
Valtteri Laitinen 07a6806b 2017-05-24T09:05:27 Support CSS #RRGGBBAA (#1139) Add support for CSS #RRGGBBAA notation.
Golmote 13fed767 2016-07-07T09:09:51 CSS-extras: match attribute inside selectors
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Golmote 93530f85 2014-12-12T08:54:55 Undo changes in css, just fix css-extras instead
Miles Johnson bae1210e 2014-05-24T12:33:50 Move function to base CSS [#237]
Miles Johnson ee2c024e 2014-05-24T12:28:39 Make function matching a pattern [#239]
Miles Johnson 63e7a93b 2013-07-03T17:16:27 Use ? modifier instead
Miles Johnson e6cd1c83 2013-07-03T16:57:30 Fix function order
Miles Johnson 6d05d897 2013-05-20T15:40:24 Improved pseudo elements
Miles Johnson c1f60b0e 2013-05-18T21:47:01 Minor changes
Miles Johnson a6b53a26 2013-05-18T18:01:16 Updated selector patterns
Miles Johnson 1318f799 2013-05-17T17:03:49 Improved selector patterns
Miles Johnson 519a2ba3 2013-05-16T22:26:39 Remove selector tag
Miles Johnson f181e903 2013-05-16T20:59:29 Added advanced selectors
Miles Johnson 9bc70c5e 2013-05-15T10:44:42 Moved CSS rules to an extras file