|
1f7a245c
|
2020-03-07T11:53:31
|
|
Added tests for examples (#2216)
This adds a new test to validate the structure and syntax of all examples and moves the existing example test into the mocha test suite.
|
|
6232878b
|
2020-03-07T11:37:11
|
|
Examples: Updated content header (#2232)
This changes the automatically generated header of examples on Prism's example page.
The `overrideExampleHeader` option in `components.json` is no longer supported.
|
|
bd16bd57
|
2020-02-24T14:43:16
|
|
Shell-Session: Improvements (#2208)
- Added support for elevated shells starting commands with `#` instead of `$`.
- The user and cwd info `bash` and `sh` print before the interactive shell will now be highlighted.
- Changed the line ends of test files to CRLF.
|
|
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
|
|
f941102e
|
2020-02-16T13:49:33
|
|
Added support for Factor (#2203)
This adds support for the [Factor](https://factorcode.org) language.
|
|
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/
|
|
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
|
|
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
|
|
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.
|
|
9908ca69
|
2019-12-02T01:43:42
|
|
Robotframework: Renamed example file (#2126)
This renames the example for the Robotframework language to match its id.
|
|
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.
|
|
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).
|
|
2f3da7e8
|
2019-10-16T11:18:57
|
|
Added support for FTL (#2080)
This adds support for FTL (Freemarker language).
|
|
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/
|
|
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
|
|
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/
|
|
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/
|
|
a7cf56b7
|
2019-08-29T16:25:02
|
|
Added suppprt for Zig (#2019)
This adds support for the Zig language.
https://ziglang.org/
|
|
9f722586
|
2019-08-17T14:36:50
|
|
Added support for Firestore security rules (#2010)
This adds support for Google Cloud Firestore security rules.
|
|
e2b99f40
|
2019-08-14T11:40:43
|
|
Added support for GDScript (#2006)
This adds support for the GDScript language.
|
|
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.
|
|
508d57ac
|
2019-08-06T15:30:24
|
|
Added RDF Turtle/TriG language (#2012)
This adds support for the RDF Turtle/TriG language.
|
|
e7702ae1
|
2019-07-22T01:27:48
|
|
Diff: Added support for syntax highlighting inside diff blocks (#1889)
This adds support for syntax highlighting inside diff blocks via a new plugin called: Diff Highlight.
|
|
c8844286
|
2019-07-21T22:59:46
|
|
Highlight JS tagged template literals (#1931)
This adds support for highlighting embedded languages in JavaScript tagged template literals.
|
|
c93c066b
|
2019-07-20T12:35:15
|
|
Added support for Splunk SPL (#1962)
This adds support for Splunk SPL and corrects the position of the SQL in `components.json`.
|
|
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.
|
|
d58d2aeb
|
2019-07-13T15:41:07
|
|
F#: Improved character literals (#1956)
This adds support for all F# character escapes which should result in all characters being highlighted as such.
The problem was that character literals with escape sequences longer than two characters were not recognized.
|
|
858201c7
|
2019-07-10T21:45:22
|
|
Added support for PascaLIGO (#1947)
This adds support for the [PascaLIGO language](http://ligolang.org).
|
|
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.
|
|
de10bd1d
|
2019-07-01T19:55:12
|
|
Protobuf improvements (#1948)
This makes numerous improvements to the Protobuf grammar adding (almost) full support for PB2 and PB3 syntax.
|
|
36a5fa0e
|
2019-06-30T04:19:54
|
|
Known failure page (#1876)
This PR adds a known failures page. This resolves #1750.
The known failures are moved from the example pages.
(I also updated all example pages with invalid HTML.)
Some known failures were actually fixed in the meantime but never updated, so I removed a few. Those were:
- Handlebars
- Markdown's nested bold-italic
- Smarty
- Textile's "Nested styles are only partially supported"
### Screenshot
<details>
![image](https://user-images.githubusercontent.com/20878432/56849438-7eca3200-68f4-11e9-9dc3-bf0256be8d1e.png)
</details>
|
|
0b48301e
|
2019-06-12T15:46:07
|
|
Resolved conflicts
|
|
3e181241
|
2019-06-12T15:28:44
|
|
Added more examples & small TOML improvement (#1917)
This adds some of the missing examples and makes a small improvement to TOML.
|
|
73d964be
|
2019-06-08T20:15:08
|
|
Added support for JQ language (#1896)
This adds support for the JQ language.
|
|
96044979
|
2019-05-15T21:06:59
|
|
Added shell session language
|
|
c13d6e7d
|
2019-04-19T22:07:57
|
|
JS: Template strings: Increased bracket count of interpolations (#1845)
This increases the number of nested braces which can be matched by JS's template pattern to supported nested objects within interpolation expressions.
|
|
30779976
|
2019-03-20T22:10:17
|
|
Added support for CMake language (#1820)
This adds support for the [CMake](https://cmake.org/) language.
|
|
c37c90df
|
2019-03-05T22:17:36
|
|
Added EJS (#1769)
This adds the EJS (Embedded JavaScript templates) language to Prism.
|
|
64dc049d
|
2019-02-28T19:28:22
|
|
Added JSON5 language (#1744)
This adds the JSON5 language to Prism.
|
|
13e1c97d
|
2019-02-28T19:23:25
|
|
Added EBNF language (#1756)
This adds the EBNF language.
|
|
1df96c55
|
2019-02-28T19:18:05
|
|
Added BNF and RBNF languages (#1754)
This adds the BNF and RBNF languages.
|
|
6d98f0e7
|
2019-02-28T19:10:37
|
|
Added ANBF language (#1753)
This adds a new language: ANBF (Augmented Backus–Naur form).
|
|
ae4842db
|
2019-02-27T14:54:06
|
|
Fixed JSON/JSONP examples (#1765)
This corrects my previous mistake where I forgot to adjust the example of JSON after changing the implementation of JSONP.
|
|
b5041cf9
|
2019-02-26T05:41:01
|
|
Fix JSONP support (#1745)
This PR fixes that JSON did not support [JSONP](https://en.wikipedia.org/wiki/JSONP) callback functions.
I also added a JSON example page.
|
|
b94b56c1
|
2019-01-15T15:54:35
|
|
Added the Nand2Tetris HDL language (#1710)
This adds support for the [Nand2Tetris](https://www.nand2tetris.org/) HDL language.
|
|
7def8f5c
|
2019-01-03T23:52:27
|
|
Added N1QL language support (#1620)
Adds support for[N1QL](https://www.couchbase.com/products/n1ql) for Couchbase.
|
|
c939df8e
|
2018-12-27T20:56:24
|
|
Added support for HCL (#1594)
Adds support for HCL ([HashiCorp configuration language](https://github.com/hashicorp/hcl)).
|
|
b48c012c
|
2018-12-15T20:32:22
|
|
Added Vala language (#1658)
Adds support for the Vala language.
|
|
4a8219a4
|
2018-12-02T19:25:05
|
|
Add support for Java stack traces (#1520)
There are 3 main types of elements which are highlighted:
1. The summary.
This is the head of the stack trace and includes the name of the exception and a message.
`Exception in thread "main" java.lang.RuntimeException: A test exception`
2. Stack frames.
These make up the actual stack trace and include the full name of the method and the source.
`at com.stackify.stacktrace.StackTraceExample.methodB(StackTraceExample.java:13)`
3. Omitted frames.
This is a simple message that some frames were omitted.
`... 27 more`
Everything besides these 3 element types will not be highlighted.
|
|
a69c2b62
|
2018-12-02T16:48:53
|
|
Improvements to Python F-strings and string prefixes (#1642)
This PR adds support for [string interpolation](https://www.python.org/dev/peps/pep-0498/) (aka. f-strings) and makes the [string prefixes](https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals) part of the string.
Resolves #1636.
### Known issues
Assumes that strings inside the interpolation expression are 'nice'. So strings
with unfortunate numbers of curley braces will cause incorrect highlighting: E.g.: `f"{'}'}"`.
|
|
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).
|
|
b41fb8f1
|
2018-10-22T15:47:13
|
|
Fixes regex for JS examples (#1591)
This PR fixes a regex example which Prism does not highlight correctly
because it is preceded by a comment.
|
|
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.
|
|
e529edd8
|
2018-09-15T21:52:37
|
|
Add GameMaker Language support (#1551)
GameMaker is a cross-platform game engine developed by YoYo Games.
|
|
e00b408f
|
2018-06-26T11:32:31
|
|
Remove extraneous class
|
|
334c7bca
|
2018-06-26T11:21:28
|
|
Add Python triple-quoted strings "known failure" (#1449)
* Add example of failure in Python parser
|
|
e326cb03
|
2018-05-26T11:39:35
|
|
Add support for XQuery. Fix #1405 (#1411)
|
|
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
|
|
db2d0ebb
|
2018-04-22T15:12:28
|
|
JavaScript: Add support for one level of nesting inside template strings. Fix #1397
|
|
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)
|
|
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
|
|
259b6fc5
|
2018-03-26T21:18:06
|
|
Matlab: Update known failures.
|
|
5b6c76dc
|
2018-03-26T21:16:49
|
|
Markdown: Update known failures.
|
|
13d99915
|
2018-03-26T21:15:10
|
|
D: Update known failures and tests.
|
|
e1d2d420
|
2018-03-26T21:13:43
|
|
Crystal: Update known failures.
|
|
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.
|
|
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
|
|
c3ed5b52
|
2018-03-11T11:11:05
|
|
Website: Auto-generate example header with component title, list of aliases and dependencies.
`overrideExampleHeader` can be used to generate only the component title.
|
|
0bc98ac1
|
2018-03-07T21:31:40
|
|
Add support for ARFF (Fix #653) (#1327)
|
|
405867cb
|
2018-03-05T08:25:08
|
|
C#: Add "dotnet" alias.
|
|
f0b2c9e8
|
2018-03-04T15:43:39
|
|
Basic Syntax Highlighting for Liquid (#1326)
* Basic Syntax Highlighting for Liquid
[Liquid](http://shopify.github.io/liquid/), a template language by shopify
It is used in Jekyll and add some basic highlighting
* fix typo
* Corrections and Improvements
- move liquid above livescript
- regnerate languages for show language plugin, after fixing typo
- keywords
- tablerow and endtablerow are keywords
- add all keywords in test
- add funtcions test
* Minor Corrections
comply to whitespace settings, use tabs instead of spaces for indentation
|
|
ad25d221
|
2018-03-03T21:41:19
|
|
PHP: Fix shell-comment failure now that strings are greedy
|
|
5d7223c9
|
2018-03-03T21:39:51
|
|
PHP: Add support for Heredoc and Nowdoc strings
|
|
5e9c5754
|
2018-03-03T21:30:42
|
|
PHP: Update example with string interpolation
|
|
bdbdb7d8
|
2018-03-02T08:58:55
|
|
PHP: Update known failures
|
|
8b4d3bdc
|
2018-03-02T02:05:40
|
|
Add Clojure (#1311)
* Add Clojure
* Remove global flags
* Simplify comment match
* Update string regex
* Update keyword regex to use non-capturing group
* Update boolean regex to use non-capturing group
* Add intro to prism-clojure example HTML
* Remove duplicated comment test
* Fix thread-first macro highlight
Moved the thread-first macro (->) further up the group capture in order
to have it properly highlight...
* Add thread-last macro support
* Add `nil` to the boolean capture
I would like to rename the `boolean` group to something else as I don't
believe it is accurate now that `nil` is there.
* Update number regex to support hexidecimal
* Remove global from keyword object
* Add clojure.min
Forgot to compile with gulp in the last commit. my bad.
* Resolve operator regex note in code review
* Add "nil" test
* Fix test error - (>=) (==) (<=)
* Add more tests to keywords
* Fix indentation
* Remove duplicate test
* Remove duplicates partner from tests
* Fix indentation?
* Fix indentation...
* Fix indentation!!
|
|
8c3fa000
|
2018-03-01T23:51:10
|
|
Make listing of classes more uniform in aliased components' examples
|
|
5773ce40
|
2018-02-28T00:37:17
|
|
Ruby: Update known failures (#1309)
|
|
fbe82b86
|
2018-02-05T08:36:19
|
|
added tsx support (#1280)
* added tsx support
* fixed order in components.js and added tsx example file
* escape less than and capitalize tsx
|
|
b08cae56
|
2018-01-31T22:38:01
|
|
Add support for highlighting CSP, HSTS, and HPKP (#1275)
* Add CSP support.
* Add HPKP support.
* Add HSTS support.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on Feedback.
* Fix parentheses.
* List csp, hpkp, and hsts in components.js
* Add missing base64 chars to 'nonce-...' and 'sha-...' source expressions
* Add support for 'sha384-...' and 'sha512-...' source expressions
* Add tests and examples for csp
* Add tests and examples for hsts
* Add tests and examples for hpkp
* hpkp: Include the sha256 hash in the directive itself
Prevent the numbers in the base64 string from being classified
as "safe" or "unsafe".
* Rebuild the minified csp and hpkp components
* Rebuild the "Show Language" plugin as well
* Fix copy/paste error in test description
|
|
d6da70e0
|
2018-01-16T08:40:39
|
|
Add Elm (elm-lang.org) support (#1174)
* Add Elm (elm-lang.org) support
* Simplify patterns and fix a few things inherited from haskell
* Add example and minified file
* Clean up comment pattern, drop redundant groups, tabs for indents
|
|
84ed3edf
|
2018-01-02T10:58:10
|
|
add Io syntax (#1251)
* add Io
* Io: fix strings and operators, add tests
* fix indent
* add package-lock.json to gitignore
* exclude gitignore and package.json changes
* use tabs
* io: apply requested changes
* fix indent
* fix indent
* io: add example file
|
|
37af5003
|
2017-12-19T07:52:43
|
|
IchigoJam: Make strings greedy
|
|
60114d03
|
2017-12-19T07:51:25
|
|
BASIC: Make strings greedy
|
|
cf840be1
|
2017-12-19T14:46:30
|
|
Add support for IchigoJam BASIC (#1246)
* Add support for IchigoJam BASIC
Hi. This PR adds support for [IchigoJam](https://ichigojam.net/), which is a board that using its own BASIC language, so I was not extending this from `basic`, but submit as a standalone language.
If there're anything necessary to change, please reply to me and I'll respond to you ASAP.
* Requested modifications have been made.
And after digging into the docs, IchigoJam actually use a very small set of ```basic``` and it adds a different set of markers to its own ```basic``` language, so I just keep this as a standalone language.
* fixed the regexp for comment, number, operator and punctuation
For IchigoJam, the space is not required to be appeared after the ```'``` or ```REM```.
Add support for binary and hex numbers
Specified for IchigoJam
Add ```[``` and ```]``` for IchigoJam
* Add example code for IchigoJam.
* Add test-suite for IchigoJam
* Add prism-ichigojam.min.js
|
|
2ece18b4
|
2017-12-16T10:35:23
|
|
Add support for 6502 assembly (#1245)
* Add support for 6502 assembly
* Address PR feedback
|
|
0fffa9df
|
2017-12-06T20:27:49
|
|
Xeora Language implementation (#1239)
|