components


Log

Author Commit Date CI Message
rbricheno 0e3e938d 2016-06-15T17:13:07 Fix highlighting of empty comments A single # on a line by itself with no other characters following it is a valid comment in powershell.
Andreas Rohner 500121ba 2016-06-11T09:12:05 Merge pull request #967 from zeitgeist87/ImprovedGreedyFlag Improvement to greedy-flag
Andreas Rohner 740e8900 2016-06-05T07:33:36 Update CHANGELOG and auto-generated files
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
Anders Grendstadbakk acd9508f 2016-05-17T14:23:02 Use toLowerCase on language names
Noah Kaplan caea2afe 2016-05-15T20:38:26 add auto_increment and date sql keywords
Tim van der Lippe 4d0526fa 2016-05-12T11:30:53 Highlight diff lines with only + or -
Andreas Rohner 21dd0d14 2016-02-15T23:08:24 Use a HTML-comment to escape code
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 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.
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 f081b905 2016-04-29T16:39:46 Rename proto language into protobuf and add it to components.js
Boris Serdiuk ae4a4f2f 2016-04-25T17:57:06 add protobuf support
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
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
Chuck Nelson 1b905b9e 2016-03-31T11:24:29 Update PROC step/keyword regex to be more restrictive.
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.
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.
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
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 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>
Lea Verou af8da8ec 2016-02-14T21:08:14 Implemented @zeitgeist87’s suggestion in #890 re: env.elements
Lea Verou 70a8602f 2016-02-13T15:21:28 Add before-highlightall hook Needed for unescaped markup plugin, as discussed in #887. Alternatively, we could reinstate @zeitgeist87’s PR about making the selector a config option. Thoughts?
Andreas Rohner ab65be27 2016-02-12T21:32:19 Fix catastrophic backtracking regex issues
Andreas Rohner b86c727a 2016-02-03T15:25:26 Fix DFS bug The DFS function uses an object as a key into another object. This doesn't work, because the key gets stringified to "[object Object]" and is therefore useless.
Andreas Rohner 0e87ff0a 2016-01-27T11:55:16 Add solarized light theme to the list of themes and update auto-generated files generated by gulp.
Andreas Rohner 7fab7a2d 2016-01-26T23:16:06 Reverse merge of last PR and remove the 'data-selector' attribute.
Andreas Rohner fa987435 2016-01-26T23:10:45 Use document.currentScript instead of document.getElementsByTagName()
Andreas Rohner 77c6ea17 2016-01-26T02:33:20 Allow users to use their own element selector Add the parameter 'data-selector' to the script tag, to allow users to set the selector used to query for code elements.
Andreas Rohner 1eb9a5fb 2016-01-17T13:56:32 Update auto-generated files
Valtteri Laitinen 417f54a1 2016-01-16T03:12:00 Simplify the “lang” regex Remove an useless (?!\*) part from the lang regex.
Lea Verou 106c8178 2015-12-30T10:32:08 Merge pull request #370 from CupOfTea696/gh-pages JSON Language
Andreas Rohner a912063c 2015-12-30T00:56:38 Update auto-generated files and minified versions
CupOfTea696 ad2fcd01 2015-12-29T15:54:51 JSON Fixes
Vivek Kumar Bansal 971dda7f 2015-12-29T10:40:06 Better Nesting in JSX attributes Credit @jquense
Andreas Rohner 97d0f49a 2015-12-26T09:50:23 Update auto-generated files
Andreas Rohner 02894e1e 2015-12-21T19:00:26 Prevent infinite recursion in DFS
Golmote e8a31a50 2015-10-26T08:16:29 Merge pull request #814 from Golmote/prism-kotlin Add support for Kotlin
Golmote d7faf2cb 2015-10-26T08:15:40 Run gulp
Golmote 90fbf0be 2015-10-26T08:08:13 Python: Highlight triple-quoted strings before comments. Fix #815
Golmote 81933ee8 2015-10-22T07:17:56 Merge pull request #813 from Golmote/prism-puppet Add support for Puppet configuration
Golmote f5db3463 2015-10-22T07:17:38 Merge pull request #812 from Golmote/prism-roboconf Add support for Roboconf
Golmote eb7aa969 2015-10-22T07:12:42 Add support for Kotlin
Golmote e7a623c5 2015-10-21T06:35:03 Merge branch 'gh-pages' into prism-haxe Conflicts: plugins/autoloader/prism-autoloader.js plugins/autoloader/prism-autoloader.min.js
Golmote 77c0b061 2015-10-21T06:32:15 Merge branch 'gh-pages' into prism-parser Conflicts: components.js
Golmote b7b1b6a9 2015-10-17T10:37:52 Merge branch 'gh-pages' into prism-oz Conflicts: components.js
Golmote a36bc4ae 2015-10-17T10:36:03 Merge pull request #804 from Golmote/prism-lua Add support for Lua
Golmote b43c5f3f 2015-10-17T10:35:30 Merge pull request #803 from Golmote/prism-icon Add support for Icon
Golmote 0b4e1d3d 2015-10-17T10:32:59 Add support for Puppet configuration
Golmote c9b40810 2015-10-16T08:50:33 Add support for Roboconf
Golmote 188c75cc 2015-10-16T08:00:22 Merge branch 'gh-pages' into prism-parigp Conflicts: plugins/show-language/prism-show-language.js plugins/show-language/prism-show-language.min.js
Golmote 6803ca03 2015-10-16T07:58:39 Merge pull request #800 from Golmote/prism-asciidoc Add support for AsciiDoc
Golmote e25da0da 2015-10-15T08:55:07 Add support for Haxe
Golmote 9b275c8f 2015-10-13T21:15:41 Merge pull request #795 from Golmote/prism-nix Add support for Nix
Golmote 132b2a43 2015-10-13T21:14:54 Add test after merge of #806 + run gulp
Golmote 2ba763e0 2015-10-13T21:08:49 Add support for Parser
Alex Vertax 5728f919 2015-10-13T12:41:16 Fixed detection of float numbers.
Golmote d5ace6c2 2015-10-11T13:45:28 Add support for Oz
Golmote 1a4ff7ac 2015-10-11T10:38:10 Add support for Lua
Golmote 2d08fa90 2015-10-10T21:32:45 Add support for Icon
Golmote 6679e735 2015-10-10T16:38:02 Add support for PARI/GP
Golmote e135947c 2015-10-10T12:48:04 Run gulp and update tests after #801 merge
Chaos Shen ad316a36 2015-10-10T17:51:31 Improve highlight: - add highlight for directives in C/C++ macros and C#/F# preprocessor lines; - add some predefined constants in C; - remove 'true' and 'false' from keyword list in JavaScript, they should be considered as boolean constant.
Golmote 68159d5b 2015-10-10T03:57:25 Add support for AsciiDoc
Golmote 198bc99a 2015-10-07T00:28:30 Add support for Nix
Golmote ac6fe2ee 2015-10-06T22:40:37 Merge pull request #793 from zeitgeist87/BashString Substantially reduce wrongly highlighted stuff for Bash
Andreas Rohner c628ce24 2015-10-06T17:35:08 Support for command substitution for the Bash language Command substitution is a very important part of the Bash language. Every non trivial script uses it in one way or another. This patch adds support for it.
Andreas Rohner e83dcff6 2015-10-06T17:18:16 Add support for arithmetic environments for the Bash language Currently arithmetic operators are wrongly matched all over the place. For example the dash in `ls -la` is highlighted as a minus operator, but for Bash it is only a string. Another example would be a simple path like this `cat 801-file.txt`. Here `801` is wrongly highlighted as a number and `-` is highlighted as an operator. Bash only supports numbers and arithmetic operators inside of a so called arithemtic environment `$((3 + 4))`. By supporting this and limiting numbers and arithmetic operators to arithemtic environments, a lot of wrongly highlighted stuff can be avoided.
Andreas Rohner 0eeaff3e 2015-10-06T13:59:20 Fix built-in commands and functions for the Bash language Keywords and functions should not start with a boundary character, because this leads to lots of false matches. Bash actually only allows a few boundary characters for commands and functions. This patch replaces the \b with an explicit list of allowed characters. This improves the highlighting of pathnames enourmously. Some examples of invalid highlighting this patch fixes: cat /etc/passwd cat ./if/else/something-file.txt This patch also adds the built-in commands ":" and ".". : NOOP-command . Source command
Golmote 29643f4e 2015-10-06T08:48:21 Simplify patterns for <style> and <script> tags
Golmote 6babaad4 2015-10-06T07:53:35 Merge pull request #781 from Golmote/prism-batch Prism batch
Andreas Rohner 256c3e12 2015-10-05T23:00:25 Fix regression in Bash strings In a recent patch the regex for single-quoted and double-quoted strings of the Bash language was split into two separate regexes to prevent the highlighting of variables inside of single-quoted strings. This causes a bug whenever a double-quoted string apears inside a single-quoted string, because the double-quoted string is matched first. '"foo"' The same problem exists with the newly introduced Here-Documents. This patch fixes the problem by matching Here-Documents first and merging the regexes for single-quoted and double-quoted strings again. This patch also adds testcases for this, to prevent future regressions.
Andreas Rohner 9acaaa15 2015-10-02T14:54:17 Remove Clike dependency from Bash The Bash language is actually very different from Clike. Only 'boolean', 'operator' and 'punctuation' are shared between them. 'operator' and 'punctuation' should be changed in the future, because Bash actually has slightly different operators. Since they share almost nothing, it makes sense to remove the dependency. This patch copies 'boolean', 'operator' and 'punctuation' from Clike, but doesn't change them. This patch also fixes a typo and adds the missing built-in keyword `let`. `let` is not in the POSIX-standard, but Bash and some other shells support it.
Andreas Rohner 71bf8e9a 2015-10-01T13:22:42 Add support for Here-Documents for the Bash language This patch adds support for Here-Documents for the Bash language. A Here-Document should be highlighted as a multiline string and looks like this: cat << EOF foo bar EOF
Andreas Rohner 89b1f857 2015-10-01T12:21:46 Use a proper alias for the Bash-Shebang This patch introduces a proper alias for the Bash-Shebang. Additionally the variables are changed from the class "property" to "variable". The tests also need to be updated.
Andreas Rohner 5d74562e 2015-10-01T12:03:28 Move the Bash language into a function environment Moving the Bash language definition into a function environment allows for local variables, which are necessary for future changes.
Golmote 0e4d16fb 2015-09-30T08:55:58 Run gulp task
TSUYUSATO Kitsune f178a640 2015-09-30T15:45:15 Crystal dosen't have `undef` keyword since v0.8.0
Golmote 93a53c77 2015-09-28T09:19:42 Merge branch 'gh-pages' into prism-batch
Golmote eab5b06e 2015-09-20T16:00:59 Add support for Batch (Fix #398)
TSUYUSATO Kitsune 239b95f0 2015-09-27T11:28:25 Fix something commented in #780
TSUYUSATO Kitsune 4943abf4 2015-09-26T23:45:28 Add Crystal language definition