|
238f1163
|
2020-02-08T17:07:33
|
|
Toolbar: `data-toolbar-order` is now inherited (#2205)
The `data-toolbar-order` property is now inherited allowing for custom orderings/selections on an per-element basis.
|
|
2e0eff76
|
2020-02-07T16:44:48
|
|
CSS: Added support for the selector function (#2201)
This adds support for CSS 4's selector function. The selectors passed to the function will now be highlighted as such.
|
|
a7d67ca3
|
2020-02-04T15:17:11
|
|
VB: Added support for comments with line continuations (#2195)
|
|
3b42536e
|
2020-02-04T13:47:56
|
|
PHPDoc: Fixed exponential backtracking (#2198)
This fixed the exponential backtracking of the pattern which matched PHP classes.
|
|
984e5d2e
|
2020-01-31T22:50:59
|
|
Core: Fixed scope problem in script mode (#2184)
A function in Core was defined inside an `if` which isn't allowed in JS strict mode.
|
|
0bf73dc7
|
2020-01-22T07:08:01
|
|
Added link to prism-liquibase Bash language extension. (#2191)
In an effort to make some of our documentation easier to parse, Liquibase has published an extension to the Bash language to offer tokenization of Liquibase CLI commands.
|
|
81e1c3dd
|
2020-01-18T17:23:39
|
|
Tests: Added new pattern check for octal escapes (#2189)
This adds a new pattern check to disallow octal character escapes (e.g. `\12`).
|
|
5450e24c
|
2020-01-15T15:04:09
|
|
Elixir: Added support for attributes names ending with `?` (#2182)
|
|
6fd5c96b
|
2020-01-13T08:39:40
|
|
1.19.0
|
|
275366f7
|
2020-01-13T08:39:18
|
|
Fix date in CHANGELOG
|
|
dc136fd3
|
2020-01-13T14:37:43
|
|
Updated changelog for 1.19.0 (#2169)
This also includes a small update to the changelog generation to account for `dependencies.js`.
|
|
2a570fd4
|
2020-01-12T02:23:06
|
|
OCaml: Improvements (#2179)
- Added some missing keywords
- Added highlighting for modules, labels, and constructors
- Split polymorphic variant types and type variables
|
|
e5678a00
|
2020-01-12T02:13:05
|
|
Updated gulp to v4.0.2 (#2178)
|
|
ef4d29d9
|
2020-01-11T02:05:37
|
|
Handlebars: Added support for `:` and improved the `variable` pattern (#2172)
This adds support for `:` as punctuation and removes the `.` from the list of allowed characters in the `variable` pattern as it is impossible to match because of the `punctuation` pattern.
|
|
543f04d7
|
2020-01-10T16:08:22
|
|
Custom Class: Fixed TypeError when mapper is undefined (#2167)
|
|
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
|
|
99d979a0
|
2020-01-07T09:10:22
|
|
SAS: Added CASL support (#2112)
This adds CASL support, a scripting language used within PROC CAS in SAS.
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=pgmdiff&docsetTarget=p06ibhzb2bklaon1a86ili3wpil9.htm&locale=en
|
|
fd857e7b
|
2020-01-06T19:12:49
|
|
JSX: Improved spread operator in tag attributes (#2159)
This allows any number of spaces around JSX attribute spread expressions.
|
|
86780457
|
2020-01-06T20:09:40
|
|
Added missing `.token` selector (#2161)
This fixes lone `.namespace` rules without the .token component selector some themes had.
|
|
0b539136
|
2020-01-06T14:39:45
|
|
Added checks for examples (#2128)
This adds a check to `premerge` to detect missing and lone examples.
All currently missing examples were added with some exceptions.
|
|
0c2fe405
|
2020-01-06T14:38:47
|
|
Custom Class: Fixed examples (#2160)
This adds a missing class to an example.
|
|
d7ad48f9
|
2020-01-06T13:50:17
|
|
Markdown: Better language detection for code blocks (#2114)
This improves the language detection for code blocks by using only the first word instead of the whole expression and replacing some characters so languages like `c#` and `c++` are supported.
|
|
191b4116
|
2020-01-06T13:28:17
|
|
Added silent option to `loadLanguages` (#2147)
This adds an option to `loadLanguages` which prevents all warning messages.
|
|
1fbac169
|
2020-01-05T20:20:00
|
|
Changelog: Updated v1.18.0 release date
|
|
1f3f8929
|
2020-01-05T20:11:53
|
|
JS: Added support for keywords after a spread operator (#2148)
This PR fixes that keywords after a spread operator weren't highlighted. This is mainly for the `await` and `new` keywords.
|
|
a06aca06
|
2020-01-05T20:09:24
|
|
Adds a check redundant dependency declarations (#2142)
This adds a test redundant dependency declarations (e.g. `require` + `optional` for the same component).
|
|
59068d67
|
2020-01-05T20:03:41
|
|
Added documentation for new dependency API (#2141)
|
|
f018cf04
|
2020-01-05T20:03:12
|
|
JSX: Made `$` a valid character for attribute names (#2144)
|
|
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
|
|
401d4b02
|
2020-01-05T19:59:16
|
|
Ruby: Override 'class-name' definition (#2135)
Unlike other C-like languages, in Ruby objects don't get initialized by
using `new Object` but `Object.new`. So whatever comes after `new`
probably isn't a classname.
|
|
7f1c55b7
|
2020-01-05T21:57:33
|
|
ReasonML: Add support for single line comments (#2150)
|
|
24c8f833
|
2020-01-05T19:56:14
|
|
PHP: Fixed exponential runtime of a pattern (#2157)
This fixes the exponential runtime of the pattern used to identify PHP code embedded in HTML.
|
|
199bdcae
|
2020-01-05T19:46:54
|
|
Dependencies: Improved `getLoader` (#2151)
This removes many temporary arrays and introduces lazy dependency and alias resolving.
|
|
a23d8f84
|
2020-01-05T18:34:45
|
|
JS: Better regex detection (#2158)
This improves the detection of regular expressions.
|
|
3c1fd1c8
|
2019-12-20T07:42:43
|
|
1.18.0
|
|
e20a2b71
|
2019-12-20T13:42:32
|
|
Create Changelog for 1.18.0 (#2136)
|
|
2f495905
|
2019-12-18T16:55:46
|
|
gulp: Fixed changes task
This fixes an issue in the changes task where removed languages were
causing a property access on `undefined`.
|
|
7a4a0c7c
|
2019-12-16T12:49:21
|
|
Standardized dependency logic implementation (#1998)
This adds a standard logic for handling dependencies between Prism components.
Right now, the download page, the `loadLanguages` function, and the test suite use the new dependency system.
|
|
a7f70090
|
2019-12-02T14:10:53
|
|
Added new Filter highlightAll plugin (#2074)
This adds a new plugin to Prism which allows users to filter which elements will be highlighted by the `highlightAll` and `highlightAllUnder` methods.
|
|
9908ca69
|
2019-12-02T01:43:42
|
|
Robotframework: Renamed example file (#2126)
This renames the example for the Robotframework language to match its id.
|
|
dab7998e
|
2019-11-16T10:40:14
|
|
Custom Class: New class adder feature (#2075)
This adds a new `add` function to the Custom Class plugin which gives users the ability to easily add their own specific classes for existing tokens.
|
|
baa78774
|
2019-11-16T00:59:18
|
|
Rename "robot-framework" to "robotframework" (#2113)
This changes the id of the Robot Framework language.
|
|
0fd062d5
|
2019-11-01T22:31:17
|
|
Core: Fixed null reference (#2106)
The new defer logic in Prism Core did not handle that the script element might be null.
|
|
631f1e34
|
2019-10-26T18:53:47
|
|
Added support for BrightScript (#2096)
This adds support for BrightScript.
|
|
f31946b3
|
2019-10-25T21:53:29
|
|
Added support for Moonscript (#2100)
This adds support for the Moonscript language.
|
|
aaf13aa6
|
2019-10-25T21:12:20
|
|
Added support for BBCode (#2095)
This adds support for the BBCode markup language.
|
|
ee7fdbee
|
2019-10-25T21:09:57
|
|
Java: Added missing :: operator (#2101)
This adds the `::` operator and removes the backreference for better performance.
|
|
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.
|
|
a3785ec9
|
2019-10-25T17:05:23
|
|
Core: Fixed race condition caused by deferring the script (#2103)
This fixes a race condition that can occur when deferring Prism components.
For more details see #2102.
|
|
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.
|
|
68d1c472
|
2019-10-20T10:59:47
|
|
Ruby: Made `true` and `false` booleans (#2098)
This makes `true` and `false` `boolean` tokens. Previously they were tokenized as `keyword`.
|
|
99994c58
|
2019-10-19T14:35:23
|
|
Markup: Improved doctype pattern (#2094)
This changes Markup's `doctype` pattern to adhere to the XML spec more closely.
|
|
f460eafc
|
2019-10-19T14:31:27
|
|
Ruby: Added missing keywords (#2097)
This adds the missing keywords `extend`, `include`, and `prepend`.
|
|
c187e229
|
2019-10-16T12:06:22
|
|
Added test for unused capturing groups (#1996)
This adds a test that checks for unused capturing groups in patterns and another test which ensures that lookbehind groups are always the first thing being matched in a pattern.
|
|
ad3fa443
|
2019-10-16T11:44:14
|
|
Inlined some unnecessary rest properties (#2082)
This inlines a few unnecessary `rest` properties.
|
|
cfac94ec
|
2019-10-16T11:41:51
|
|
Added SQF language (#2079)
This adds support for the SQF language.
https://community.bistudio.com/wiki/SQF_syntax
|
|
0b771c90
|
2019-10-16T11:33:14
|
|
Added support for etlua (#2050)
This adds support for etlua (Embedded Lua templating).
|
|
aaaa29a8
|
2019-10-16T11:28:54
|
|
Added support for ANTLR4 (#2063)
This adds support for ANTLR4.
Languages embedded via actions are not highlighted.
|
|
7db0cab3
|
2019-10-16T11:26:18
|
|
Minor improvements for C-like and Clojure (#2064)
All changed patterns are equivalent with the exception of `c-like.class-name.pattern` where the `\b` before `catch` is new.
|
|
2f3da7e8
|
2019-10-16T11:18:57
|
|
Added support for FTL (#2080)
This adds support for FTL (Freemarker language).
|
|
fdb7de0d
|
2019-10-16T10:58:39
|
|
JavaScript: Added Optional Chaining and Nullish Coalescing (#2084)
This adds support for optional chaining (`?.`) and nullish coalescing (`??`).
|
|
717ace02
|
2019-10-15T16:03:54
|
|
AQL: Disallow unclosed multiline comments again (#2089)
This reverts commit f3c6ba590345b140a2306903a5396e28187466eb.
|
|
c8b48b9f
|
2019-10-13T22:28:29
|
|
TypeScript: Added missing keyword `undefined` (#2088)
This adds `undefined` to the list of keywords in TypeScript.
|
|
07020c7a
|
2019-10-07T08:39:40
|
|
SAS: Minor improvements (#2085)
* Reorder comment array to fix edge case added to comment_feature.test
* Adjust datalines to allow for possible preceding spaces before the closing semicolon
* Move comment in SAS object for correct syntax matching precedence
* Add several more keywords
|
|
5d07aa7c
|
2019-10-05T13:53:01
|
|
Added @mAAdhaTTah and @RunDevelopment to credits and footer
|
|
0e5c48d1
|
2019-09-30T21:09:34
|
|
JS: Tokenize `:` as an operator (#2073)
This changes the JS tokenization of `:` (colon) to `operator`.
|
|
cdfa60ac
|
2019-09-30T19:43:33
|
|
Added plugin descriptions to plugin list (#2076)
This adds plugin descriptions to the plugin lists on the website.
|
|
53f07b1b
|
2019-09-26T16:46:43
|
|
Issue template improvements (#2069)
This fixes a typo in the issue templates and comments out some instruction to make them invisible in the issue.
|
|
8ea685b8
|
2019-09-25T18:52:28
|
|
Clojure: Added multiline strings (lisp style) (#2061)
This adds support for linebreaks in Clojure strings.
|
|
a7b95dd3
|
2019-09-24T17:38:09
|
|
Added support for syntax in Java 13 (#2060)
This adds support for the new `yield` keyword and text blocks (triple quoted strings) which are both introduced in Java 13.
|
|
007c9af4
|
2019-09-18T18:32:47
|
|
Tests: Simplified error message format (#2056)
The error messages will now only contain the actual token stream the failed test and a full path of the test file plus the line and column number of the position of the first difference between the expected token stream and the actual token stream.
|
|
f3c6ba59
|
2019-09-18T14:57:34
|
|
AQL: Allow unclosed multi-line comments (#2058)
AQL does not require multi-line comments to be closed. ArangoDB simply treats everything until the end of the query string as a comment in that case. This PR adjusts Prism to highlight such comments correctly.
|
|
899574eb
|
2019-09-16T18:12:48
|
|
AQL: More pseudo keywords (#2055)
This adds `COUNT`, `CURRENT`, `KEEP`, and `PRUNE` to the list of keywords such that false positives are (mostly) avoided.
|
|
32a4c422
|
2019-09-12T21:40:54
|
|
AQL: Added missing keyword + minor improvements (#2047)
This adds 5 missing keywords, fixes the operator pattern to support the array concatenation operator properly, and makes the number pattern stricter.
|
|
1af89e06
|
2019-09-10T13:38:22
|
|
Added .github folder to npm ignore (#2052)
This adds the `.github` folder to `.npmignore` to exclude the directory from future releases.
|
|
6cd0738a
|
2019-09-06T01:19:56
|
|
Readme: Links now use HTTPS if available (#2045)
This changes some link of our README to use HTTPS wherever possible.
|
|
8bcc1b85
|
2019-09-06T00:31:20
|
|
Website: Use HTTPS link to alistapart.com (#2044)
This changes the link to alistapart.com to use HTTPS.
|
|
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/
|
|
1aabcd17
|
2019-09-05T00:10:59
|
|
Smalltalk: Fixed single quote character literal (#2041)
This fixes the incorrect tokenization of the character literals of single quotes which were recognized as string delimiters.
|
|
365faade
|
2019-09-04T16:53:47
|
|
New Match Braces plugin (#1944)
This adds a new plugin to highlight matching braces in highlighted code.
|
|
56a8711c
|
2019-09-03T20:52:15
|
|
Website: Fixed the Toolbar plusing's overflow issue (#1966)
This fixes the overflow issue of all Toolbar related plugins where some button were hidden behind the theme selection.
|
|
8403e453
|
2019-09-03T19:06:15
|
|
Added Inline color plugin (#2007)
This adds a new plugin to display an inline preview of CSS colors as most IDEs do.
|
|
010a0157
|
2019-09-03T17:45:53
|
|
D: Fixed strings (#2029)
* Fixed D strings
* Rebuilt
|
|
8a572af5
|
2019-09-03T17:43:51
|
|
Website: FAQ update (#1977)
This removes the little script to show all tokens of a language and replaces it with a little UI to do the task on the Prism website.
|
|
c6c62a69
|
2019-09-03T17:09:27
|
|
Made the download button its own plugin (#1840)
This makes the download button its own plugin instead of being part of File highlight.
|
|
d49f0f26
|
2019-09-03T16:40:02
|
|
Doubly check the `manual` flag (#1957)
This fixes the behavior of manual highlighting where it would highlight everything even with `manual: true`.
This also adds doc as to how manual highlighting works.
|
|
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
|
|
3fda5c95
|
2019-09-03T12:49:58
|
|
Added test for nice names (#1911)
This adds a test which requires every token name to match a strict pattern to avoid inconsistent naming styles.
|
|
5c68a556
|
2019-09-03T12:34:16
|
|
Use modern JavaScript in the NodeJS usage section (#1942)
This updates the code examples in the NodeJS usage section to use modern JavaScript (ES6) features.
|
|
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/
|
|
fb618331
|
2019-09-02T20:22:18
|
|
Groovy: Minor improvements (#2036)
This makes some minor improvements to the Groovy language definition.
- Triple quoted strings now support backslash escapes
- A single `.` will now be highlighted as `punctuation` instead of `operator` to be consistent with other languages.
|
|
3fdb7d55
|
2019-09-02T20:08:04
|
|
Added support for AQL (#2025)
This adds support for the AQL language.
https://www.arangodb.com/docs/stable/aql/
|
|
8ccd258b
|
2019-09-02T13:15:40
|
|
Turtle: Minor improvements (#2038)
This makes a few minor improvements to Turtle:
- Multiline strings were too greedy and matched `"""a"""""` whole.
- URLs (IRI) were too accepting.
- The keyword patterns are now disjoint.
|
|
2d858e0a
|
2019-08-31T15:43:28
|
|
Core: Minor improvements (#1973)
This makes some minor improvements to Prism Core like refactoring and style clean up.
|
|
174ed103
|
2019-08-29T23:38:59
|
|
Core: Fixed greedy partial lookbehinds not working (#2030)
This fixes the bug that greedy patterns with a lookbehind group did not support other top-level alternatives (e.g. `/foo|(lookbehind)bar/`) causing an error when used.
|
|
e864d518
|
2019-08-29T23:24:17
|
|
Core: Fixed greedy targeting bug (#1932)
The `target` parameter defines the token which causes rematching. Rematching is done by recursively calling `matchGrammar` where `target` will be the current token name. The rematching is done if either a match was found or we reached the target token, whatever comes first.
The bug is that a token is identified by its name. But the name alone doesn't uniquely identify a token in a grammar because many tokens can have the same name (array).
This fixes this bug.
|
|
3509f3e5
|
2019-08-29T16:37:13
|
|
Improved test page performance for Chromium (#2020)
This improves the performance of the test page for large chunks of text in Chromium-based browsers.
|
|
a7cf56b7
|
2019-08-29T16:25:02
|
|
Added suppprt for Zig (#2019)
This adds support for the Zig language.
https://ziglang.org/
|
|
d03d19b4
|
2019-08-29T16:22:03
|
|
Less: Fixed exponential backtracking (#2016)
This fixes the exponential backtracking in 2 of Less' patterns.
|
|
5b8a16d9
|
2019-08-29T16:15:05
|
|
Python: Fixed decorators (#2018)
This adds a missing multiline flag to support more than one decorator.
|