|
2288c25e
|
2018-12-01T18:37:20
|
|
Add G-code language (#1572)
This PR adds the [G-code language](https://reprap.org/wiki/G-code) to Prism
and resolves #1571.
### Features
- All fields from A-Z ([case sensitive](https://reprap.org/wiki/G-code#Case_sensitivity)) and [checksums](https://reprap.org/wiki/G-code#.2A:_Checksum) (`*`).
- [Comments](https://reprap.org/wiki/G-code#Comments) of both the semicolon and parenthesis style.
- [Quoted strings](https://reprap.org/wiki/G-code#Quoted_strings).
- The colon punctuation of [lists (see the example)](https://reprap.org/wiki/G-code#M584:_Set_drive_mapping).
|
|
225dd3f7
|
2018-11-29T14:07:27
|
|
Scheme improvements (#1556)
1. `)` is part for symbols (strings).
2. Function names which have a keyword/builtin as a prefix are not matched correctly.
3. Zero-length function names.
4. `'` is highlighted as `string` even if it marks a list.
Also add support for Scheme characters.
|
|
1d1fb800
|
2018-11-29T13:43:22
|
|
Python: Operator keywords are now keywords (#1617)
Change `and`, `not`, and `or` to keywords.
|
|
3590edde
|
2018-11-29T12:25:28
|
|
Add missing keywords to rust. (#1634)
Adds `dyn`, `Self`, and `union` to the list of rust keywords.
|
|
38def334
|
2018-11-28T17:45:17
|
|
Add new language: CIL (#1593)
Add support for the Common Intermediate Language from .NET.
|
|
c6584290
|
2018-11-28T16:12:09
|
|
Fixed Markdown headers (#1557)
This PR fixed markdown header of the form:
```
Überschrift
-----------
```
|
|
2864fe24
|
2018-11-28T14:54:29
|
|
Improve `Prism.util.type` performance (#1545)
Drop the regex in favor of a faster `slice` call.
|
|
a2230c38
|
2018-11-28T14:26:31
|
|
Add additional commands to bash (#1577)
Includes "apt", "apt-cache" or "parted" and others.
|
|
9d2fddc2
|
2018-11-28T14:21:20
|
|
Added strike support to markdown (#1563)
This PR adds support for the strike operator in [both forms][1].
It does not include actual styling for the strike operator as it
makes the ~ character really hard to read.
[1]: https://webapps.stackexchange.com/questions/14986/strikethrough-with-github-markdown/103691#103691
|
|
1c5f28a9
|
2018-10-29T12:00:54
|
|
Allow YAML strings to have trailing comments (#1602)
Updates the string regex to allow for strings that may have a trailing '#'.
This uses a different pattern from other regex patterns, because only
the string regex pattern is greedy, while the others are not.
Fix #1601.
|
|
da474c77
|
2018-10-26T02:20:21
|
|
Cleaned up JSON (#1596)
This PR removes useless flags (because JS is case sensitive, so is JSON)
and adds one to number to make the pattern more compact.
|
|
8720b3e6
|
2018-10-25T20:56:57
|
|
Adds support for comments in JSON (#1595)
While JSON doesn't explicitly support comments, they're commonly used
and there are supersets of JSON that do make comments available. PrismJS
is not a linter, and this is a useful feature to include when displaying JSON.
|
|
bfbe4464
|
2018-10-24T04:08:51
|
|
Invoke `callback` after `after-highlight` hook (#1588)
Previously, `callback`, as passed to `Prism.highlightElement`, would get called before
all of the hooks had been run. This moves it after all the hooks, so it can truly be considered
a "complete" callback.
This could be a breaking change for any userland modifications that were expecting `callback`
to fire before plugins, but we expect this change to mostly conform with user expectations and
consider this a bugfix..
|
|
0d73f7f5
|
2018-10-19T22:48:21
|
|
Add new keywords to nginx (#1587)
Adds some missing keywords to the nginx language.
|
|
c1d6cb85
|
2018-10-19T04:06:02
|
|
Fix tokenizing !important (#1585)
Updates the regex to ensure that when `!important` sits next
to a property with no spaces, it's still tokenized correctly.
|
|
11695629
|
2018-10-18T20:34:53
|
|
Enhance definitions in TypeScript component (#1522)
Add missing keywords & built-ins to the TypeScript definition.
|
|
f96b083a
|
2018-09-23T15:20:05
|
|
F#: Chars can only contain one character (#1570)
This PR fixes #1480.
|
|
e529edd8
|
2018-09-15T21:52:37
|
|
Add GameMaker Language support (#1551)
GameMaker is a cross-platform game engine developed by YoYo Games.
|
|
b520e1b6
|
2018-09-09T18:33:43
|
|
Simplify function pattern of C-like language (#1552)
`/[a-z0-9_]/i` == `/\w/`
|
|
8c981a22
|
2018-09-06T13:33:07
|
|
Add Java 10 support (#1549)
Add `var` as a new keyword–added in Java 10:
https://developer.oracle.com/java/jdk-10-local-variable-type-inference
|
|
a47c05ad
|
2018-08-28T05:39:08
|
|
Fixed lowercase supposed class names (#1544)
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)
|
|
2b62e57b
|
2018-08-23T22:20:26
|
|
Added support for JS BigInt literals (#1542)
Add support for BigInt literals to JS and languages extending or including JS.
|
|
42d119a2
|
2018-08-23T16:47:45
|
|
SQL Quoted variables are now greedy (#1510)
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 #1509.
|
|
3e1a9a3d
|
2018-08-20T16:22:11
|
|
React component tags are styled as classes in JSX (#1519)
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 #1518.
|
|
c40f6047
|
2018-08-19T20:28:57
|
|
Highlighting of supposed classes and functions (#1482)
Fixes #1471.
It also extends function-variable to include object properties.
e.g.
```js
{foo: function() {}}
```
|
|
0f75d9d4
|
2018-08-19T18:18:03
|
|
Fixed that selector pattern can take exponential time (#1499)
Fixes #1498.
|
|
7af8f8be
|
2018-08-19T17:09:29
|
|
C/C++/Java operator update (#1528)
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.
|
|
a59a7926
|
2018-08-19T16:47:52
|
|
Added support for quote escapes to SQL strings (#1500)
Fixes #1454.
Quotes that are escaped by using the same quote twice (e.g. 'It''s me') are now supported.
|
|
44fed4d3
|
2018-08-19T16:10:29
|
|
Replaced all occurrences of `new RegExp` with `RegExp` (#1493)
Using the factory vs constructor form is the same, so removing
`new` results in less code.
|
|
ebd1b9a6
|
2018-08-19T16:06:34
|
|
Fix regex for `catch` and `finally` (#1527)
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.
|
|
9dfec340
|
2018-08-18T22:04:51
|
|
`insertBefore` now correctly updates references (#1531)
Removes some workarounds for misplacing the reference when using `insertBefore`.
|
|
74fe81c6
|
2018-07-21T14:10:18
|
|
Fix bugs in JSON language
* 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.
|
|
12a827e7
|
2018-07-07T14:56:36
|
|
fix function without arguments in scheme language (#1463)
* fix function without arguments in scheme language
* update tests for scheme
|
|
5f04f4d4
|
2018-06-16T11:34:56
|
|
Merge pull request #1440 from PrismJS/fix-solidity-protocol
Fix Swift protocol
|
|
09b56af2
|
2018-06-16T11:34:41
|
|
Merge pull request #1430 from PrismJS/add-tap
Add TAP component
|
|
41e3d6a6
|
2018-06-16T11:25:09
|
|
Update minified files
|
|
2c6b6a42
|
2018-06-11T20:57:22
|
|
Fix Swift protocol test
|
|
791f4000
|
2018-05-27T17:46:52
|
|
Add tests
Also fix up the patterns in light of said tests & code review.
|
|
081e318c
|
2018-03-31T15:09:18
|
|
Fix Swift 'protocol' keyword
|
|
15957702
|
2018-06-05T16:13:14
|
|
Merge branch 'gh-pages'
* gh-pages: (33 commits)
Add double-class specificity hack (#1435)
Moved tutorial link to the end of the list
Make line-numbers styles more specific
Fix mixed content warning
Create CNAME
Delete CNAME
Update documentation for node & webpack usage
Handle optional dependencies in `loadLanguages()` (#1417)
Add `objectpascal` as an alias to `pascal` (see #1426)
Add support for XQuery. Fix #1405 (#1411)
Website: Fix Download page not handling multiple dependencies when from Redownload URL
JSX: Add support for fragments short syntax. Fix #1421
Support for Template Toolkit 2 (#1418)
ASP.NET should require C#
Run gulp
Move guard into conditional and check for language
Don't process language if block language not set
JSX: Allow for two levels of nesting inside JSX tags. Fix #1408
Add missing reference to issue in specific test.
Powershell: Allow for one level of nesting in expressions inside strings. Fix #1407
...
# Conflicts:
# components/prism-kotlin.js
|
|
a21fdee6
|
2018-06-05T08:08:33
|
|
Kotlin: add `typealias` keyword
|
|
8c2b71f1
|
2017-01-27T20:21:46
|
|
Add TAP component
Includes build changes.
|
|
84935acd
|
2018-05-26T15:36:24
|
|
Handle optional dependencies in `loadLanguages()` (#1417)
* Add optional dependencies in `components.json`
* Handle optional dependencies in `loadLanguages()`
* Feedback
|
|
a0bfc84d
|
2018-05-26T11:59:14
|
|
Add `objectpascal` as an alias to `pascal` (see #1426)
|
|
e326cb03
|
2018-05-26T11:39:35
|
|
Add support for XQuery. Fix #1405 (#1411)
|
|
38ce1213
|
2018-05-15T20:27:53
|
|
JSX: Add support for fragments short syntax. Fix #1421
|
|
e063992b
|
2018-05-10T12:07:34
|
|
Support for Template Toolkit 2 (#1418)
* support for Template Toolkit 2
* optimized quoted string regexes
* optimized double-quoted string regex
* fully qualified tt2 plug-in names don't work
Also use \w.
* do not use empty character class
See #1107.
* put keyword tests in alphabetical order
* ordered tt2 keywords alphabetically
* removed redundant operator rule for tt2
* removed possibly existing old rules before inserti
* indentation
* allow backslash in front of lf in tt2 strings
* indentation
* avoid backtracking
* escape xml special characters
* indent with tab instead of spaces
* greedy is no longer needed for variables
Also use \w instead of explicit character class.
* re-generated with gulp
|
|
f1cd7c56
|
2018-04-27T08:56:19
|
|
JSX: Allow for two levels of nesting inside JSX tags. Fix #1408
|
|
9272d6f4
|
2018-04-27T08:27:02
|
|
Powershell: Allow for one level of nesting in expressions inside strings. Fix #1407
|
|
db2d0ebb
|
2018-04-22T15:12:28
|
|
JavaScript: Add support for one level of nesting inside template strings. Fix #1397
|
|
ea3615e3
|
2018-04-17T21:31:55
|
|
Run gulp
|
|
b94f01f1
|
2018-04-17T13:17:09
|
|
Change reserved keyword reference (#1396)
* change boolean keyword accessor in bash.min
* change boolean keyword accessor in bash
|
|
dac0485e
|
2018-04-17T00:25:03
|
|
Elixir: Fix attributes consuming punctuation. Fix #1392
|
|
5b043cf8
|
2018-04-13T08:59:26
|
|
JavaScript: Improve Regexp pattern
|
|
1bf73b0b
|
2018-04-13T14:18:38
|
|
Add keywords of Kotlin and modify it's number pattern. (#1389)
* Add keywords & modify number pattern.
- Missing keywords by the creator: vararg dynamic infix operator;
- New keywords by Kotlin 1.1&1.2: suspend typealias external expect actual;
- Remove keyword 'to' as it just a common function name;
- Add seperator '_' for the number iteral;
- Prefix of hexadecimal and binary can also be capital.
* Fix the wrong format of test file.
|
|
f6e81cb4
|
2018-04-11T23:08:00
|
|
HTTP: Absolute path is a valid request uri (#1388)
|
|
b4509bf5
|
2018-04-11T08:58:28
|
|
Add support for Soy (Closure Template). Fix #1316 (#1387)
|
|
c28d8c5e
|
2018-04-11T08:53:56
|
|
Add support for WebAssembly. Fix #1140 and fix #1384 (#1386)
|
|
6e0b20a4
|
2018-04-11T08:50:52
|
|
Add support for GEDCOM. Fix #899 (#1385)
|
|
c673ec29
|
2018-04-11T08:47:26
|
|
Add support for Visual Basic. Fix #985 (#1382)
|
|
5a524f7e
|
2018-04-11T08:44:44
|
|
Add support for Velocity. Fix #1372 (#1378)
|
|
1bfc0848
|
2018-04-08T11:44:07
|
|
Bash: Add curl to the list of common functions. Close #1160
|
|
659ea314
|
2018-04-07T10:41:08
|
|
Core: Fix support for language alias containing dash `-`
|
|
04df41b3
|
2018-04-07T10:18:57
|
|
Eiffel: Fix verbatim strings. Fix #1379
|
|
46468f84
|
2018-04-05T12:24:22
|
|
Add support for Lisp (#1297)
* add emacs
* rename to elisp
* add elisp to components
* add comment test
* add heading test
* WIP string test
* update string tests
* test symbols in strings
* test arguments
* test quoted symbol
* lisp-property test
* splice test
* add keyword test
* test for declare
* test interactive
* boolean test
* test numbers
* test defvar
* fix greedy defun regex
* test defun
* test lambda
* test car
* test punctuation
* use var instead of const
* remove arrow functions
* flatten language structure
* remove unnecessary escaping
* add lisp and emacs
* add lisp
* fix template strings
* minify lisp
* add example elisp file
* simplify number
* don't mark other def as keywords
* dont mark other def as keyword in defun
* make lambda a keyword only at the beginning
* restore single quotes in components
* double quote in elisp
* minify elisp
* quote keys in components
* rename punctuation test
* add semicolons elisp
* undo prettier changes to components.js
* add lisp to components.json
* rename elisp to lisp
* fix components.json
* add minified lisp file
* rename example lisp file
* move lisp to first position
* explain null initialized properties in lisp file
* remove trailing commas
* put lisp first in example file
* add ifee for lisp file
* update lisp min file
* update show language assets
* add components index min file
* add emacs-lisp alias
* change title of lisp example file
* undo theme change
* combine regex for parens
* remove min index
* remove unneeded example html
* remove doubled string test
* capitalize lisp in components
* change string theme to match master
* build assets after adding lisp
|
|
238b1952
|
2018-04-05T08:33:59
|
|
SQL: Add missing keywords. Fix #1374
UNLOCK, PREPARE, LOOP, ITERATE, REPEAT, LEAVE, RESIGNAL
|
|
0a95f69d
|
2018-03-28T20:05:45
|
|
C#: More specific class-name highlighting. Fix #1371
|
|
b0e34fbe
|
2018-03-26T21:12:08
|
|
Ruby: Make multi-line comments greedy, remove single-line comment hack. Update known failures and tests.
|
|
a0f50811
|
2018-03-26T21:09:07
|
|
Q: Make comments greedy. Update known failures and tests.
|
|
0c139d1f
|
2018-03-26T21:05:43
|
|
Puppet: Make heredoc, comments, regexps and strings greedy. Update known failures and tests.
|
|
d7b2b43c
|
2018-03-26T21:00:12
|
|
Monkey: Make comments greedy. Update known failures and tests.
|
|
e93d61f3
|
2018-03-26T20:57:31
|
|
Elixir: Make regexps greedy, remove comment hacks. Update known failures and tests.
|
|
c083b78c
|
2018-03-26T20:54:34
|
|
Fortran: Make single-line comments greedy. Update known failures and tests.
|
|
571f2c50
|
2018-03-26T20:53:20
|
|
C-like: Make single-line comments greedy. Fix #1337. Make sure #1340 stays fixed.
|
|
294efaae
|
2018-03-26T20:48:26
|
|
Core: Greedy patterns should always be matched against the full string. Fix #1355
|
|
172d351a
|
2018-03-26T20:11:41
|
|
JavaScript: Improve Regex matching
|
|
9084481f
|
2018-03-26T09:17:05
|
|
JavaScript: Add support for constants. Fix #1348
|
|
a5cf3025
|
2018-03-26T08:53:43
|
|
Java: Add support for generics. Fix #1351
|
|
5f9c078a
|
2018-03-25T13:46:42
|
|
Make ERB, Handlebars, PHP and Smarty highlight properly in NodeJS (#1367)
|
|
a6837d24
|
2018-03-24T12:25:27
|
|
C#: More generic class-name highlighting. Fix #1365
|
|
b26bbb83
|
2018-03-22T08:42:16
|
|
JSX: Fix highlighting of empty objects. Fix #1364
|
|
d2c026ef
|
2018-03-20T20:56:40
|
|
Powershell: Add lookbehind to fix function interpolation inside strings. Fix #1361
|
|
a5331a68
|
2018-03-20T20:57:34
|
|
Add a loadLanguages() function for easy component loading on NodeJS (#1359)
|
|
2b8321d3
|
2018-03-20T08:37:58
|
|
JSX: Add support for plain text inside tags (#1357)
* JSX: Add support for plain text inside tags
* JSX: Use a "plain-text" token to identify plain text
* TSX: Add support for plain text
* Fix test after merge
|
|
af834be6
|
2018-03-14T20:38:47
|
|
Markup: Make tags greedy. Fix #1356
|
|
cc80ccda
|
2018-03-13T08:15:56
|
|
Remove most of the cloning occurrences in language definitions.
|
|
f90d5559
|
2018-03-13T08:11:25
|
|
Core: Allow cloning of circular structures. (#1345)
|
|
efdccbfe
|
2018-03-12T20:28:06
|
|
Rust: Improve char pattern so that lifetime annotations are matched better. Fix #1353
|
|
3599e6a3
|
2018-03-11T12:11:51
|
|
Add support for PL/SQL (#1338)
* Add support for PL/SQL (Fix #1149)
* Merge gh-pages
|
|
e6213acb
|
2018-03-11T12:02:50
|
|
Add support for ERB. Fix #1318
|
|
cebacdfa
|
2018-03-08T23:14:40
|
|
Revert "C-like: Change order of comment patterns and make multi-line one greedy. Fix #1337"
This reverts commit b98e5b9
|
|
5d658471
|
2018-03-08T22:21:24
|
|
Code style
|
|
a298c621
|
2018-03-08T22:20:37
|
|
Use i flag to simplify some regexps
|
|
12c0b20a
|
2018-03-08T22:19:01
|
|
Decouple minus sign from number pattern in most languages. Close #1110
|
|
05bf67dc
|
2018-03-08T09:05:21
|
|
JSX: Allow for one level of nested curly braces inside tag attribute value. Fix #1335
|
|
31a2a697
|
2018-03-08T08:43:54
|
|
Ruby: Ensure module syntax is not confused with symbols. Fix #1336
|
|
0bc98ac1
|
2018-03-07T21:31:40
|
|
Add support for ARFF (Fix #653) (#1327)
|
|
926f6f86
|
2018-03-07T21:23:21
|
|
Rust: Add support for lifetime-annotation and => operator. Fix #1339
|
|
b98e5b9b
|
2018-03-07T20:53:45
|
|
C-like: Change order of comment patterns and make multi-line one greedy. Fix #1337
|
|
de29d4a3
|
2018-03-07T08:50:40
|
|
SQL: Add missing keywords and functions, fix numbers
|