Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 2 #3

Merged
merged 151 commits into from
Mar 1, 2019
Merged

Patch 2 #3

merged 151 commits into from
Mar 1, 2019

Conversation

zaborek
Copy link
Owner

@zaborek zaborek commented Mar 1, 2019

No description provided.

mAAdhaTTah and others added 30 commits June 16, 2018 21:51
* Updated index.html to fix broken instructions

Requiring components without the "index.js" part and calling "loadLanguages" results in a function not found error for me. Adding index.js, as commented by @Golmote, fixes that error.

Ref: PrismJS#972

* Updated index.html to fix nodejs instructions

Fixed the require so that nodejs does not give an error when requiring the loadLanguages function.
* fix function without arguments in scheme language

* update tests for scheme
* Fix numbers to include negative numbers.
* Remove hexidecimal from numbers it is not a valid value.
* Remove ) and ; from punctuation they are not valid punctuation.
* Include missing tests for punctuation and operators.
Fix some of the texts from breaking in weird ways.
Update the download page to properly order components when they have
peer dependencies.
Removes some workarounds for misplacing the reference when using `insertBefore`.
When called as methods on a promise chain, the current regex
would mark `catch` and `finally` as keywords. This regex improvement
ensures they're only caught as part of a `try / catch` block, and are
marked as functions as part of the promise chain.
Using the factory vs constructor form is the same, so removing
`new` results in less code.
The problem was a bug unique to Firefox which causes offsetTop of span.token
to always be 0 under certain conditions. It only occurred together with of the
line-number plugin because setting position: relative for the pre > code elements
triggers that FF bug.

The offset is now calculated using bounding boxes.

Tested in Chrome, Edge, IE, FF, and Opera.

Fixes PrismJS#1496.
Fixes PrismJS#1454.

Quotes that are escaped by using the same quote twice (e.g. 'It''s me') are now supported.
Also enforced `alias` before `owner`.
Corrects “accomodate” to spell “accommodate”.
Updates the .editorconfig to display tabs as four spaces.
This PR extends and updates the operators of C, C++, and Java.

Java and C++ now support the -> operator.
(C++ had a bug.)

The tests of all languages were updated and the operator pattern for
each language is now shorter.
Fixes PrismJS#1471.

It also extends function-variable to include object properties.

e.g.

```js
{foo: function() {}}
```
The PR adds a class-name alias to all the tags of React components. Tags which start
with an uppercase letter are considered React components. HTML tags remain unchanged.

Fixes PrismJS#1518.
Behavior with quoted variables was incorrect for SQL. This fixes that issue
by introducing a new regex for variables and making the current regex greedy.

Fixes PrismJS#1509.
Add support for BigInt literals to JS and languages extending or including JS.
This PR fixes a bug with supposed class names.

Lowercase supposed class names are no longer highlighted.

**Before**:
![before](https://user-images.githubusercontent.com/20878432/44656379-e7c17900-a9f8-11e8-8b1a-7f1dd694263e.png)

**After**:
![after](https://user-images.github
usercontent.com/20878432/44656379-e7c17900-a9f8-11e8-8b1a-7f1dd694263e.png)
GameMaker is a cross-platform game engine developed by YoYo Games.
There is another variable named script in the autoloader.
RexSkz and others added 29 commits February 12, 2019 16:30
Adds class-name highlighting for JSX/TSX tag names containing dots.
This PR resolved PrismJS#1729.

Disclaimer: # comments are only supported by [some implementation](https://en.wikipedia.org/wiki/INI_file).
Adds `yarn add` to bash functions.
This adds the `keyword` alias to the `null` pattern in JSON.
This adds `pnpm` to the list of supported functions in Bash.
Add the `keyword` alias to the `null` pattern for SCSS.

This was the last `null` pattern without any aliases (PrismJS#1727).
This PR fixes PrismJS#1762 by fixing the `string` pattern which sometimes fails in exponential time.
This PR fixes that JSON did not support [JSONP](https://en.wikipedia.org/wiki/JSONP) callback functions.

I also added a JSON example page.
This corrects my previous mistake where I forgot to adjust the example of JSON after changing the implementation of JSONP.
This adds a new language: ANBF (Augmented Backus–Naur form).
This adds the BNF and RBNF languages.
This adds the EBNF language.
This adds the JSON5 language to Prism.
Allows for spaces around the punctuations of function invocation via `apply`, `bind`, or `call`.
This changes the JS constant pattern so that all WebGL constants (like `FLOAT_MAT2x4`) are matched.
This fixes that empty strings and comments were not recognized in Smalltalk.
This fixes some issues related to markup (XML/HTML) attributes. See the PR for more detail.
Fixes variables names "async" in JS.
This adds JS Extras, a few additional features for the JS language.
This adds support for JavaDoc, JSDoc, TSDoc, and PHPDoc.
Minor improvements for the two functions.
This fixes that PHP's closing tag (`?>`) was detected inside strings and comments.
This changes util.clone to be more readable and to avoid redeclaring the `clone` and `id` variables.
@zaborek zaborek merged commit 2fb84bf into patch-1 Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.