Log

Author Commit Date CI Message
Mike Morici e7318009 2014-10-16T17:14:01 Updates location of prism.css in bower.json.
Lea Verou 506bb22e 2014-10-13T16:11:06 Merge pull request #383 from SassDoc/add-scss-sassdoc Add SassDoc syntax extension for Sass
Valérian Galliat aa09053a 2014-10-12T12:49:27 Add a "Third-party language definitions" section
Lea Verou 837d1d69 2014-10-08T04:09:48 Merge pull request #380 from idleberg/gh-pages added !makensis command
idleberg 6db22842 2014-10-08T10:07:39 added !makensis command
Lea Verou 3d5a1f46 2014-10-02T12:59:52 Merge pull request #377 from nfriedly/patch-1 Adding support for .rb extension
Nathan Friedly 420aaffc 2014-10-02T12:48:29 Adding fix for #376 to minified js
Nathan Friedly 51d56f97 2014-10-02T12:39:24 Adding support for .rb extension Fixes #376
Lea Verou 6a004cbe 2014-09-22T15:03:10 Merge pull request #360 from zeitgeist87/FixAutolinker Fix for DFS bug with new pattern array feature
Lea Verou f2984edb 2014-09-11T18:40:27 Added SQL variable support
Lea Verou 13d69762 2014-09-11T03:37:35 SQL improvements: Added TEMP keyword
Lea Verou 94a8fd1b 2014-09-10T04:01:25 SQL improvements: added function token (perhaps should be `aggregate` and aliased to function), improved operators a bit, converted regex groups to non capturing
Andreas Rohner 08037e5b 2014-09-05T11:01:02 Fix for DFS bug with new pattern array feature This patch implements support for the new pattern array feature in the Prism.languages.DFS function and fixes a bug in the autolinker plugin. It adds an optional parameter to the callback of Prism.languages.DFS, which contains the type of the current object as oposed to the key in the parent. In most cases both key and type are exactly the same. Only if the parent is an array the key will contain the index number and the type will contain the attribute name of the array in the parent object. The key can be used to replace the object in the parent and the type can be used to provide the necessary context.
Lea Verou 4f9006ba 2014-09-01T05:34:10 Merge pull request #353 from lgiraudel/colors Use of existing colors for `deleted` and `inserted` tokens.
lgiraudel b14b05e2 2014-09-01T00:36:03 Use of existing colors for `deleted` and `inserted` tokens.
Jannik Zschiesche 994d57b6 2014-09-01T00:03:27 Merge pull request #352 from lgiraudel/gh-pages [Git] Fix `deleted` and `inserted` regexp.
lgiraudel 0a37552d 2014-08-31T22:30:50 Update prism-git.js
lgiraudel e5f83ca8 2014-08-31T22:30:10 Update prism-git.min.js
lgiraudel a33e35fa 2014-08-31T22:04:19 [Git] Fix `deleted` and `inserted` regexp. See LeaVerou/prism#227.
Jannik Zschiesche 84f26a5c 2014-08-30T22:10:57 Merge pull request #351 from FuzzySockets/git-ignore-intellij Added intellij matcher to gitignore
Jannik Zschiesche fdabf8d3 2014-08-30T13:50:31 Merge pull request #350 from lgiraudel/gh-pages Adding default colors for `.token.deleted` and `.token.inserted`
Richard Harrington ddb6d332 2014-08-29T18:51:35 Added intellij matcher to gitignore
lgiraudel 7a9d3b79 2014-08-29T18:41:06 Adding default colors for `.token.deleted` and `.token.inserted`
Jannik Zschiesche 14e754fa 2014-08-29T17:07:00 Adjust existing code to a common style Use Tabs.
Jannik Zschiesche 6630ac48 2014-08-29T17:01:14 Merge pull request #227 from lgiraudel/gh-pages Add support of Git commands syntax
lgiraudel 8b71e6e4 2014-08-29T15:50:13 [Git language support] oldline => deleted, newline => inserted + typo
Jannik Zschiesche 120c1221 2014-08-29T11:06:22 Added minified apache conf language definition
Jannik Zschiesche c3232e3e 2014-08-29T11:06:10 Renamed apacheconf back to the name without dashes Sorry for the confusion.
Jannik Zschiesche d9289dd3 2014-08-29T11:02:48 Merge pull request #348 from GuiTeK/add-apacheconf-syntax Add Apache configuration language definition
Guillaume Truchot 0ea9172c 2014-08-24T15:18:26 Added support for Apache configuration syntax Supports: -All official directives, both block and inline, up to Apache 2.4 -Block directives parameters separated by colon (":") -Comments -Strings -Environment variables (eg. ${HOME})
Lea Verou 12e2659e 2014-08-28T12:35:47 Added @apfelbox to credits
Jannik Zschiesche beb8f024 2014-08-28T09:39:09 Merge pull request #328 from zeitgeist87/AddSubtype Add option to define additional subtypes for tokens
Andreas Rohner 3309890f 2014-08-12T13:48:47 Add option to define aliases for tokens This patch adds an option called `alias`, which allows the definition of additional CSS classes for token names. This can be useful, to combine the styling of a well known token, which is already supported by most of the themes, with a semantically correct token name. The option can be set to a string literal or an array of string literals. In the following example the token name `latex-equation` is not supported by any theme, but it will be highlighted the same as a string. 'latex-equation': { pattern: /\$(\\?.)*?\$/g, alias: 'string' }
Lea Verou b907ea56 2014-08-23T14:14:13 Merge pull request #345 from zeitgeist87/gh-pages Update minified and auto generated files
Andreas Rohner b1cc49d8 2014-08-23T20:02:02 Update minified and auto generated files
Lea Verou d270aa19 2014-08-23T10:44:13 Merge pull request #343 from GuiTeK/fix-prism-php-before-insert-hook Fixed 'before-insert' hook
GuiTeK ec2540af 2014-08-23T16:37:01 Fixed 'before-insert' hook Fixed 'before-insert' hook: now checks if language is PHP before assigning env.code to env.backupCode. Only "language-php" defines env.backupCode: without this condition, env.Code would be undefined for any other language than PHP after this hook is called. It would then lead to wrong behaviours (eg. Line Numbers plugin would not show lines).
Lea Verou f3fa64b8 2014-08-21T04:36:52 Merge pull request #338 from planerist/HEAD Fixed missed encode call for webworkers
Aleksandr Zverev ba3bcd23 2014-08-20T14:42:08 Fixed missed encode call for webworkers
Lea Verou b3ae4b5a 2014-08-19T14:08:22 Merge pull request #337 from zeitgeist87/PhpLineNumberBranch Fix line-numbers for PHP in markup
Andreas Rohner 312e989c 2014-08-19T12:01:00 Fix line-numbers for PHP in markup The problem is, that inline php code can be anywhere inside of a HTML element. To properly highlight this the php language implementation temporarily replaces all inline php code in `env.code` with something like `{{PHP0}}`. After the markup highlighting is finished it replaces it again with the real code, but it leaves `env.code` corrupted. Since the line-numbers plugin uses `env.code` to count the number of lines, the result will be broken. So to fix this, it must be ensured, that `env.code` is restored before the line-numbers plugin uses it.
Lea Verou e29996a4 2014-08-18T04:03:33 Merge pull request #312 from aviaryan/c-autohotkey updated autohotkey for #307
Lea Verou f88c71ab 2014-08-15T17:34:36 Merge pull request #281 from natecook1000/gh-pages Comprehensive Swift syntax highlighting
Nate Cook 3cd1cb38 2014-08-15T16:30:50 Update Swift syntax for beta 5
Nate Cook 76808147 2014-08-15T11:22:54 fix conflict in prism-swift.min.js
Nate Cook 5acdc618 2014-08-15T11:22:29 Merge remote-tracking branch 'upstream/gh-pages' into gh-pages
Lea Verou 1bd193f7 2014-08-15T02:52:54 Merge pull request #330 from apfelbox/test-dependency-loader Added recursive dependency loader for test page
Jannik Zschiesche 011e430c 2014-08-13T16:49:24 Added missing comma in components.json
Jannik Zschiesche e1a659d3 2014-08-13T16:46:45 Merge pull request #295 from bholst/gh-pages Add language definition for Haskell
Jannik Zschiesche cf763e09 2014-08-13T16:36:50 Added recursive dependency loader for test page * The page can now load dependencies of the required language recursively * It first loads the dependencies, then the main language * It is implemented using promises The [promises polyfill from jakearchibald](https://github.com/jakearchibald/es6-promise) is used - the polyfill should fallback to browser behaviour, if native promises are supported.
Bastian Holst 74578aa0 2014-08-13T09:17:49 Update minified haskell definitions
Bastian Holst 6e26a58b 2014-08-12T21:35:01 Correct haskell support for strings and characters This commit adds correct support for Haskell characters and strings. To me, having only one type of token for characters and strings makes no sense in Haskell as they can be distinguished easily. Characters start with a single quote and strings start with a double quote. Furthermore, characters can only contain —guess what— one character whereas strings can caintain multiple or none of them. String can also have gaps.
Bastian Holst a70fadfd 2014-08-12T20:50:42 Add support for other numbers Add support for * hexadecimal numbers * octal numbers * floating point numbers with exponent
Jannik Zschiesche 8cc777d9 2014-08-12T18:26:03 Make coding style in the themes more consistent * Use tabs * Use the same indention & whitespaces rules everywhere
Jannik Zschiesche 297a150e 2014-08-12T18:08:42 Merge pull request #279 from apfelbox/line-height Define default line height in all themes
Jannik Zschiesche ce354254 2014-06-20T13:54:37 Define default line height in all themes This should fix #40 & #278
Bastian Holst e1c2148c 2014-08-12T16:28:42 Remove remaining entities
Lea Verou d60c1bd5 2014-08-12T06:24:52 Merge pull request #327 from zeitgeist87/UseArraySyntax Use the new array syntax for clike and coffeescript
Andreas Rohner e348e602 2014-08-12T12:11:31 Add auto generated files
Andreas Rohner 1724e7a1 2014-08-11T08:26:48 Use the new array syntax for clike and coffeescript This patch uses the new array syntax for the `clike` language and for `coffeescript`. For `clike` it fixes a minor bug, whereby The character immediately in front of a single line comment is highlighted as a comment as well. something// something This is because both definitions for single and multiline comments have to be matched with a single regex and the `lookbehind` parameter can only be applied to the first captured string. For `coffeescript` the previously used `block-comment` token name is no longer necessary.
Lea Verou 74e3dcbd 2014-08-12T05:30:31 Merge pull request #321 from zeitgeist87/gh-pages Allow multiple regex per token name by using arrays
Andreas Rohner 89bddb84 2014-08-12T11:27:26 Add automatically generated files
Andreas Rohner 43e4e693 2014-08-10T23:26:10 Allow multiple regex per token name by using arrays In most languages there are multiple different ways of declaring the same constructs (e.g. comments, strings, ...) and sometimes it is difficult or unpractical to match all of them with one single regular expression. This patch adds the possibility to use an array of pattern objects. For example there is a minor bug in the current definition of the `clike` language, that could be solved with this patch: The character immediately in front of a single line comment is highlighted as a comment as well. something// something This is because both definitions for single and multiline comments have to be matched with a single regex and the `lookbehind` parameter can only be applied to the first captured string. With this patch one could split the two definitions up and use `lookbehind` for both, thereby eliminating the bug. 'comment': [ { pattern: /(^|[^\\])\/\*[\w\W]*?\*\//g, lookbehind: true }, { pattern: /(^|[^\\:])\/\/.*?(\r?\n|$)/g, lookbehind: true } ],
Lea Verou 73cf4cc0 2014-08-12T01:19:14 Merge pull request #325 from zeitgeist87/FixJava Fix Java operators to correctly highlight examples.html
Andreas Rohner 4d352495 2014-08-12T01:16:07 Fix Java operators to correctly highlight examples.html This patch basically adds a lot of `=?` at the end of operators that were missing. The order of the `>=` and `<=` operator was wrong. It also changes the order of the lookbehind pattern, so that the start of the line is matched first. This last change fixes a lot of the bugs on the `example.html` page. The design of Prism makes it seem as if the regex multi line flag has no effect, because strings are continuosly split up before the regexes are applied. In this case it is necessary so that `^` is interpreted as the start of a line instead of the start of the document.
Jannik Zschiesche 45596956 2014-08-12T00:27:23 Merge pull request #322 from zeitgeist87/ExampleFix2 Add HTTP, Coffeescript and Java to gulpfile
Andreas Rohner 48535016 2014-08-11T07:59:09 Add HTTP, Coffeescript and Java to example.html If those languages are not included `examples.html` has a lot of code, that is not highlighted at all.
Lea Verou fd69b247 2014-08-10T16:06:38 Merge pull request #319 from zeitgeist87/gh-pages Allow multiple tokens to be mapped to the same CSS class
Andreas Rohner fef8cd49 2014-08-10T08:24:02 Allow multiple tokens to be mapped to the same CSS class In most languages there are different ways of declaring the same constructs, but with the current implementation of Prism it is only possible to define one pattern for a particular token type. This is not a problem, as long as it is possible to match everything with one regex. But sometimes it isn't easily possible to do that, especially if things like `lookbehind` or `inside` are needed for one part but not for the other. This patch splits the token type into two parts, whereby the second part is optional: {token type}#{description} For example there is a minor bug in the current definition of the `clike` language, that could be solved with this patch: The character immediately in front of a single line comment is highlighted as a comment as well. something// something This is because both definitions for single and multiline comments have to be matched with a single regex and the `lookbehind` parameter can only be applied to the first captured string. With this patch one could split the two definitions up and use `lookbehind` for both, thereby eliminating the bug. 'comment': { pattern: /(^|[^\\])\/\*[\w\W]*?\*\//g, lookbehind: true }, 'comment#single-line': { pattern: /(^|[^\\:])\/\/.*?(\r?\n|$)/g, lookbehind: true },
Jannik Zschiesche d4824538 2014-08-08T19:12:12 Added minified latex language definition
Lea Verou 5f661409 2014-08-08T12:34:15 Merge pull request #316 from japborst/gh-pages Added initial LaTeX support
Jelmer Borst 24bf8ab7 2014-08-08T13:16:06 Included LaTeX suggestions
Jelmer Borst 657b089f 2014-08-06T19:44:18 Added initial LaTeX support
Avi Aryan e76c4b90 2014-08-01T22:04:58 optimized autohotkey.js even more
Avi Aryan 2ad320bd 2014-08-01T14:10:06 optimized the regex a bit
Avi Aryan 76e66b91 2014-08-01T10:09:21 updated autohotkey for #307, fixes it
Jannik Zschiesche 8694191f 2014-07-31T14:30:41 Merge pull request #311 from apfelbox/fix-external-link Fix link to Kevin Lorenz' Website + removed whitespace
Jannik Zschiesche b6f21e0e 2014-07-31T14:29:51 Fix link to Kevin Lorenz' Website + removed whitespace
Jannik Zschiesche c101a3fa 2014-07-29T10:53:54 Added default gulp task It just builds components, plugins and the main prism.js file.
Jannik Zschiesche 9cb8165f 2014-07-29T10:24:55 Merge pull request #269 from ben-eb/build-proc Introduce a build process using gulp.js
Ben Briggs b976afa4 2014-07-28T17:04:24 Bump dev dependencies.
Ben Briggs 4247baec 2014-07-28T16:54:50 Fix conflicts.
Lea Verou 23abeedb 2014-07-24T16:57:31 Merge pull request #305 from brandonkelly/gh-pages Added Twig language
Brandon Kelly ec93e86c 2014-07-24T12:51:18 Added Twig language
Lea Verou be225a04 2014-07-23T12:40:19 Merge pull request #304 from apfelbox/worker-fix Fix workers & download page
Jannik Zschiesche 502ed6c1 2014-07-23T10:49:30 Don't set the `self` variable with `var` Firefox directly shadows the global variable `self` if it is present (= in a worker). So we need to set `self` without `var self` but directly.
Jannik Zschiesche eb1cd1c9 2014-07-23T09:49:34 Fix workers The issue is that in workers `window` is undefined. Therefore, in the first line, `self` will be set to `{}`. This will destroy the check for workers later on: ```js if (!self.document) { if (!self.addEventListener) { // in Node.js return self.Prism; } // In worker // ... } ``` because `self.addEventListener` will then be undefined (due to `self = {}`). The fix is to make the check for the environment more clever: 1. check for the browser: `(typeof window !== 'undefined')` 2. check for a worker: `(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)` (from http://stackoverflow.com/questions/7931182/reliably-detect-if-the-script-is-executing-in-a-web-worker) 3. assume we are in node
Lea Verou f1ceb831 2014-07-22T13:21:23 Merge pull request #303 from apfelbox/coy-improvements Small improvement on the horizontal scroll bar of the coy theme
Jannik Zschiesche 2e0b8ce4 2014-07-22T18:49:19 Coy theme: Fix issue with defined height of the <pre> tag * The max-height on the `<pre>` is if there is no defined height. The definitions of the code ensure, that the contents stay inside the `<pre>`. The `width: 100%` is need if there is no defined height of the `<pre>`, see http://stackoverflow.com/questions/14262938/child-with-max-height-100-overflows-parent.
Jannik Zschiesche fa2dedc2 2014-07-22T18:26:32 Fix small scrollbar issue in the coy theme
Lea Verou 8ab37b09 2014-07-22T12:19:03 Merge pull request #301 from apfelbox/coy-line-numbers Fix hidden line numbers in coy theme
Jannik Zschiesche 84d21b19 2014-07-22T17:24:28 Further improvements of the coy themes * Shadows are now visible again! * Small code cleanup (removed now unnecessary outer `max-height`)
Jannik Zschiesche b42f3b0b 2014-07-22T15:25:27 Fix hidden line numbers The issue is that the `<code>` element needs the `overflow: scroll` (since the code block has a `max-height`). So the line numbers container, which is positioned absolutely using a negative left position is hidden. This is fixed by changing the way the `<code>` element is positioned: not with a margin and a small size, but with the padding & a larger container.
Lea Verou 0fec5532 2014-07-20T09:32:36 Merge pull request #297 from uranusjr/objc-291 Update Objective-C rules based on #291
Tzu-ping Chung c960493e 2014-07-20T11:25:41 Update Objective-C rules based on #291
Bastian Holst ce35c97b 2014-07-13T22:45:29 Fix documentation Haskell language definitions
Bastian Holst 62fc8621 2014-07-13T22:34:03 Fix handling of '.' in Haskell definition The character '.' may be either a part of an operator, an operator by itself or a separator between module name and variable.
Bastian Holst e7a1c5d3 2014-07-13T21:56:40 Remove escaped entities from Haskell language def
Bastian Holst 8a77383b 2014-07-13T20:49:37 Add language definition for Haskell
Lea Verou 970338c2 2014-07-13T11:31:53 Merge pull request #294 from aviaryan/c-ini ini now also highlights value