Log

Author Commit Date CI Message
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 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 74050c68 2019-05-12T14:10:17 CSS: Removed useless flag and modifier (#1875) This cleans up CSS' at-rule pattern.
Michael Schmidt f8ae465d 2019-05-12T14:07:58 JSONP Highlight: Fixed examples (#1877) This fixes an example on the JSONP Highlight page.
Michael Schmidt acceb3b5 2019-05-08T17:02:27 Custom class: Added mapper functions for language specific transformations (#1873) This adds support for mapper function to the `map` function, allowing for language-specific transformations.
Matt Chaffe 632ce00c 2019-05-07T23:21:49 Line highlight: Batching DOM read/writes to avoid reflows (#1865) This batches DOM read and write operation to avoid reflows resulting for better performance.
Ralf Biedert 4faa3314 2019-05-07T20:09:47 Add async / await keywords for Rust. (#1882)
libantema c24831b5 2019-04-27T11:28:47 Command line: Fix for uncaught errors for empty 'commandLine' object. (#1862) This fixes the issue that the Command line plugin throws an error when the 'commandLine' object is not defined/an empty object. This always happens when an element with no text is highlighted.
Michael Schmidt 59d4323f 2019-04-25T19:54:58 Copy to clipboard: Fixed typo (#1869) This fixes a small type in the webpage of the copy to clipboard plugin.
Michael Schmidt cbe05ec3 2019-04-23T20:52:47 JSON: Kinda fixed comment issue (#1853) This is a partial workaround for the greedy matching bug so that pure JSON will always be matched correctly while JSON + comments might suffer from some issues.
Michael Schmidt 77e403cb 2019-04-23T09:18:01 Readme: Minor changes (#1857) Minor changes to the `README.md`. A few updated links and a few new sentences.
Michael Schmidt fd691c52 2019-04-23T00:33:15 Core: Made `language-none` the default language (#1858) This makes `language-none` the default language of a highlighted element in the case that no `language-xxxx` class is provided or inherited.
Michael Schmidt c1e6a7fd 2019-04-23T00:30:37 Tests: Added test for empty regexes (#1847) This adds a new test which checks all regexes to not match the empty string.
Michael Schmidt eb28b62b 2019-04-19T22:10:04 Autolinker: Improved URL regex (#1842) This changes the regex for matching URLs to include the `@` character and improves the pattern to avoid backtracking.
Michael Schmidt c13d6e7d 2019-04-19T22:07:57 JS: Template strings: Increased bracket count of interpolations (#1845) This increases the number of nested braces which can be matched by JS's template pattern to supported nested objects within interpolation expressions.
Michael Schmidt 9e164935 2019-04-19T21:56:52 Added support for `s` regex flag (#1846) This adds support for the ES2018 `s` (dotall) flag for regular expressions.
Karl Kaufmann d2089d83 2019-04-08T04:23:37 New tutorial for Drupal (#1859) This adds a new tutorial.
Michael Schmidt a42b1557 2019-04-07T13:29:46 Rust: Improved punctuation and operators (#1839) This improves Rust's existing punctuation and operators, adds support for new ones, and updates the tests.
Andrey e2683959 2019-04-03T11:30:49 Javascript: Added missing semicolon (#1856)
Michael Schmidt 2f9c9261 2019-03-31T09:50:19 Clearer description for the highlighting bug report template (#1850) This makes the description of the plugins info in the highlighting bug report template a little clearer.
Michael Schmidt 65a4e894 2019-03-28T23:47:49 Removed `parent` from the `wrap` hook's environment (#1837) This removes the `parent` property of the `wrap` hook and the parameter from `Token.stringify`.
Daniel Ferguson 0f16eb87 2019-03-26T03:24:51 Line numbers: Fixed typo on webpage (#1838) This corrects a small typo on line number's webpage.
mAAdhaTTah 886698d5 2019-03-24T19:00:38 1.16.0
mAAdhaTTah 695dddce 2019-03-24T14:35:20 CHANGELOG for v1.16.0
mAAdhaTTah 3abaf68d 2019-03-24T14:35:05 Add command to generate CHANGELOG This forms the basis of the CHANGELOG, but the commits need to be formatted with the linkify command and sorted into the various sections.
Michael Schmidt 66b44e3b 2019-03-24T23:03:10 Travis: Fail when changed files are detected (#1819) This adds a new check to the Travis CI config which will cause the build to fail if any files change (This usually indicates that the committer forgot to rebuild Prism.). To implement this, we also add the `package-lock.json` file.
Michael Schmidt c3e74ea3 2019-03-24T22:50:22 Tests: Additional checks for Prism functions (#1803) This adds additional checks for `extend` and `insertBefore` under `Prism.languages`.
Michael Schmidt 29a30c62 2019-03-24T22:10:07 Adjusted .npmignore (#1834) This adjusts `.npmignore` to ignore the `scripts` directory.
Michael Schmidt 3ad47047 2019-03-24T21:17:06 Toolbar: Minor improvements (#1818) The `registerButton` function will now log a warning and do nothing if a button is registered twice.
Michael Schmidt 191830f2 2019-03-24T20:06:42 Scheme: Minor improvements (#1814) Minor improvements for the Scheme language.
Michael Schmidt 5c1a6fb2 2019-03-24T19:05:03 Added alias tests (#1832) This adds tests which check the aliases specified in `components.json`.
Michael Schmidt 52889b5b 2019-03-24T18:52:44 Autoloader: Added support for aliases (#1829) This adds alias support for the Autoloader plugin.
Michael Schmidt 8d28c74c 2019-03-24T18:44:24 Added missing aliases (#1830) This adds some missing aliases.
Michael Schmidt fd4c764f 2019-03-24T18:43:31 Autoloader: Fixed the directory of scripts (#1828) This fixes some incorrect script paths.
Michael Schmidt 77c57446 2019-03-24T18:42:51 Fixed download page (#1811) This makes the download page work on Edge again.
Michael Schmidt 64baec3c 2019-03-24T18:39:32 Added `hs` alias for Haskell (#1831) This adds `hs` as an alias for Haskell.
Karl Kaufmann 4f78f1d6 2019-03-24T12:42:17 Name in composer.json set to lowercase (#1824) This conforms to Packagist standards so we can properly submit prismjs to Packagist so Composer users can pull in the project.
Michael Schmidt a91be7b2 2019-03-22T18:16:03 Apache config: Minor improvements + new keyword (#1823) This adds the `SSLSessionTickets` word to the list of inline directives and compresses current word lists.
Michal 30779976 2019-03-20T22:10:17 Added support for CMake language (#1820) This adds support for the [CMake](https://cmake.org/) language.
Michael Schmidt bc649dfa 2019-03-14T18:54:40 npm: Fixed `test` script (#1809) This solves the problem that is wasn't possible to pass arguments to `tests/run.js`.
Michael Schmidt f2d8e1c7 2019-03-14T15:03:11 JS: Keyword fix (#1808) This fixes false positives with properties which have the same name as keywords.
Michael Schmidt dedb475f 2019-03-14T13:49:47 Added issue templates (#1805) This adds issue templates for the prism project after #1802.
Michael Schmidt 11d0f75e 2019-03-14T13:17:45 Applied Array.isArray (#1804) This replaces all occurrences of `Prism.util.type(variable) {!==, ===} 'Array'` with an equivalent `Array.isArray` expression.
Guillaume Grossetie a944c418 2019-03-11T17:55:56 Add unit tests to the Keep Markup plugin (#1646) Uses JSDOM to simulate the DOM in node.
Michael Schmidt 439ea1ee 2019-03-11T00:32:45 Added scripts directory (#1781) This adds a new `scripts` directory for all scripts used exclusively by the prismjs.com website.
Michael Schmidt 3100fa31 2019-03-11T00:21:16 More persistent test page (#1529) The test page will now remember the language and code last tested.
Michael Schmidt bc53e093 2019-03-11T00:20:18 More variables for better code compression (#1489) This introduces more variables for better code compression in a few languages.
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 18f2921d 2019-03-10T21:40:02 Docs: Added missing parameter (#1774) This adds a missing parameter to the `Prism.highlight` documentation.
Michael Schmidt 832a9643 2019-03-10T21:30:58 Refactored tests (#1795) This refactors all test related JS files.
Michael Schmidt 729cb28b 2019-03-10T21:18:27 Test page: Show tokens option (#1757) This adds a new option to the test page to show a visual representation of the nested structure of the tokens of highlighted code Prism returns.
Michael Schmidt ea769e0b 2019-03-10T18:58:45 Some encouragement for visitors of PrismJS.com to request new languages (#1760) This adds a direct link to our Github issue page, encouraging visitors to make a new issue to request a new language.
Michael Schmidt 14be7489 2019-03-10T18:56:59 Line numbers: Added inheritance for the `line-numbers` class (#1799) This adds inheritance for the `line-numbers` class for the Line numbers plugin similar to the inheritance of `language-xxxx` classes.
Michael Schmidt 9ea6d600 2019-03-10T18:55:23 Tests: Pretty-printed token stream (#1801) This adds support for pretty-printed token streams in the output of error messages.
Michael Schmidt f2467488 2019-03-10T18:53:08 Django/Jinja2 improvements (#1800) This completely rewrites the Django language definition. It's now based on markup-templating.
Michael Schmidt af67c32e 2019-03-10T18:44:30 Markup `addInline` improvements (#1798) This makes some minor improvements to the new `addInline` function of markup.
Michael Schmidt b2298b12 2019-03-10T15:45:40 Added GraphQL improvements and tests (#1788) This makes some improvements to GraphQL and expands the existing tests.
Michael Schmidt 3e00bb9c 2019-03-07T15:22:30 Rebuilt Prism (#1794) This is a rebuilt of Prism to update minified files.
Michael Schmidt 5dd8f916 2019-03-06T18:09:45 JSONP highlight: Fixed minified adapter names (#1793) This fixes that the Uglify minified functions names made the pre-defined adapters un-removable.
Michael Schmidt 9d908d5a 2019-03-06T18:04:34 npm: Updated all dependencies (#1742) This updates all npm dependencies.
Michael Schmidt 8ca3d65b 2019-03-06T13:53:33 Markdown: The 'md' alias is now recognized by hooks (#1771) The hooks markdown adds itself will now recognize the `md` alias.
Michael Schmidt 86dd3e42 2019-03-06T13:49:05 Fixed patterns which can match the empty string (#1775) This changes patterns which match the empty string to always match at least one character.
Michael Schmidt c9762c6f 2019-03-06T13:47:25 Better class name detection for plugins (#1772) This improves the class name regex of a few plugins to avoid false positives.
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 878ef295 2019-03-05T22:26:50 Themes: Normalized the font-size of pre and code (#1791) Normalized the font-size of pre and code in all themes. This fixes a Coy line drift issue.
Michael Schmidt c37c90df 2019-03-05T22:17:36 Added EJS (#1769) This adds the EJS (Embedded JavaScript templates) language to Prism.
Michael Schmidt c9a32674 2019-03-05T22:06:33 Fixed dependencies of Pug and Pure (#1759) This removes dependencies of Pug and Pure to languages which do not exist (yet).
Michael Schmidt c805f859 2019-03-05T16:56:13 Ruby/ERB: Fixed block comments (#1768) This fixes block comments in Ruby and ERB.
Michael Schmidt 571704cb 2019-03-04T23:38:57 Regex language (#1682) This adds a Regex language that adds itself to a few languages which have regex literals.
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.
Michael Schmidt 16f2ad06 2019-03-04T22:59:24 Added T4 Text Templates (#1699) This adds T4 Text Templates in both the C# and VB language variants.
Michael Schmidt 245b59d4 2019-03-04T22:17:23 CSS: Highlight attribute selector (#1671) This adds highlighting for CSS attributes selectors in CSS Extras
Jakub T. Jankiewicz f8c8add2 2019-03-03T14:10:47 Fixed operator-like functions in Scheme (#1467) This fixes operator-like functions in Scheme.
Michael Schmidt b62e282b 2019-03-03T00:01:55 Markup-templating improvements (#1653) This makes minor improvements to markup-templating.
Michael Schmidt 6c9fe257 2019-03-02T17:43:23 gulp: Refactoring (#1780) Refactored gulpfile.js
Michael Schmidt bac09f0a 2019-03-02T17:27:19 Made prism-core a little more editor friendly (#1776) This makes the structure of prism-core easier to understand for editors.
wippysnib 3b396ef5 2019-03-02T04:09:06 Added new SAS keywords (#1784) This adds the SAS keywords libname, set, output, and options to the language definition.
ExE Boss 06627f6a 2019-03-01T13:41:02 Update gulp to version 4.0.0 (#1779)
ExE Boss b06f532f 2019-03-01T01:19:29 Core: Avoid redeclaring variables in util.clone (#1778) This changes util.clone to be more readable and to avoid redeclaring the `clone` and `id` variables.
Michael Schmidt 289ddd9b 2019-02-28T21:56:01 PHP: Fixed closing tag issue (#1652) This fixes that PHP's closing tag (`?>`) was detected inside strings and comments.
Michael Schmidt 152a68ef 2019-02-28T21:36:57 Improved languages.DFS and util.clone (#1506) Minor improvements for the two functions.
Michael Schmidt 493d19ef 2019-02-28T21:01:31 Added doc comment highlighting (#1541) This adds support for JavaDoc, JSDoc, TSDoc, and PHPDoc.
Michael Schmidt bb628606 2019-02-28T20:19:45 Added JS Extras (#1743) This adds JS Extras, a few additional features for the JS language.
Michael Schmidt 3560c643 2019-02-28T20:12:11 JS: Fixed variables named "async" (#1738) Fixes variables names "async" in JS.
Michael Schmidt c3862a24 2019-02-28T19:55:24 Fix for markup attributes (#1752) This fixes some issues related to markup (XML/HTML) attributes. See the PR for more detail.
Michael Schmidt 5fd7577a 2019-02-28T19:52:06 Smalltalk: Allowed empty strings and comments (#1747) This fixes that empty strings and comments were not recognized in Smalltalk.
Michael Schmidt 7bcec584 2019-02-28T19:41:00 Improved JS constant pattern (#1737) This changes the JS constant pattern so that all WebGL constants (like `FLOAT_MAT2x4`) are matched.
Michael Schmidt 8378ac83 2019-02-28T19:33:50 Improved JS function pattern (#1736) Allows for spaces around the punctuations of function invocation via `apply`, `bind`, or `call`.
Michael Schmidt 64dc049d 2019-02-28T19:28:22 Added JSON5 language (#1744) This adds the JSON5 language to Prism.
Michael Schmidt 13e1c97d 2019-02-28T19:23:25 Added EBNF language (#1756) This adds the EBNF language.
Michael Schmidt 1df96c55 2019-02-28T19:18:05 Added BNF and RBNF languages (#1754) This adds the BNF and RBNF languages.
Michael Schmidt 6d98f0e7 2019-02-28T19:10:37 Added ANBF language (#1753) This adds a new language: ANBF (Augmented Backus–Naur form).
Michael Schmidt ae4842db 2019-02-27T14:54:06 Fixed JSON/JSONP examples (#1765) This corrects my previous mistake where I forgot to adjust the example of JSON after changing the implementation of JSONP.
Michael Schmidt b5041cf9 2019-02-26T05:41:01 Fix JSONP support (#1745) This PR fixes that JSON did not support [JSONP](https://en.wikipedia.org/wiki/JSONP) callback functions. I also added a JSON example page.
Michael Schmidt 5bd182c0 2019-02-26T04:43:27 Fix Lisp exponential string pattern (#1763) This PR fixes #1762 by fixing the `string` pattern which sometimes fails in exponential time.
Michael Schmidt ce9616a0 2019-02-20T16:12:00 Fix typo (#1755)
Michael Schmidt bfbea4d6 2019-02-15T16:51:54 Fix `function-variable` in JS (#1739)
Michael Schmidt 671f4ca0 2019-02-15T16:05:43 Improve gulp error messages with pump (#1741)
Michael Schmidt d9fa29a8 2019-02-15T16:03:59 Make `undefined` a keyword in JS (#1740)
Michael Schmidt bd0378f0 2019-02-14T13:23:49 Add `keyword` alias for SCSS' `null` (#1735) Add the `keyword` alias to the `null` pattern for SCSS. This was the last `null` pattern without any aliases (#1727).