Log

Author Commit Date CI Message
Golmote 4a3cdfee 2016-06-18T15:45:25 Add a way to download all grammars as a Zip directly from the Autoloader plugin page
Golmote b4f34239 2016-06-18T15:01:08 Add a couple more details on how to use the Autoloader plugin
Golmote 9893489c 2016-06-18T14:18:27 Replace flags property of RegExp with a more compatible alternative
Andreas Rohner 912bdfe1 2016-06-18T08:16:48 Merge pull request #969 from atomantic/bash_npm adding `npm` to common function list
Golmote e0180873 2016-06-16T08:15:59 Merge pull request #971 from Golmote/prism-graphql Add support for GraphQL
Golmote a2633627 2016-06-16T08:14:11 Run gulp
Golmote 105be251 2016-06-16T08:11:46 Merge pull request #978 from nfagerlund/june2016_puppet_regexes Puppet highlighter: Fix over-greedy regexp detection
Nick Fagerlund b9a9de53 2016-06-15T16:17:08 Puppet highlighter: Fix over-greedy regexp detection The `regex` token was allowing /regexps/ to start after the word `node` or after any non-word character. This ends up being too greedy! For example, take this common code, using variable interpolation in a string that represents a file path: file { "${master_config_dir}/.ssh": ensure => file, owner => 'jenkins', group => 'jenkins', mode => '0600', } The highlighter will start a regexp at `/.ssh`, in the middle of the string, and continue for however many lines it takes to reach another slash. So instead, let's be more conservative about where we might find a regexp. I suggest: - After `node`. - After one of the following characters: `~=([{,` - This catches usage in variable assignment, the `=~`/`!~` operators, function calls, case statement and selector blocks, arrays, and data type objects that accept parameters (`Pattern[/.../]`, etc.). - After `=>` (and the lesser-used `+>`) for hashes and resource attributes. - At the start of a line, for, e.g., the LHS of the `in` operator. (I'm not 100% sure we should cover this case for a simple highlighter like Prism, and it's the one I'd most expect to cause problems later, but... I think it's ok...) This commit appears to fix the worst of the mid-string blowouts.
Andreas Rohner 500121ba 2016-06-11T09:12:05 Merge pull request #967 from zeitgeist87/ImprovedGreedyFlag Improvement to greedy-flag
Golmote bfb559bf 2016-06-11T01:17:24 Add support for GraphQL
Adam Eivy babdf740 2016-06-08T22:29:12 adding `npm` to common function list
Andreas Rohner 4a44f016 2016-06-05T07:39:15 Release 1.5.1
Andreas Rohner 740e8900 2016-06-05T07:33:36 Update CHANGELOG and auto-generated files
Andreas Rohner 9385c54f 2016-06-05T07:14:20 Add class that disables the normalize whitespace plugin
Andreas Rohner d80900cc 2016-06-04T19:52:38 Improvement to greedy-flag This patch expands the idea of the greedy flag and significantly improves it, by matching against the whole text instead of just the next couple of tokens. This does not only improve the results, but it should also slightly improve performance.
Andreas Rohner 1158e460 2016-06-03T11:34:01 Rearrange the `string` and `template-string` token in JavaScript It is more likely that single and double quotes appear in a template string, than backticks in a normal string. Fixes issue #963.
Andreas Rohner 0c4d8d7d 2016-06-03T09:18:06 Merge pull request #959 from rupl/75-async Allow for asynchronous loading of prism.js
Chris Ruppel f130680c 2016-05-29T11:15:59 Use requestAnimationFrame instead of setTimeout
Lea Verou b6b40ec0 2016-05-29T00:46:11 Merge pull request #958 from kaplanoah/gh-pages add delimeter and delimeters keywords to sql
Chris Ruppel 4eb7ee45 2016-05-26T11:27:03 Allow for asynchronous loading of prism.js
Noah Kaplan a9ef24e3 2016-05-25T11:50:45 add delimeter keywords to sql
Golmote abee2b75 2016-05-17T22:02:28 Merge pull request #957 from andeersg/lowercase-languages Use toLowerCase on language names
Anders Grendstadbakk acd9508f 2016-05-17T14:23:02 Use toLowerCase on language names
Lea Verou e45fd2eb 2016-05-16T15:26:51 Merge pull request #954 from kaplanoah/gh-pages add AUTO_INCREMENT and DATE keywords to sql
Noah Kaplan caea2afe 2016-05-15T20:38:26 add auto_increment and date sql keywords
Lea Verou 8b3c51dd 2016-05-12T11:30:15 Merge pull request #952 from TimvdLippe/diff-one-line Highlight diff lines with only + or -
Lea Verou bd3a0b82 2016-05-12T11:28:15 Merge pull request #953 from thedigitalman/patch-1 Fixed monospace typo
Scott McKee e6c34988 2016-05-12T14:13:30 Fixed monospace typo The original value was "monoscpace," and I changed it to "monospace."
Tim van der Lippe 4d0526fa 2016-05-12T11:30:53 Highlight diff lines with only + or -
Andreas Rohner 6ec9238a 2016-05-01T11:36:44 Merge pull request #946 from malcomio/gh-pages link to index for basic usage - fixes #945
Malcolm Young 6c772d85 2016-05-01T09:32:03 link to index for basic usage - fixes #945
Andreas Rohner f4912eed 2016-05-01T10:30:33 Release 1.5.0
Andreas Rohner dfb63ede 2016-05-01T10:13:54 Update CHANGELOG.md
Andreas Rohner daae21d3 2016-05-01T08:52:13 Merge pull request #944 from open-nsm/gh-pages Added keyword tests for Bro and added a case to variable
wayward710 9bb8ddc5 2016-05-01T01:33:11 Added keyword tests for Bro and added a case to variable
Lea Verou f40aff3e 2016-04-30T21:56:30 Merge pull request #893 from zeitgeist87/comment-escape Use a HTML-comment to escape code
Andreas Rohner 21dd0d14 2016-02-15T23:08:24 Use a HTML-comment to escape code
Andreas Rohner fd036d9e 2016-04-30T16:12:48 Merge branch 'master' into gh-pages
Andreas Rohner 8a83ec49 2016-04-30T16:11:09 Merge pull request #918 from eriklieben/jspm Added support for installing the npm package with JSPM
Andreas Rohner 6f75735e 2016-04-30T15:43:07 Support for generic methods in csharp
Andreas Rohner 964450e1 2016-04-30T13:35:01 Apply the new greedy flag to a few languages This patch applies the new greedy flag to a few languages and adds the corresponding test cases.
Andreas Rohner 9cbf9d77 2016-04-30T12:04:06 Update auto-generated values in the autoloader plugin The auotloader plugin contains a variable that is auto-generated by gulp. This variable was updated by the addition of the new language protobuf.
Andreas Rohner 8477e457 2016-04-30T11:58:43 Minor fix for the YAML language Recent changes to YAML caused it to fail some test cases. This patch fixes this minor problem, by excluding whitespace characters from the "key"-pattern.
Andreas Rohner 71e57594 2016-04-30T11:52:51 Add basic test cases for the Bro language This patch adds basic tests for the Bro language and it enables the greedy-flag for the string token.
Andreas Rohner 3eec2b75 2016-04-30T11:49:08 Add some simple test cases for the protobuf language This patch adds basic test cases for the protobuf language and fixes some whitespace issues. It also adds the missing requirement to the clike language to components.js.
Andreas Rohner 2746d7f3 2016-04-30T09:48:39 Document the newly added greedy-flag
Andreas Rohner 5b78124e 2016-04-30T09:48:11 Fix whitespace in extending.html
Lea Verou d25047d7 2016-04-29T14:50:46 Merge pull request #943 from larsks/bug/942 fix hilighting of YAML keys on first line of code block
Lars Kellogg-Stedman f19db819 2016-04-29T12:05:00 fix hilighting of YAML keys on first line of code block The YAML highlighter would fail to highlight a key if it occurred on the first line of a `<code>` block, as in: <pre><code>somekey: somevalue anotherkey: anothervalue</pre></code> This adds "beginning of file" as an acceptable marker for the start of a key. Resolves #942 and, it turns out, #649.
Andreas Rohner 6694e218 2016-04-29T16:56:32 Fix keyword_feature.test for the sas-language
Andreas Rohner f081b905 2016-04-29T16:39:46 Rename proto language into protobuf and add it to components.js
Andreas Rohner 58d87137 2016-04-29T16:32:22 Merge pull request #938 from just-boris/patch-1 add protobuf support
Andreas Rohner 5d725f7f 2016-04-29T16:12:26 Merge pull request #941 from coliff/patch-1 HTTPS links to twitter.com and w3.org + Google Analytics to HTTPS
Christian Oliff 8843a03a 2016-04-28T18:07:32 HTTPS links to twitter.com and w3.org + Google Analytics to HTTPS HTTPS links to twitter.com and w3.org (they are HTTPS anyway so it saves redirect) Updated Google Analytics URL to be HTTPS (recommended by Google)
Boris Serdiuk ae4a4f2f 2016-04-25T17:57:06 add protobuf support
Lea Verou 86cfe7fa 2016-04-23T19:55:39 Merge pull request #937 from andremw/patch-1 Adds closing parenthesis
André cd1a5468 2016-04-23T08:58:57 Adds closing parenthesis
Lea Verou 5aeb9044 2016-04-19T01:12:42 Merge pull request #931 from clarle/node-docs Add Node usage documentation to Basic Usage
Clarence Leung be9a7858 2016-04-09T20:10:55 Add Node usage documentation to Basic Usage
wayward710 ff93a9cc 2016-04-01T02:56:29 Better HTML example
wayward710 8a9f30fa 2016-04-01T02:48:10 Minified prism-bro.js file to prism-bro.min.js
wayward710 9e8d4f99 2016-04-01T02:08:35 More improvements to Bro
wayward710 b25a7515 2016-03-31T03:34:23 Added Bro support to Prism
wayward710 b8275198 2016-04-07T23:50:03 Fixed whitespaces, reordered tokens, used Gulp to min JS
wayward710 ea507962 2016-04-07T01:20:30 Updated minified JS file
wayward710 5bdb22e6 2016-04-07T01:18:46 Corrected indentation issue
wayward710 22bf9c55 2016-04-07T01:12:38 Fixed issues pointed out in previous pull request
Andreas Rohner ccd61b61 2016-04-07T12:22:27 Merge pull request #924 from zeitgeist87/drupal-logo Add Drupal to the list of websites that use Prism
Andreas Rohner d2f915d8 2016-04-07T10:29:09 Merge pull request #928 from flowlo/patch-1 Ignore tests directory in bower.json
Lorenz Leutgeb a6d2d0f4 2016-04-06T03:56:45 Ignore tests directory in bower.json
Andreas Rohner 648aec06 2016-03-31T19:27:24 Merge pull request #922 from chucknelson/add-missing-keywords-for-sas Add missing keywords for SAS.
Chuck Nelson 1b905b9e 2016-03-31T11:24:29 Update PROC step/keyword regex to be more restrictive.
Andreas Rohner b88c68a0 2016-03-31T13:07:09 Add Drupal to the list of websites that use Prism
Chuck Nelson 85ef5179 2016-03-30T10:25:36 Add missing keywords for SAS. Two changes: (1) PROC keyword now also includes its associated name (e.g., PROC TABULATE, PROC SQL). (2) QUIT now included, as it is used to close/complete various procedures.
Lea Verou 39630dd5 2016-03-25T19:14:11 Merge pull request #917 from ervaude/ervaude-third-party-tutorials Clean up Third-party tutorials section
Erik Lieben ad048abe 2016-03-23T22:03:34 Add JSPM support
Daniel Goerz 415092b1 2016-03-21T16:36:57 Clean up Third-party tutorials section Resolves #809 Add a new third party tutorial. Remove dead links and correct outdated URLs.
Lea Verou bd479f1d 2016-03-08T21:58:27 Merge pull request #906 from davewasmer/gradient-syntax Update linear-gradient syntax from `left` to `to right`
Dave Wasmer cd234dcd 2016-03-08T19:26:52 update linear-gradient syntax from `left` to `to right`
Andreas Rohner 49cf8991 2016-03-08T15:03:59 Fix minor bug with new greedy-feature This fixes a minor bug that causes invalid highlighting in some edge cases, where two greedy patterns overlap each other.
Andreas Rohner 5978d4a0 2016-03-08T13:57:56 Merge pull request #905 from desertjim/gh-pages Support For Annotations in Java
James Baca 367ace62 2016-03-05T17:41:56 1)Adding annotation token for Java 2)Aliasing java annotation to punctuation 3)Aliasing grovy annotation to punctuation 4)Adding in sample code
Lea Verou 9c1a9703 2016-02-26T14:49:06 Merge pull request #904 from zeitgeist87/order-components Add after-property to allow ordering of plugins
Andreas Rohner 224b7a15 2016-02-26T15:29:36 Add after-property to allow ordering of plugins Some plugins do not depend on each other and can be used independently, but if they are used at the same time, they have to be executed in a specific order. The "after"-property in components.js, allows the download page to concatenate the plugins in the right order, without enforcing a hard dependency.
Andreas Rohner 8cf72b33 2016-02-26T10:20:41 Remove the force-to-the-top hack for normalize-whitespace
Lea Verou 39e9e8d7 2016-02-25T23:55:16 Put Unescaped Markup above normalize whitespace in a futile attempt to get them to execute in the right order :/
Lea Verou 4b47a992 2016-02-25T23:51:01 Added Unescaped Markup to the list of components, since no bugs were found. We can always add features later.
Andreas Rohner 954c90a2 2016-02-20T21:01:45 Merge pull request #779 from zeitgeist87/gh-pages Partial solution for the "Comment-like substrings"-problem
Andreas Rohner 16f6f39f 2016-02-19T23:11:10 Remove direction-property from themes Remove direction-property from all themes, because it is incompatible with the EPUB-format. This was reported in issue #902.
Andreas Rohner c88036ca 2016-02-19T22:27:22 Add tests for new greedy-pattern feature and fix bug in Kotlin This patch adds tests for the new greedy-pattern feature and fixes a small bug in the Kotlin language, that resulted from that. It also cleans up some of the comments and refactors a few lines in the tokenloop.
Andreas Rohner 24a09361 2016-02-19T13:38:54 Fix double HTML-encoding bug in Groovy language
Andreas Rohner 90432f96 2016-02-18T01:22:40 Add comments to better document the greedy-pattern feature
Andreas Rohner 2705c509 2015-09-24T19:36:10 Partial solution for the "Comment-like substrings"-problem This patch introduces a new attribute called `greedy`. The attribute is a simple boolean flag. If there is no match for a greedy pattern it can concatenate the next two tokens into a single string and try to match on this string again. If a match is found on the second attempt, then the old tokens are deleted and replaced by the new match. This solves the "Comment-like substrings"-problem for exactly one comment at very little cost. With this patch the following code is highlighted correctly: "foo /* bar */ baz"; "foo // bar"; /lala"test"sdf/; This approach fails if there are more than one comments inside the string: "foo /* bar */ baz /* bar */ baz"; Signed-off-by: Andreas Rohner <andreas.rohner@gmx.net>
Andreas Rohner 54400fba 2016-02-17T15:26:01 Add property 'aliasTitles' to components.js This is necessary, because a language that has a lot of aliases like markup (HTML, SVG, XML, MathML), is only added to the languageMap once as "Markup". So any plugin that depends on the languageMap is limited by that. This patch allows the definition of additional titles for languages, depending on the alias that is used.
Lea Verou e29cbe1c 2016-02-15T15:47:48 [unescaped markup] Fix small issues @zeitgeist87 pointed out
Lea Verou ad30c323 2016-02-14T21:25:57 [unescaped markup] Fixed bug with escaped </script>
Lea Verou 07d77e53 2016-02-14T21:08:34 Added unescaped markup plugin (hidden)
Lea Verou af8da8ec 2016-02-14T21:08:14 Implemented @zeitgeist87’s suggestion in #890 re: env.elements
Lea Verou 49a3324b 2016-02-13T19:32:40 Merge pull request #890 from PrismJS/LeaVerou-patch-1 Add before-highlightall hook
Lea Verou eb2a8d86 2016-02-13T15:29:46 Changed weight in the header, as we’re now 2KB minified & gzipped. Also way overdue :)