|
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
|
|
0e93b417
|
2015-09-24T09:16:57
|
|
Fix code indentation style
|
|
1316abcb
|
2015-09-24T09:15:16
|
|
Merge pull request #778 from zeitgeist87/gh-pages
Improve performance by doing more work in the worker
|
|
69ea994e
|
2015-09-24T09:03:36
|
|
Add support for vim. Closes #777
|
|
09be99e7
|
2015-09-23T20:34:29
|
|
Improve performance by doing more work in the worker
Currently the worker tokenizes the code and then turns it into a
JSON string. This JSON string is sent back to the main thread as a
message and parsed. Then it is turned into a HTML string and
stored in the attribute env.highlightedCode.
These conversions into JSON are unnecessary, because we can create
the HTML string directly in the worker and send it as a message to
the main thread.
Signed-off-by: Andreas Rohner <andreas.rohner@gmx.net>
|
|
e62c88ed
|
2015-09-23T08:41:41
|
|
Add nginx to components, fixed basic highlighting, add a few tests
|
|
dc4fc19b
|
2015-09-23T08:23:23
|
|
Merge pull request #776 from westonganger/master
Add Nginx
|
|
ccb6566c
|
2015-09-22T23:26:10
|
|
Elixir: Fix empty comment + add test for issue #775
|
|
2e637f07
|
2015-09-22T23:17:51
|
|
Merge pull request #775 from danielberkompas/fix-elixir-markdown-docs
Highlight Elixir string markdown header correctly
|
|
220f1dfa
|
2015-09-22T08:25:13
|
|
Highlight Elixir string markdown header correctly
Elixir allows markdown inside its triple-quote heredoc syntax. However,
the "#" used in markdown headers is currently misinterpreted as a
comment. So, if you write this:
```elixir
@doc """
Get the first name of a user.
- `user` - A User struct.
user = %User{name: "Alice Winston"}
User.first_name(user)
"Alice"
"""
```
Prism interprets the markdown headers as comments, not as part of the
string, and this messes up the coloring.
This can be fixed by adding a negative lookbehind, such that the
comments regex matches "#" but not "##".
|
|
211a41ce
|
2015-09-22T20:04:36
|
|
Merge pull request #771 from Golmote/prism-autoit
Add support for AutoIt. Fix #453
|
|
114a6e1e
|
2015-09-22T10:40:37
|
|
Add Nginx
|
|
f0182363
|
2015-09-22T10:13:12
|
|
removed vim
|
|
721af812
|
2015-09-22T10:06:16
|
|
reset state
|
|
d0386c4e
|
2015-09-22T09:48:57
|
|
added vim support
|
|
5b64e94a
|
2015-09-22T08:57:40
|
|
added nginx highlighting
|
|
a0a3976e
|
2015-05-18T13:05:43
|
|
Added String Interpolation to Ruby
fixes #580
|
|
b2763e7d
|
2015-09-21T09:01:18
|
|
Sass: Highlight "-" as operator only if surrounded by spaces, in order to not break hyphenated values (e.g. "ease-in-out")
|
|
895bf46b
|
2015-09-20T16:25:21
|
|
Properly escape special replacement patterns ($) in Handlebars, PHP and Smarty. Fix #772
|
|
3f386732
|
2015-09-17T08:56:50
|
|
Add support for AutoIt. Fix #453
|
|
792e35cf
|
2015-09-16T22:38:15
|
|
C-like: optimized string regexp
|
|
2af797ca
|
2015-09-16T08:31:34
|
|
Basic: Added case insensitive flag to operators
|
|
795eb996
|
2015-09-16T08:22:27
|
|
Verilog: Rename to "Verilog", optimize string regexp, don't use captures unless needed
|
|
44a11c2b
|
2015-09-16T07:55:58
|
|
Merge pull request #640 from a-rey/gh-pages
adding system verilog language
|
|
7feb135e
|
2015-09-16T07:53:42
|
|
Merge pull request #764 from Golmote/prism-bison
Add support for Bison
|
|
3669034d
|
2015-09-15T08:25:00
|
|
Add tests for diff
|
|
e642a222
|
2015-09-15T13:32:16
|
|
Add diff syntax definition
|
|
df1abe99
|
2015-09-15T13:31:33
|
|
Fix prism-autohotkey.js line ending to LF
|
|
3aadd5d9
|
2015-09-14T23:07:03
|
|
Git: Add support for unified diff. Fixes #769, fixes #357, closes #401
|
|
07491293
|
2015-09-11T08:21:38
|
|
ABAP: Simplified patterns, renamed all underscores to dashes
|
|
804b9da0
|
2015-09-11T07:48:58
|
|
Run gulp + removed uneeded array in components
|
|
75b0328b
|
2015-09-11T07:47:25
|
|
Merge pull request #636 from dellagustin/add_abap_language
Add ABAP language
|
|
e336007f
|
2015-09-09T21:06:24
|
|
Add support for Bison
|
|
48da80ab
|
2015-09-09T08:42:27
|
|
Prolog: Handle \r\n + add comment to explain operators
|
|
d1d971fa
|
2015-09-09T08:29:35
|
|
Merge branch 'gh-pages' into prism-prolog
Conflicts:
components.js
|
|
2d394557
|
2015-09-09T08:27:06
|
|
Processing: Add missing XML type + fix function pattern
|
|
73e16f37
|
2015-09-09T08:17:21
|
|
Merge branch 'gh-pages' into prism-processing
Conflicts:
components.js
|
|
9c1bdfef
|
2015-09-09T07:59:47
|
|
OCaml: Add comment explaining operators + run gulp
|
|
ae2fbb61
|
2015-09-09T07:39:00
|
|
Merge branch 'gh-pages' into prism-ocaml
|
|
dac6e7c9
|
2015-09-08T19:56:37
|
|
Pure: Renamed foreign-lang to inline-lang + fixed inline-lang replacement regexp
|
|
e1dd5cc9
|
2015-09-08T19:11:06
|
|
Merge branch 'gh-pages' into prism-pure
|
|
addc9710
|
2015-09-08T09:04:06
|
|
Q: Fixed comments + added explanation, renamed date to datetime, optimized operators
|
|
d1f90a11
|
2015-09-08T08:19:09
|
|
Merge branch 'gh-pages' into prism-q
Conflicts:
components.js
|
|
7c85a9ed
|
2015-09-08T08:13:12
|
|
J: Add comment explaining verbs and fixed numbers
|