|
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.
|
|
500121ba
|
2016-06-11T09:12:05
|
|
Merge pull request #967 from zeitgeist87/ImprovedGreedyFlag
Improvement to greedy-flag
|
|
740e8900
|
2016-06-05T07:33:36
|
|
Update CHANGELOG and auto-generated files
|
|
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.
|
|
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.
|
|
0c4d8d7d
|
2016-06-03T09:18:06
|
|
Merge pull request #959 from rupl/75-async
Allow for asynchronous loading of prism.js
|
|
f130680c
|
2016-05-29T11:15:59
|
|
Use requestAnimationFrame instead of setTimeout
|
|
b6b40ec0
|
2016-05-29T00:46:11
|
|
Merge pull request #958 from kaplanoah/gh-pages
add delimeter and delimeters keywords to sql
|
|
4eb7ee45
|
2016-05-26T11:27:03
|
|
Allow for asynchronous loading of prism.js
|
|
a9ef24e3
|
2016-05-25T11:50:45
|
|
add delimeter keywords to sql
|
|
acd9508f
|
2016-05-17T14:23:02
|
|
Use toLowerCase on language names
|
|
caea2afe
|
2016-05-15T20:38:26
|
|
add auto_increment and date sql keywords
|
|
4d0526fa
|
2016-05-12T11:30:53
|
|
Highlight diff lines with only + or -
|
|
21dd0d14
|
2016-02-15T23:08:24
|
|
Use a HTML-comment to escape code
|
|
6f75735e
|
2016-04-30T15:43:07
|
|
Support for generic methods in csharp
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
f081b905
|
2016-04-29T16:39:46
|
|
Rename proto language into protobuf and add it to components.js
|
|
ae4a4f2f
|
2016-04-25T17:57:06
|
|
add protobuf support
|
|
b8275198
|
2016-04-07T23:50:03
|
|
Fixed whitespaces, reordered tokens, used Gulp to min JS
|
|
ea507962
|
2016-04-07T01:20:30
|
|
Updated minified JS file
|
|
5bdb22e6
|
2016-04-07T01:18:46
|
|
Corrected indentation issue
|
|
22bf9c55
|
2016-04-07T01:12:38
|
|
Fixed issues pointed out in previous pull request
|
|
8a9f30fa
|
2016-04-01T02:48:10
|
|
Minified prism-bro.js file to prism-bro.min.js
|
|
9e8d4f99
|
2016-04-01T02:08:35
|
|
More improvements to Bro
|
|
b25a7515
|
2016-03-31T03:34:23
|
|
Added Bro support to Prism
|
|
1b905b9e
|
2016-03-31T11:24:29
|
|
Update PROC step/keyword regex to be more restrictive.
|
|
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.
|
|
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.
|
|
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
|
|
954c90a2
|
2016-02-20T21:01:45
|
|
Merge pull request #779 from zeitgeist87/gh-pages
Partial solution for the "Comment-like substrings"-problem
|
|
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.
|
|
24a09361
|
2016-02-19T13:38:54
|
|
Fix double HTML-encoding bug in Groovy language
|
|
90432f96
|
2016-02-18T01:22:40
|
|
Add comments to better document the greedy-pattern feature
|
|
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>
|
|
af8da8ec
|
2016-02-14T21:08:14
|
|
Implemented @zeitgeist87’s suggestion in #890 re: env.elements
|
|
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?
|
|
ab65be27
|
2016-02-12T21:32:19
|
|
Fix catastrophic backtracking regex issues
|
|
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.
|
|
0e87ff0a
|
2016-01-27T11:55:16
|
|
Add solarized light theme to the list of themes and update
auto-generated files generated by gulp.
|
|
7fab7a2d
|
2016-01-26T23:16:06
|
|
Reverse merge of last PR and remove the 'data-selector' attribute.
|
|
fa987435
|
2016-01-26T23:10:45
|
|
Use document.currentScript instead of
document.getElementsByTagName()
|
|
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.
|
|
1eb9a5fb
|
2016-01-17T13:56:32
|
|
Update auto-generated files
|
|
417f54a1
|
2016-01-16T03:12:00
|
|
Simplify the “lang” regex
Remove an useless (?!\*) part from the lang regex.
|
|
106c8178
|
2015-12-30T10:32:08
|
|
Merge pull request #370 from CupOfTea696/gh-pages
JSON Language
|
|
a912063c
|
2015-12-30T00:56:38
|
|
Update auto-generated files and minified versions
|
|
ad2fcd01
|
2015-12-29T15:54:51
|
|
JSON Fixes
|
|
971dda7f
|
2015-12-29T10:40:06
|
|
Better Nesting in JSX attributes
Credit @jquense
|
|
97d0f49a
|
2015-12-26T09:50:23
|
|
Update auto-generated files
|
|
02894e1e
|
2015-12-21T19:00:26
|
|
Prevent infinite recursion in DFS
|
|
e8a31a50
|
2015-10-26T08:16:29
|
|
Merge pull request #814 from Golmote/prism-kotlin
Add support for Kotlin
|
|
d7faf2cb
|
2015-10-26T08:15:40
|
|
Run gulp
|
|
90fbf0be
|
2015-10-26T08:08:13
|
|
Python: Highlight triple-quoted strings before comments. Fix #815
|
|
81933ee8
|
2015-10-22T07:17:56
|
|
Merge pull request #813 from Golmote/prism-puppet
Add support for Puppet configuration
|
|
f5db3463
|
2015-10-22T07:17:38
|
|
Merge pull request #812 from Golmote/prism-roboconf
Add support for Roboconf
|
|
eb7aa969
|
2015-10-22T07:12:42
|
|
Add support for Kotlin
|
|
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
|
|
77c0b061
|
2015-10-21T06:32:15
|
|
Merge branch 'gh-pages' into prism-parser
Conflicts:
components.js
|
|
b7b1b6a9
|
2015-10-17T10:37:52
|
|
Merge branch 'gh-pages' into prism-oz
Conflicts:
components.js
|
|
a36bc4ae
|
2015-10-17T10:36:03
|
|
Merge pull request #804 from Golmote/prism-lua
Add support for Lua
|
|
b43c5f3f
|
2015-10-17T10:35:30
|
|
Merge pull request #803 from Golmote/prism-icon
Add support for Icon
|
|
0b4e1d3d
|
2015-10-17T10:32:59
|
|
Add support for Puppet configuration
|
|
c9b40810
|
2015-10-16T08:50:33
|
|
Add support for Roboconf
|
|
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
|
|
6803ca03
|
2015-10-16T07:58:39
|
|
Merge pull request #800 from Golmote/prism-asciidoc
Add support for AsciiDoc
|
|
e25da0da
|
2015-10-15T08:55:07
|
|
Add support for Haxe
|
|
9b275c8f
|
2015-10-13T21:15:41
|
|
Merge pull request #795 from Golmote/prism-nix
Add support for Nix
|
|
132b2a43
|
2015-10-13T21:14:54
|
|
Add test after merge of #806 + run gulp
|
|
2ba763e0
|
2015-10-13T21:08:49
|
|
Add support for Parser
|
|
5728f919
|
2015-10-13T12:41:16
|
|
Fixed detection of float numbers.
|
|
d5ace6c2
|
2015-10-11T13:45:28
|
|
Add support for Oz
|
|
1a4ff7ac
|
2015-10-11T10:38:10
|
|
Add support for Lua
|
|
2d08fa90
|
2015-10-10T21:32:45
|
|
Add support for Icon
|
|
6679e735
|
2015-10-10T16:38:02
|
|
Add support for PARI/GP
|
|
e135947c
|
2015-10-10T12:48:04
|
|
Run gulp and update tests after #801 merge
|
|
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.
|
|
68159d5b
|
2015-10-10T03:57:25
|
|
Add support for AsciiDoc
|
|
198bc99a
|
2015-10-07T00:28:30
|
|
Add support for Nix
|
|
ac6fe2ee
|
2015-10-06T22:40:37
|
|
Merge pull request #793 from zeitgeist87/BashString
Substantially reduce wrongly highlighted stuff for Bash
|
|
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.
|
|
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.
|
|
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
|
|
29643f4e
|
2015-10-06T08:48:21
|
|
Simplify patterns for <style> and <script> tags
|
|
6babaad4
|
2015-10-06T07:53:35
|
|
Merge pull request #781 from Golmote/prism-batch
Prism batch
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
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.
|
|
0e4d16fb
|
2015-09-30T08:55:58
|
|
Run gulp task
|
|
f178a640
|
2015-09-30T15:45:15
|
|
Crystal dosen't have `undef` keyword since v0.8.0
|
|
93a53c77
|
2015-09-28T09:19:42
|
|
Merge branch 'gh-pages' into prism-batch
|
|
eab5b06e
|
2015-09-20T16:00:59
|
|
Add support for Batch (Fix #398)
|
|
239b95f0
|
2015-09-27T11:28:25
|
|
Fix something commented in #780
|
|
4943abf4
|
2015-09-26T23:45:28
|
|
Add Crystal language definition
|