Commit Graph

376 Commits

Author SHA1 Message Date
Michael Schmidt ca8eaeeec4
Markup: Fixed quotes in HTML attribute values (#3442) 2022-04-29 12:13:01 +02:00
Michael Schmidt 0d4b6cb64e
CSS: Fixed @-rules not accounting for strings (#3438) 2022-04-20 20:22:29 +02:00
Michael Schmidt ca78cde6c5
JS: Added support for new regex syntax (#3399) 2022-03-21 16:12:13 +01:00
Michael Schmidt 2cc4660b7a
Core: Added better error message for missing grammars (#3311) 2022-02-02 11:53:16 +01:00
Michael Schmidt b631949acd
Core: Added `setLanguage` util function (#3167) 2021-11-03 12:19:36 +01:00
Michael Schmidt 5a24cbffd7
JS: Improved `number` pattern (#3149) 2021-10-14 14:01:46 +02:00
Michael Schmidt 3b2238fa8f
JS: Added properties (#3099) 2021-10-10 19:36:58 +02:00
Berti d38592c5bb
File highlight+data range (#1813)
Co-authored-by: atomize <63r71@tuta.io>
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
2021-10-04 15:52:52 +02:00
Michael Schmidt a80a68ba50
Core: Fixed type error on null (#3057) 2021-10-02 01:29:28 +02:00
Michael Schmidt e2630d890e
ESLint: Added `regexp/sort-alternatives` rule (#3093) 2021-09-26 11:52:18 +02:00
Jake Archibald 213cf7be43
Core: Document `disableWorkerMessageHandler` (#3088)
Co-authored-by: Michael Schmidt <msrd0000@gmail.com>
2021-09-23 17:33:24 +02:00
Michael Schmidt 52e8cee97a
Markup: Made most patterns greedy (#3065) 2021-09-15 20:03:41 +02:00
ready-research 0ff371bb47
Markup: Fixed ReDoS (#3078) 2021-09-15 11:48:53 +02:00
Michael Schmidt 4e9338acee
ESLint: Added `regexp/no-super-linear-backtracking` rule (#3040) 2021-08-27 18:41:39 +02:00
Michael Schmidt e8d3b50330
ESLint: Added `regexp/strict` rule (#2944) 2021-06-27 14:56:07 +02:00
Michael Schmidt ab7c9953ee
JS: Added support for import assertions (#2953) 2021-06-16 11:56:54 +02:00
Michael Schmidt 18a00828a2
ESLint: Added regexp plugin (#2924) 2021-06-13 19:53:03 +02:00
Michael Schmidt 79d22182ba
FIxed some cases of quadratic worst-case runtime (#2922) 2021-06-08 13:50:35 +02:00
Michael Schmidt 415651a013
JS: Added support for RegExp Match Indices (#2900) 2021-05-24 14:40:10 +02:00
Michael Schmidt 74edb4e5f6
ESLint: Added indent rule (#2881) 2021-05-14 12:40:12 +02:00
Michael Schmidt fd20dbe4a3
ESLint: Added spacing rules (#2862) 2021-05-01 14:53:38 +02:00
Michael Schmidt cf7b0fd503
ESLint: Added JSDoc plugin (#2869) 2021-05-01 14:40:00 +02:00
Michael Schmidt fbceba1f1a
ESLint: Re-enable no-cond-assign rule (#2870) 2021-05-01 14:34:07 +02:00
Michael Schmidt 67a86cf6d2
ESLint: Added brace-style rule (#2865) 2021-04-18 16:13:48 +02:00
Michael Schmidt 158011e45a
ESLint: Added wrap-iife rule (#2867) 2021-04-18 15:55:05 +02:00
Michael Schmidt b03e7eb0cd
ESLint: Added semi rule (#2836) 2021-04-17 22:30:39 +02:00
Michael Schmidt 9c610ae689
JavaScript: Added hashbang and private getters/setters (#2815) 2021-03-28 18:55:07 +02:00
Michael Schmidt 772d42bec0
Added ESLint with minimal config (#2831) 2021-03-26 13:16:16 +01:00
Michael Schmidt 53d34b2211
File Highlight: Fixed Prism check (#2827) 2021-03-23 15:55:40 +01:00
Michael Schmidt 9633564289
Plugins: Consistent Prism check (#2788) 2021-03-21 17:22:54 +01:00
Michael Schmidt dbf7051558
Core: Add `tabindex` to code blocks to enable keyboard navigation (#2799) 2021-03-21 16:58:13 +01:00
Michael Schmidt 8dbbbb35d6
Markup: Added support for DOM event attributes (#2702) 2021-03-05 23:38:23 +01:00
Michael Schmidt 970674cf42
Added support for plaintext (#2738) 2021-03-05 23:23:17 +01:00
Michael Schmidt 022f90a0bf
JavaScript: Improved contextual keywords (#2713) 2021-01-29 14:49:40 +01:00
Michael Schmidt b37987d3b7
Core: Fixed greedy rematching reach bug (#2705) 2021-01-24 15:42:50 +01:00
Michael Schmidt 0a3932fe61
C-like: Made all comments greedy (#2680) 2020-12-30 17:43:57 +01:00
Michael Schmidt e644178b8b
Added test for polynomial backtracking (#2597) 2020-12-28 18:19:11 +01:00
Michael Schmidt 8828500e48
Tests: Added strict checks for `Prism.languages.extend` (#2572) 2020-12-22 10:54:55 +01:00
Michael Schmidt 24574406da
Core: Moved pattern matching + lookbehind logic into function (#2633) 2020-11-26 00:32:48 +01:00
Michael Schmidt 8fa8dd24d5
Core: Fixed bug with greedy matching (#2632) 2020-11-25 22:59:40 +01:00
dreammaster82 3f4ae00dc0
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.
2020-11-24 17:41:10 +01:00
Michael Schmidt b04cbafe3b
CSS: Better HTML `style` attribute tokenization (#2569) 2020-10-13 14:26:34 +02:00
Michael Schmidt f62ca78790
Regex: Changed how languages embed regexes (#2532) 2020-08-31 17:56:46 +02:00
Michael Schmidt 206dc80f48
Docs: Minor improvement (#2513) 2020-08-27 19:16:21 +02:00
Michael Schmidt 4f55052f6a
JS: Improved regex detection (#2465) 2020-07-18 14:53:05 +02:00
Michael Schmidt 40285203ed
Core: Fixed greedy matching bug (#2032) 2020-07-13 13:24:32 +02:00
Michael Schmidt afea17d922
File Highlight & JSONP Highlight update (#1974) 2020-06-28 02:32:53 +02:00
Michael Schmidt 964de5a1e1
CSS: Improved url and added keywords (#2432) 2020-06-28 01:44:00 +02:00
Michael Schmidt 4ff555bea1
Added JSDoc (#1782) 2020-06-28 01:34:29 +02:00
Michael Schmidt a36e96ab14
Added general de/activation mechanism for plugins (#2434)
Keep Markup, Line numbers, and Normalize whitespace now share the same per-element class-based de/activation logic.
2020-06-27 00:01:47 +02:00