This changes the automatically generated header of examples on Prism's example page.
The `overrideExampleHeader` option in `components.json` is no longer supported.
- 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.
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/
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.
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.
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.
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>
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.
* 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
* 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
* 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
* 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!!
* 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
* 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
* 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
* Added component for the Jolie language
* Added Jolie among the supported components
* update for merge
- revised jolie component
- added tests
- added code example
- minified with `gulp`
* fixes
* fixes
* fixed Jolie html file example and highlight for punctuation
* fixed indentation in test html file and added comma as punctuation