|
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)
|
|
7a74497a
|
2020-11-04T21:50:43
|
|
Made Autoloader and Diff Highlight compatible (#2580)
|
|
0889bc7c
|
2020-11-04T21:44:48
|
|
Java: Improved package and class name detection (#2599)
|
|
fc602822
|
2020-11-04T17:37:13
|
|
Unescaped Markup: Refactoring (#2445)
|
|
89ebb0b7
|
2020-11-04T17:28:20
|
|
PHP: Removed C-like dependency (#2619)
|
|
0df60be1
|
2020-11-04T17:18:23
|
|
Tests: Stricter pattern for nice-token-names test (#2588)
|
|
25bdb494
|
2020-11-04T11:51:00
|
|
TSX: Temporary fix for the collisions of JSX tags and TS generics (#2596)
|
|
129faf5c
|
2020-11-04T11:48:51
|
|
C: Better class name and macro name detection (#2585)
|
|
8e1f38ff
|
2020-11-04T11:44:43
|
|
Website: Updated and improved guide on "Extending Prism" page (#2586)
|
|
00bf00e3
|
2020-10-26T14:49:26
|
|
Apache Configuration: Update directive-flag to match '=' (#2612)
|
|
c2f6a644
|
2020-10-25T23:42:25
|
|
Fixed multiple cases of vulnerable regexes (#2584)
|
|
69132045
|
2020-10-24T18:08:21
|
|
Migrate from TravisCI -> GitHub Actions (#2606)
This moves the test suite from Travis -> GitHub Actions. The Workflow
is essentially the same as what we had on Travis, but split into two
jobs.
|
|
7cdfe556
|
2020-10-24T17:54:14
|
|
Line numbers: Fixed null reference (#2605)
|
|
093c8175
|
2020-10-23T20:58:36
|
|
Julia: Removed constants that are not exported by default (#2601)
* Remove Julia constants that are not exported by default
* Julia: build and fix test
|
|
df922d90
|
2020-10-16T22:20:59
|
|
PHP: Added support for PHP 8.0 features (#2591)
|
|
f59a85f1
|
2020-10-15T15:54:19
|
|
Set type="button" attribute for copy to clipboard plugin. (#2593)
When using Prism + copy to clipboard inside a HTML form, the form is submitted when copying.
It's because by default the button is seen as a submit button.
Adding the `type="button"` attribute prevents this.
|
|
b04cbafe
|
2020-10-13T14:26:34
|
|
CSS: Better HTML `style` attribute tokenization (#2569)
|
|
73f81c89
|
2020-10-13T14:24:24
|
|
Java: Added Java 15 keywords (#2567)
|
|
38808e64
|
2020-10-13T14:03:42
|
|
PHP: Added support for PHP 7.4 + other major improvements (#2566)
|
|
38f42dd6
|
2020-10-10T14:25:16
|
|
1.22.0
|
|
6ab7ab12
|
2020-10-10T19:00:19
|
|
Changelog for v1.22.0 (#2579)
|
|
655f985c
|
2020-10-10T10:46:30
|
|
Website: Added new SB101 tutorial replacing the Crambler one (#2576)
|
|
1761513e
|
2020-10-05T18:01:19
|
|
PHP: Added `match` keyword (PHP 8.0) (#2574)
PHP introduces a new [`match` keyword in PHP 8.0](https://php.watch/versions/8.0/match-expression).
|
|
8ae6a4ba
|
2020-10-01T12:30:04
|
|
Website: Fix typo on homepage by adding missing word add (#2570)
|
|
59853a52
|
2020-10-01T12:33:11
|
|
YAML: Improved key pattern (#2561)
|
|
a409245e
|
2020-10-01T12:32:22
|
|
Show Language: Added title for plain text (#2555)
|
|
35cbc02f
|
2020-09-22T16:50:57
|
|
Processing: Fixed function pattern (#2564)
|
|
6b47133d
|
2020-09-22T16:50:32
|
|
Match braces: Fixed JS interpolation punctuation (#2541)
|
|
cb75d9e2
|
2020-09-13T23:26:33
|
|
Added support for SML (#2537)
|
|
3b4f14ca
|
2020-09-13T23:25:43
|
|
Rust: Fixed Unicode char literals (#2550)
|
|
4d31e22a
|
2020-09-11T12:07:11
|
|
Added support for Birb (#2542)
|
|
bfb36748
|
2020-09-11T15:24:20
|
|
Shell-Session: Added aliases (#2548)
|
|
d36ea993
|
2020-09-11T15:15:56
|
|
Autoloader: Fixed file detection regexes (#2549)
|
|
f62ca787
|
2020-08-31T17:56:46
|
|
Regex: Changed how languages embed regexes (#2532)
|
|
bf169e5f
|
2020-08-31T17:49:09
|
|
JSDoc: Fixed line ends (#2523)
|
|
e4f6ccac
|
2020-08-30T15:08:38
|
|
Scheme: Added support for R7RS syntax (#2525)
|
|
fa2225ff
|
2020-08-30T14:49:51
|
|
Removed duplicate alternatives in various languages (#2524)
|
|
ad748a00
|
2020-08-30T18:16:21
|
|
Added PureScript language definition (#2526)
|
|
e023044c
|
2020-08-28T18:38:14
|
|
Haskell: Improvements (#2535)
|
|
c51ababb
|
2020-08-27T23:51:16
|
|
JS Extras: Highlight import and export bindings (#2533)
|
|
bcef22af
|
2020-08-27T23:11:47
|
|
JS Extras: Added control-flow keywords (#2529)
|
|
206dc80f
|
2020-08-27T19:16:21
|
|
Docs: Minor improvement (#2513)
|
|
5ad6cb23
|
2020-08-27T19:14:55
|
|
Custom class: Improved doc (#2512)
|
|
6c921801
|
2020-08-27T19:14:20
|
|
Shell session & bash: Highlight all commands after the start of any Heredoc string (#2509)
|
|
bafab634
|
2020-08-17T16:22:21
|
|
Tests: Added an option to accept the actual token stream (#2515)
|
|
5c33f0bb
|
2020-08-17T15:39:02
|
|
Added support for BSL (1C:Enterprise) (#2520)
|
|
004eaa74
|
2020-08-14T00:00:21
|
|
Added support for MongoDB syntax (#2518)
|
|
2da2beba
|
2020-08-12T13:10:38
|
|
Added support for Stan (#2490)
|
|
bf115f47
|
2020-08-11T15:33:48
|
|
Added support for TypoScript (#2505)
|
|
388ad996
|
2020-08-07T21:14:34
|
|
Add support for NaniScript (#2494)
|
|
187c8a60
|
2020-08-06T19:17:18
|
|
1.21.0
|
|
bf4f3233
|
2020-08-06T17:44:57
|
|
Changelog for v1.21.0 (#2507)
|
|
8bba4880
|
2020-08-06T12:12:39
|
|
Previewers: Fixed XSS (#2506)
|
|
158caf52
|
2020-07-30T22:54:34
|
|
JSON: Greedy comments (#2479)
Comments are now greedy allowing them to break strings, properties, and each other.
|
|
f0f8210c
|
2020-07-28T00:45:28
|
|
Batch: Fix escaped double quote (#2485)
|
|
649e51e5
|
2020-07-27T13:50:41
|
|
Added support for Dhall (#2473)
|
|
453079bf
|
2020-07-26T18:46:25
|
|
Line Numbers: Fixed class name on website
This fixes #2487.
|
|
a0efa40b
|
2020-07-24T13:14:22
|
|
Fixed Treeview page (#2484)
|
|
78161d60
|
2020-07-22T18:37:16
|
|
VB: Added VBA alias (#2469)
|
|
ed1df1e1
|
2020-07-22T17:27:00
|
|
Added support for YANG (#2467)
|
|
447429f0
|
2020-07-22T17:13:00
|
|
Line Numbers: Improved documentation (#2456)
|
|
3fcce6fe
|
2020-07-22T18:12:01
|
|
Added support for .gitignore (#2481)
|
|
0c30c582
|
2020-07-22T17:45:05
|
|
EditorConfig: Trim spaces before key and section title (#2482)
The `key` and `section` tokens sometimes included leading spaces.
|
|
2ff40fe0
|
2020-07-18T15:29:33
|
|
Rust: Improvements (#2464)
|
|
2805ae35
|
2020-07-18T15:02:33
|
|
JSDoc: Improvements (#2466)
|
|
398e2943
|
2020-07-18T14:58:39
|
|
Added support for Cypher (#2459)
|
|
4f55052f
|
2020-07-18T14:53:05
|
|
JS: Improved regex detection (#2465)
|
|
16fbe3e0
|
2020-07-16T21:58:53
|
|
Bump lodash from 4.17.15 to 4.17.19 (#2478)
|
|
bea7a585
|
2020-07-14T14:47:21
|
|
SQL: Added PostgreSQL `RETURNING` keyword (#2476)
|
|
67f97e2e
|
2020-07-13T14:40:31
|
|
Kotlin: Added `kt` and `kts` aliases (#2474)
|
|
40285203
|
2020-07-13T13:24:32
|
|
Core: Fixed greedy matching bug (#2032)
|
|
ed8fff91
|
2020-07-11T01:07:19
|
|
Added support for EditorConfig (#2471)
|
|
278316ca
|
2020-07-06T15:01:10
|
|
SAS: Improved macro string functions (#2463)
|
|
537a9e80
|
2020-07-05T15:22:39
|
|
CSP: Fixed directives (#2461)
|
|
dfa5498a
|
2020-07-03T12:40:39
|
|
Website: Fixed typos "Prims" (#2455)
|
|
a0a9f1ef
|
2020-07-02T17:46:04
|
|
SAS: Handle edge case of string macro functions (#2451)
|
|
7c66cfc4
|
2020-07-02T17:42:38
|
|
AutoHotkey: Added missing "format" built-in (#2450)
|