|
f84c49c5
|
2021-03-18T16:54:08
|
|
Added support for Nevod (#2798)
|
|
e32e043b
|
2021-03-17T17:03:48
|
|
Xojo: Added last missing Keyword "Selector" (#2807)
|
|
d0bcd074
|
2021-03-17T16:54:04
|
|
Dart: Improved support for classes & generics (#2810)
|
|
933af805
|
2021-03-17T11:54:14
|
|
Tests: Stricter `components.json` tests (#2758)
|
|
4d7f75b0
|
2021-03-17T11:48:40
|
|
Copy to Clipboard: Added support for custom styles (#2789)
|
|
5943f4cb
|
2021-03-17T11:40:37
|
|
Nginx: Complete rewrite (#2793)
|
|
e5cfdb4a
|
2021-03-17T11:21:02
|
|
Bash: Fixed single-quoted strings (#2792)
|
|
d298d46e
|
2021-03-17T11:13:07
|
|
Previewers: Use `classList` instead of `className` (#2787)
|
|
d5e14e1a
|
2021-03-17T11:10:56
|
|
Copy to clipboard: Removed ClipboardJS dependency (#2784)
|
|
459365ec
|
2021-03-17T00:43:23
|
|
Xojo: Added missing keywords (#2805)
|
|
99a21dc5
|
2021-03-13T18:11:19
|
|
Added support for False (#2802)
|
|
a68f1fb6
|
2021-03-10T11:28:50
|
|
VB.Net: Improved strings, comments, and punctuation (#2782)
|
|
e38986f9
|
2021-03-07T20:34:29
|
|
Added support for Rego (#2624)
|
|
8dbbbb35
|
2021-03-05T23:38:23
|
|
Markup: Added support for DOM event attributes (#2702)
|
|
970674cf
|
2021-03-05T23:23:17
|
|
Added support for plaintext (#2738)
|
|
a1209930
|
2021-03-05T23:16:57
|
|
Website: Improved basic usage section (#2777)
|
|
bf4e7ba9
|
2021-03-05T16:44:13
|
|
Added support for ICU message format (#2745)
|
|
d85e30da
|
2021-03-05T16:38:11
|
|
Updated refa + fixed 2 cases of exp backtracking (#2774)
|
|
42d24fa2
|
2021-03-02T13:03:17
|
|
INI: Consistently mimic Win32 INI parsing (#2779)
|
|
e6c0d298
|
2021-03-02T01:49:34
|
|
Elixir: Added missing keyword and other improvements (#2773)
|
|
88fa72cf
|
2021-02-26T13:43:27
|
|
C++: Added missing keywords and modules (#2763)
|
|
e9314415
|
2021-02-23T20:44:32
|
|
Added support for Idris (#2755)
|
|
8019e2f6
|
2021-02-19T17:41:31
|
|
PHP: Improved constant support for PHP 8.1 enums (#2770)
This improves the highlighting of PHP 8.1 enums and class constants.
|
|
b0a6ec85
|
2021-02-19T11:11:51
|
|
Added support for CFScript (#2771)
|
|
f79b0eef
|
2021-02-18T20:35:36
|
|
PHP: Added support for PHP 8.1 enums (#2752)
|
|
3419fb77
|
2021-02-13T17:14:46
|
|
Added KuMir (#2760)
|
|
45b0e82a
|
2021-02-12T21:30:45
|
|
Dangerfile: Trim merge base (#2761)
|
|
0feb266f
|
2021-02-12T15:08:57
|
|
Dangerfile: Fixed how changed files are determined (#2757)
|
|
cf354ef5
|
2021-02-11T10:17:35
|
|
Swift: Added `some` keyword (#2756)
|
|
9f59f52d
|
2021-02-07T16:21:13
|
|
JSX: Added support for general spread expressions (#2754)
|
|
1dfc8271
|
2021-02-07T14:54:09
|
|
HTTP: Fixed body not being highlighted (#2734)
|
|
ccc73ab7
|
2021-02-07T14:52:25
|
|
Line Highlight: Fixed linkable line numbers not being initialized (#2732)
|
|
ec9767d6
|
2021-02-04T17:17:43
|
|
Website: Updated URL in Autolinker example (#2751)
|
|
266cc700
|
2021-02-01T15:18:06
|
|
Readme: Update link to Chinese translation (#2749)
|
|
2cb909e1
|
2021-01-31T19:03:55
|
|
Make copy-to-clipboard configurable with multiple attributes (#2723)
Resolves #1438.
Makes the `copy-to-clipboard` plugin consider the following HTML attributes:
- `data-prismjs-copy`,
- `data-prismjs-copy-error`,
- `data-prismjs-copy-success`,
- `data-prismjs-copy-timeout`.
Use those attributes to translate the toolbar for the plugin.
|
|
fd1081d2
|
2021-01-29T15:01:24
|
|
Added support for Squirrel (#2721)
|
|
2b355c98
|
2021-01-29T14:57:36
|
|
Markdown: Workaround for incorrect highlighting due to double `wrap` hook (#2719)
The hook that highlights code blocks in markdown code was unable to handle code blocks that were highlighted already. The hook can now handle any existing markup in markdown code blocks.
|
|
30b0444f
|
2021-01-29T14:52:23
|
|
JSX: Added support for comments inside tags (#2728)
|
|
022f90a0
|
2021-01-29T14:49:40
|
|
JavaScript: Improved contextual keywords (#2713)
|
|
93dd83c2
|
2021-01-29T14:47:05
|
|
Docker: Improvements (#2720)
|
|
18c67b49
|
2021-01-27T21:13:03
|
|
Added support for PSL, PATROL Scripting Language (#2739)
|
|
bbc77d19
|
2021-01-24T15:51:37
|
|
Added support for URIs (#2708)
|
|
b37987d3
|
2021-01-24T15:42:50
|
|
Core: Fixed greedy rematching reach bug (#2705)
|
|
3f7d7453
|
2021-01-24T15:40:08
|
|
Added support for ChaiScript (#2706)
|
|
04ef309c
|
2021-01-20T20:12:58
|
|
PHP: Class names at the start of a string are now highlighted correctly (#2731)
Some class names at the start of the input string were not detected correctly due to the way greedy matching works. This fixes the issue by splitting the `class-name` rule into two rules, one before and one after the `keyword` rule that interfered and caused the issue.
|
|
6183fd9b
|
2021-01-19T00:43:03
|
|
HTTP: More granular tokenization (#2722)
|
|
7a790bf9
|
2021-01-18T14:28:24
|
|
Copy to clipboard: Fixed highlighting (#2725)
The main code block on the page was declared with the wrong language.
|
|
a5d7178c
|
2021-01-17T14:34:24
|
|
F#: Fixed comment false positive (#2703)
F# has supports `(*)` to convert an operator into a function. This syntax collides with F# comments and produced false positives for comments. The comment pattern has been adjusted to not match `(*)`.
|
|
1f91868e
|
2021-01-17T14:29:35
|
|
Added support for DOT (#2690)
|
|
4e7b2a82
|
2021-01-17T01:45:05
|
|
HTTP: Allow root path in request line (#2711)
|
|
59f725d7
|
2021-01-10T04:57:59
|
|
Elixir: Added `defdelagate` keyword and highlighting for function/module names (#2709)
|
|
72962701
|
2021-01-08T22:22:50
|
|
Added support for V langauge (#2687)
|
|
6e34771f
|
2021-01-07T19:34:18
|
|
SQL: Added `ILIKE` operator (#2704)
Added `ILIKE` operator to sql keyword list and sorted the list alphabetically.
|
|
01af04ed
|
2021-01-07T02:01:16
|
|
PHP: Numeral syntax improvements (#2701)
Improves numeral literal handling in the Prism PHP component in two ways:
1. Since PHP 7.4, it is possible to use [underscore numeric separator](https://php.watch/versions/7.4/underscore_numeric_separator). Prism correctly handles this for decimal numbers, but not for binary, octal, and hex numerals although PHP supports the underscore separator for binary, octal, and hex numeric literals as well.
2. In upcoming PHP 8.1, PHP supports an [explicit octal numeral prefix `0o`/`0O`](https://php.watch/versions/8.1/explicit-octal-notation). The existing `0` prefix is not removed.
This commit updates the PHP number regex to accommodate both cases above, and expands the tests for new syntax.
|
|
0e61a7e1
|
2021-01-03T18:18:28
|
|
Scheme: Added support for high Unicode characters (#2693)
|
|
cf28d1b2
|
2021-01-03T13:12:26
|
|
JSON: Fixed backtracking issue in Safari (#2691)
|
|
1506f345
|
2021-01-02T18:29:08
|
|
Website: Added React native tutorial (#2683)
|
|
c83fd0b8
|
2021-01-01T18:19:06
|
|
Shell session: Commands prefixed with a path are now detected (#2686)
|
|
88a17b4f
|
2020-12-31T13:46:45
|
|
1.23.0
|
|
5dc7b423
|
2020-12-31T19:40:08
|
|
Changelog v1.23.0 (#2681)
|
|
37b9c9a1
|
2020-12-31T14:10:09
|
|
PHP: Fixed exponential backtracking (#2684)
|
|
89f1e182
|
2020-12-31T10:14:35
|
|
Latte: Fixed exponential backtracking (#2682)
|
|
0a3932fe
|
2020-12-30T17:43:57
|
|
C-like: Made all comments greedy (#2680)
|
|
cdb24abe
|
2020-12-28T19:25:05
|
|
Line Highlight: Fixed print background color (#2668)
|
|
e644178b
|
2020-12-28T18:19:11
|
|
Added test for polynomial backtracking (#2597)
|
|
b40f8f4b
|
2020-12-23T14:54:50
|
|
Line highlight: Fixed top offset in combination with Line numbers (#2237)
|
|
2af3e2c2
|
2020-12-22T20:52:55
|
|
Markdown: Improved URL tokenization (#2678)
It now tokenizes all parts of a URL except for braces.
|
|
df0738e9
|
2020-12-22T19:53:18
|
|
Test page: Don't trigger ad-blockers with class (#2677)
A selector `.share-wrapper` seems to be in one of the common block lists, so I just renamed the wrapper from "share-wrapper" to "link-wrapper". This should prevent ad-blockers from blocking our "Share" link.
|
|
b5f4f10e
|
2020-12-22T17:27:14
|
|
Test page: Added "Share" option (#2575)
This adds a link and a small popup to share the current state of the test page via a compact link.
|
|
0604793c
|
2020-12-22T11:08:46
|
|
New `start` script to start local server (#2491)
|
|
8828500e
|
2020-12-22T10:54:55
|
|
Tests: Added strict checks for `Prism.languages.extend` (#2572)
|
|
7266e32f
|
2020-12-22T10:50:39
|
|
Treeview: Fixed icons on dark themes (#2631)
|
|
7f23ef3d
|
2020-12-22T10:17:05
|
|
Fixed Danger CI for forks (#2638)
|
|
990f48f5
|
2020-12-15T21:48:39
|
|
Fixed build
(Sorry guys...)
|
|
071232b4
|
2020-12-15T21:46:07
|
|
Readme: Added alternative link for Chinese translation
Credit to @edukisto who suggested this in #2674.
|
|
fc579990
|
2020-12-11T20:06:01
|
|
Bump ini from 1.3.5 to 1.3.7 (#2672)
|
|
2ea202b9
|
2020-12-05T02:26:55
|
|
README: Removed broken icon for Chinese translation (#2670)
The icon of the link to a Chinese translation was broken and this removes the icon and replaces it with a simple "简体中文" meaning "Simplified Chinese".
|
|
9f82de50
|
2020-12-03T11:09:29
|
|
thousands -> millions
We do have 3 million weekly downloads on npm, so I think "thousands" was quite an understatement at this point.
|
|
f1541342
|
2020-12-01T23:10:29
|
|
CSP: Added missing directives and keywords (#2664)
This adds missing CSP and UISecurity directives and keywords.
|
|
a7ccc16d
|
2020-11-30T21:14:26
|
|
CSP: Do not highlight directive names with adjacent hyphens (#2662)
CSP tokens used `\b` to assert word boundaries but this is incorrect as CSP tokens may contain hyphens (`-`). This replaces the assertions will lookarounds that address the issue.
|
|
e01ecd00
|
2020-11-29T00:14:35
|
|
Scheme: Fixed number pattern (#2648)
|
|
05afbb10
|
2020-11-29T00:12:15
|
|
Added test for exponential backtracking (#2590)
This adds a simple test to detect certain causes of exponential backtracking.
|
|
8e76a978
|
2020-11-28T23:23:46
|
|
Shell-session: Fixed false positives because of links in command output (#2649)
|
|
add3736a
|
2020-11-28T23:11:58
|
|
Unescaped Markup: More doc regarding comments (#2652)
This makes the explanation of the usage of comments clearer and gives examples.
|
|
8e660495
|
2020-11-28T23:07:22
|
|
Website: Added and updated documentation (#2654)
I updated a few of the entries in the "Full list of features" section (consistent formatting, a bit of grammar, nothing big). For some reason, we had both
- "Highlights embedded languages (e.g. CSS inside HTML, JavaScript inside HTML)" and
- "Highlights nested languages (CSS in HTML, JavaScript in HTML)"
in there. They are sort of the same, so I removed one.
I also added a note regarding escaping and gave the manual highlighting section its own heading.
|
|
0bb4f096
|
2020-11-28T23:05:53
|
|
JavaStackTrace: Added support stack frame element class loaders and modules (#2658)
|
|
0803525b
|
2020-11-27T15:00:35
|
|
Added support for DataWeave language (#2659)
|
|
24574406
|
2020-11-26T00:32:48
|
|
Core: Moved pattern matching + lookbehind logic into function (#2633)
|
|
5cf9cfbc
|
2020-11-25T23:53:33
|
|
Markdown: Added support for YAML front matter (#2634)
|
|
8fa8dd24
|
2020-11-25T22:59:40
|
|
Core: Fixed bug with greedy matching (#2632)
|
|
3f4ae00d
|
2020-11-24T19:41:10
|
|
File Highlight: Fixed IE compatibility problem (#2656)
The File Highlight plugin used the `Element#matches` which isn't supported by IE11, so a small polyfill was added.
|
|
deb238a6
|
2020-11-23T21:07:44
|
|
SCSS: Added support for Sass modules (#2643)
|
|
8bfcc819
|
2020-11-21T01:17:39
|
|
Tests: Better pretty print (#2600)
This is a major improvement for the pretty-printer.
The main change is that `TokenStreamTransformer.prettyprint` now takes a Prism token stream instead of a simplified token stream. This means that it has a lot more information to work with and it uses that information.
It mostly behaves like the old pretty-printer with 3 main differences:
1. Tokens that contain a nested token stream that only contains a single string are printed as one line.
Example: `["namespace", ["java"]]`
2. The pretty-printer can now glue tokens together so that they are printed in a single line.
Example: `["number", "100"], ["operator", ".."], ["number", "100"]`
3. Line breaks in the input code may now cause empty lines in the output. Previously, only blank strings containing more at least 2 line breaks produce empty lines. This helps readability as it groups tokens together.
|
|
f0e2b70e
|
2020-11-20T17:09:54
|
|
Added support for Apex (#2622)
|
|
a5107d5c
|
2020-11-15T20:28:34
|
|
Kotlin: Added support for backticks in function names (#2489)
|
|
f217ab75
|
2020-11-13T16:45:21
|
|
README: Grammar adjustments (#2629)
|
|
8831c706
|
2020-11-12T20:43:52
|
|
Added PromQL language (#2628)
|
|
9df20c5e
|
2020-11-09T09:33:41
|
|
Added Dangerfile and provide bundle size info (#2608)
|
|
2d3a1267
|
2020-11-06T23:50:40
|
|
Tests: Fixed sorted language list test (#2623)
|
|
7951ca24
|
2020-11-04T21:54:24
|
|
Scheme: Fixed function and function-like false positives (#2611)
|