plugins/autoloader/prism-autoloader.min.js


Log

Author Commit Date CI Message
Marcos Oliveira cbef9af7 2022-04-15T17:48:02 Added support for ReScript (#3435)
Michael Schmidt cb5229af 2022-04-01T23:03:56 Handlebars: Added Mustache alias (#3422)
Michael Schmidt 11c54624 2022-03-22T22:32:52 Use terser (#3407)
Yanis Zafirópulos e2fe1f79 2022-03-21T16:48:30 Added support for Arturo (#3403) Co-authored-by: Michael Schmidt <msrd0000@gmail.com>
Michael Schmidt 63806d57 2022-03-21T16:18:07 Added support for Stata's Ado and Mata (#3383)
Michael Schmidt 0d49553c 2022-03-21T15:28:39 Added support for PlantUML (#3372)
Michael Schmidt 554ff324 2022-03-21T15:25:14 Added support for ARM Assembly (#3376)
Michael Schmidt 33f2cf95 2022-03-21T15:15:34 Added support for GNU Linker Script (#3373)
Michael Schmidt 1b1d6731 2022-03-21T15:12:00 Added support for SuperCollider (#3371)
Michael Schmidt dfef9b61 2022-03-21T15:09:29 Added gettext (.po) language support (#3369)
Michael Schmidt ea8a0f40 2022-03-14T22:43:46 Added support for AWK (#3374)
Michael Schmidt e03a7c24 2021-12-07T12:49:56 Twig: Improved tokenization (#3259)
Michael Schmidt 8476a9ab 2021-12-05T15:04:00 Added support for `go.mod` files (#3209)
Michael Schmidt ef53f021 2021-10-11T16:52:12 Added support for Web IDL (#3107)
Outreach-ChemEng-UofU 5b7ce5e4 2021-10-04T05:50:07 Arduino: Added `ino` alias (#2990) Co-authored-by: RunDevelopment <mitchi5000.ms@googlemail.com>
Darach Ennis ec25ba65 2021-09-21T21:19:47 Added Tremor project DSL language definition (#3087) * Add tremor project DSL langauge definitions Signed-off-by: Darach Ennis <darach@gmail.com> * Update components/prism-tremor.js Apply fix worst-case time complexity per @RunDevelopment's insight Co-authored-by: Michael Schmidt <msrd0000@gmail.com> * Update components/prism-tremor.js Terser formulation of pattern Co-authored-by: Michael Schmidt <msrd0000@gmail.com> * Update components/prism-tremor.js Terser formulation of pattern Co-authored-by: Michael Schmidt <msrd0000@gmail.com> * Update components/prism-tremor.js Terser formulation of pattern Co-authored-by: Michael Schmidt <msrd0000@gmail.com> * Add partial interpolation, expand tests, attend to lints Signed-off-by: Darach Ennis <darach@gmail.com> * Improved Tremor tokenization Signed-off-by: Michael Schmidt <mitchi5000.ms@googlemail.com> Co-authored-by: Michael Schmidt <msrd0000@gmail.com> Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
Michael Schmidt 4433ccfc 2021-09-15T21:43:55 Added support for ASP.NET Razor (#3064)
Zach 746a4b1a 2021-09-15T12:34:31 Added AviSynth language definition (#3071)
Michael Schmidt 87e5a376 2021-09-06T20:16:52 Added support for Apache Avro IDL (#3051)
Michael Schmidt 4f97b82b 2021-09-01T18:08:02 Added support for GN (#3062)
Michael Schmidt 8541db2e 2021-08-09T11:45:09 Swift: Major improvements (#3022)
Michael Schmidt ac1d12f9 2021-06-16T00:08:04 Liquid: Added Markup support, missing tokens, and other improvements (#2950)
Michael Sollami c4f6b2cc 2021-06-02T15:34:38 Adding basic support for Mathematica (#2921) Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
Michael Schmidt 43976351 2021-05-04T19:00:33 Handlebars: Added `hbs` alias (#2874)
Vyron Vasileiadis 1b63cd01 2021-03-23T14:04:45 Αdded support for Q# (#2804)
Michael Schmidt 96335642 2021-03-21T17:22:54 Plugins: Consistent Prism check (#2788)
Michael Schmidt 1a2347a3 2021-03-21T16:44:25 Added support for OpenQasm (#2797)
Michael Schmidt 5943f4cb 2021-03-17T11:40:37 Nginx: Complete rewrite (#2793)
κeen e9314415 2021-02-23T20:44:32 Added support for Idris (#2755)
Matthew J. Clemente b0a6ec85 2021-02-19T11:11:51 Added support for CFScript (#2771)
edukisto 3419fb77 2021-02-13T17:14:46 Added KuMir (#2760)
Michael Schmidt fd1081d2 2021-01-29T15:01:24 Added support for Squirrel (#2721)
Michael Schmidt bbc77d19 2021-01-24T15:51:37 Added support for URIs (#2708)
Michael Schmidt 3f7d7453 2021-01-24T15:40:08 Added support for ChaiScript (#2706)
Michael Schmidt 1f91868e 2021-01-17T14:29:35 Added support for DOT (#2690)
Taegon Kim 72962701 2021-01-08T22:22:50 Added support for V langauge (#2687)
Michael Schmidt f0e2b70e 2020-11-20T17:09:54 Added support for Apex (#2622)
Michael Schmidt 7a74497a 2020-11-04T21:50:43 Made Autoloader and Diff Highlight compatible (#2580)
Michael Schmidt 89ebb0b7 2020-11-04T17:28:20 PHP: Removed C-like dependency (#2619)
Michael Schmidt cb75d9e2 2020-09-13T23:26:33 Added support for SML (#2537)
Aayan 4d31e22a 2020-09-11T12:07:11 Added support for Birb (#2542)
Michael Schmidt bfb36748 2020-09-11T15:24:20 Shell-Session: Added aliases (#2548)
Michael Schmidt d36ea993 2020-09-11T15:15:56 Autoloader: Fixed file detection regexes (#2549)
Sri Harsha Chilakapati ad748a00 2020-08-30T18:16:21 Added PureScript language definition (#2526)
Barilko Vitaliy 5c33f0bb 2020-08-17T15:39:02 Added support for BSL (1C:Enterprise) (#2520)
Dmitry Eroshenko 004eaa74 2020-08-14T00:00:21 Added support for MongoDB syntax (#2518)
Daniel 'Eisbehr' Kern bf115f47 2020-08-11T15:33:48 Added support for TypoScript (#2505)
Artyom Sovetnikov 388ad996 2020-08-07T21:14:34 Add support for NaniScript (#2494)
Michael Schmidt 78161d60 2020-07-22T18:37:16 VB: Added VBA alias (#2469)
Osip Fatkullin 3fcce6fe 2020-07-22T18:12:01 Added support for .gitignore (#2481)
Michael Schmidt 2805ae35 2020-07-18T15:02:33 JSDoc: Improvements (#2466)
Osip Fatkullin 67f97e2e 2020-07-13T14:40:31 Kotlin: Added `kt` and `kts` aliases (#2474)
Michael Schmidt a3416bf3 2020-07-01T00:39:29 Autoloader: Fix (#2449)
Michael Schmidt 1654b25f 2020-06-28T02:03:01 Autoloader: Fixed data-dependencies and extensions (#2326)
Michael Schmidt a3758728 2020-06-27T22:38:50 Added test to sort the language list (#2222)
Michael Schmidt 6352213a 2020-05-29T16:22:10 Solidity: Added `sol` alias (#2382)
Valtteri Laitinen 9782cfe6 2020-05-18T02:29:27 Markup & JSON: Added new aliases (#2390) This adds the `rss` and `atom` alias for Markup and the `webmanifest` alias for JSON.
Proudust 4935b5ca 2020-05-16T11:22:21 Ren'Py: Added `rpy` alias (#2385)
Michael Schmidt b6093339 2020-05-13T11:32:36 T4-VB: Use the right VB variant (#2341) I used the wrong VB variant when creating T4 VB. It should have been VB.net.
Michael Schmidt caec5e30 2020-05-13T11:26:38 Added support for XML doc in C#, F#, and VB.net (#2340)
HeX0R101 d0c1c70d 2020-05-06T23:59:29 Added support for PureBasic (#2369) A language based on Basic (BlitzBasic to be precise) with inline assembler also and direct API calls. Can compile on Windows, Linux, and macOS
Michael Schmidt 33e49956 2020-04-29T15:39:59 GLSL: Improvements (#2321) This improves GLSL by extending C instead of C-like.
Michael Schmidt 87a5c7ae 2020-04-29T15:29:51 Added support for HLSL (#2318) https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl
Michael Schmidt 053016ef 2020-04-27T23:18:30 Added support for Racket (#2315)
Michael Schmidt eb70070d 2020-04-27T22:43:30 Added support for SSML (#2306)
Michael Schmidt 1093ceb3 2020-04-27T22:33:02 Added support for UnrealScript (#2305)
Michael Schmidt bd4d8165 2020-04-27T22:29:20 Added support for Peoplecode (#2302)
rchee 67c6b7af 2020-04-26T19:30:31 Objectivec: Added `objc` alias (#2331)
Michael Schmidt 5cdc3251 2020-04-16T22:36:38 Autoloader: Improved path detection and other minor improvements (#2245)
Ben Gubler 0cfb6c5f 2020-04-04T13:04:08 EJS: Added `eta` alias (#2282)
Christopher McComas 57eebced 2020-03-26T12:10:09 BBCode: Added "shortcode" alias (#2273) This adds a "shortcode" alias to BBCode to support Wordpress' ShortCode.
Peter Budai 8119e57b 2020-03-16T21:17:45 Added support for Power Query (#2250) This adds support for Power Query. https://docs.microsoft.com/en-us/powerquery-m/
Michael Schmidt bf4f7bfa 2020-03-10T14:59:46 Added support for Excel formula (#2219) This adds support for Excel's formula terms.
Michael Schmidt 26626ded 2020-03-07T11:43:10 OpenCL: Require C (#2231) This changes the language requirement of OpenCL from C++ to C making C++ optional.
Michael Schmidt 15983d52 2020-02-23T14:12:37 Added support for Solution (.sln) files (#2213) This adds support for VS Solution files. https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2019
Jason Tatton b24f7348 2020-02-14T21:55:32 Add Concurnas support (#2206) Concurnas is an open-source JVM programming language designed for building reliable, scalable, high performance concurrent, distributed and parallel systems. For more information please see: https://concurnas.com/
Michael Schmidt c40d96c6 2020-01-08T15:57:52 Added QML (#2139) This adds support for QML (Qt Modeling Language), a user interface markup language. https://en.wikipedia.org/wiki/QML https://doc.qt.io/qt-5/qtqml-index.html
David Grudl 694a81b8 2020-01-05T20:00:51 Added support for Latte & NEON (#2140) - Added support for templating system Latte https://latte.nette.org - Added support for NEON https://ne-on.org
Asko Soukka baa78774 2019-11-16T00:59:18 Rename "robot-framework" to "robotframework" (#2113) This changes the id of the Robot Framework language.
Michael Schmidt f31946b3 2019-10-25T21:53:29 Added support for Moonscript (#2100) This adds support for the Moonscript language.
Michael Schmidt 2108c60f 2019-10-25T17:34:50 Core: IE11 workaround for currentScript (#2104) This adds a new function `Prism.util.currentScript` which is a functionally equalent to `document.currentScript` but includes support for IE11.
cedporter 3640b3f2 2019-10-23T11:45:12 SAS: Added support for embedded Groovy and Lua code (#2091) Like PROC SQL, PROC GROOVY and PROC LUA both contain syntax that should be treated as the language specified by the PROC, not SAS. This implements that highlighting.
Michael Schmidt cfac94ec 2019-10-16T11:41:51 Added SQF language (#2079) This adds support for the SQF language. https://community.bistudio.com/wiki/SQF_syntax
Michael Schmidt 0b771c90 2019-10-16T11:33:14 Added support for etlua (#2050) This adds support for etlua (Embedded Lua templating).
Michael Schmidt aaaa29a8 2019-10-16T11:28:54 Added support for ANTLR4 (#2063) This adds support for ANTLR4. Languages embedded via actions are not highlighted.
Michael Schmidt 2f3da7e8 2019-10-16T11:18:57 Added support for FTL (#2080) This adds support for FTL (Freemarker language).
thomasdegroot18 c42f877d 2019-09-05T17:28:28 Added support for SPARQL language (#2033) This adds support for the SPARQL language. https://www.w3.org/TR/sparql11-query/
Michael Schmidt f7eaa618 2019-09-03T12:56:20 Added Robot Framework plain text format (#2034) This adds support for the Robot Framework plain text space separated format. https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#plain-text-format
Michael Schmidt cc2cf3f7 2019-09-02T20:29:26 Added support for Solidity (#2031) This adds support for the Solidity language. https://solidity.readthedocs.io/en/v0.4.23/
Michael Schmidt 9f722586 2019-08-17T14:36:50 Added support for Firestore security rules (#2010) This adds support for Google Cloud Firestore security rules.
cedporter 076f6155 2019-08-08T15:16:31 SAS: Major improvements (#1981) This makes various improvements to the SAS language definition such as adding support for embedded SQL, missing keyword and language elements, more granular tokenizing, and many more.
Jakub Klímek 508d57ac 2019-08-06T15:30:24 Added RDF Turtle/TriG language (#2012) This adds support for the RDF Turtle/TriG language.
Michael Schmidt 05823e88 2019-07-22T02:07:42 Markdown: Added support for auto-loading code block languages (#1898) This lets Markdown load embedded languages using the Autoloader plugin which now exposes the `loadLanguages` function. This also changes `loadLanguages` to always invoke callbacks asynchronously and to invoke error callbacks only once.
Michael Schmidt c8844286 2019-07-21T22:59:46 Highlight JS tagged template literals (#1931) This adds support for highlighting embedded languages in JavaScript tagged template literals.
Michael Schmidt 452d5c7d 2019-07-21T20:06:02 Autoloader: Improved component path guessing (#1928) This changes the behavior of how the Autoloader handles `data-autoloader-path` attributes and guesses the components path. The CDN example on the front page was also updated.
Michael Schmidt 5d992fc5 2019-07-20T12:52:48 Added basic support for LilyPond (#1967) This adds very basic support for LilyPond. More advanced features weren't implemented because the author (me) has no idea about music.
Michael Schmidt bb84f98c 2019-07-15T23:22:20 Added support for DNS zone files (#1961) This adds support for DNS zone files. The highlighting is quite simple as every type and class is highlighted as `keyword`. This is intentional as other token names (e.g. `class-name`, `function`, `builtin`, ...) are not highlighted by every theme resulting in large portions of unstyled text for some themes.
Michael Schmidt 473f7fbd 2019-07-03T12:34:20 Added support for PC-Axis file format (#1940) This adds a new language for the PC-Axis file format.
Michael Schmidt b19f512f 2019-06-30T03:20:40 Autoloader: Fixed and improved callbacks (#1935) This PR fixes and improves the internal Autoloader callbacks. ### Bug Callbacks were stored in `success_callbacks` and `error_callbacks` and not removed after execution meaning once added, a callback was executed every time the language for which the callback was added for was requested (either directly or as a dependency). This bug wasn't very visible because of how the Autoloader is usually used. Usually, the Autoloader is used to load the languages for the static code in a page. This means that the Autoloader gets asked for a bunch of languages, loads them asynchronously and then executes the callbacks with this [line](https://github.com/PrismJS/prism/blob/d4373f3a282f4c09e4fb4dcbd8885c7848b61073/plugins/autoloader/prism-autoloader.js#L187) (`success` is [this](https://github.com/PrismJS/prism/blob/d4373f3a282f4c09e4fb4dcbd8885c7848b61073/plugins/autoloader/prism-autoloader.js#L306) function). Because it takes a little while until the language is loaded (certainly until the next tick), all callbacks will be registered before the `onload` of the script is called meaning that [this](https://github.com/PrismJS/prism/blob/d4373f3a282f4c09e4fb4dcbd8885c7848b61073/plugins/autoloader/prism-autoloader.js#L300) never gets executed. Thus the bug doesn't show up. (And even if it does, the success callback is usually just a `Prism.highlightElement` call.) I discovered this bug when I used Autoloader to highlight C like code and then after that was done (some ticks later), I used Autoloader to highlight JavaScript code. What followed was that the synchronously called callbacks caused a stack overflow. Just a bit of good ol' infinite recursion. I could have also fixed it by deferring callbacks to the next tick but I decided to rework the callback structure because this change of behavior might break some code. Autoloader invokes the callbacks of already loaded languages (and failed ones) synchronously while all other callbacks are called asynchronously. This fix keeps this behavior. (It's another question as to whether we should call all callbacks asynchronously. <sub><sup>Yes, we should IMO.</sup></sub>) ### Improvements 1. [This](https://github.com/PrismJS/prism/blob/d4373f3a282f4c09e4fb4dcbd8885c7848b61073/plugins/autoloader/prism-autoloader.js#L218) declaration and usage of `data` is completely unnecessary and was removed. 1. Typings for `lang_data`.
RunDevelopment 0b48301e 2019-06-12T15:46:07 Resolved conflicts