|
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.
|
|
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>
|
|
ab65be27
|
2016-02-12T21:32:19
|
|
Fix catastrophic backtracking regex issues
|
|
d7faf2cb
|
2015-10-26T08:15:40
|
|
Run gulp
|
|
e135947c
|
2015-10-10T12:48:04
|
|
Run gulp and update tests after #801 merge
|
|
29643f4e
|
2015-10-06T08:48:21
|
|
Simplify patterns for <style> and <script> tags
|
|
2f9fe1ef
|
2015-09-03T23:39:16
|
|
Added some language aliases.
|
|
29e26dc3
|
2015-09-03T23:14:19
|
|
JavaScript: Allow for all non-ASCII characters in function names. Fix #400
|
|
8be7815b
|
2015-07-01T18:50:02
|
|
Run gulp task
|
|
a7064dd4
|
2015-06-20T20:07:37
|
|
Moved up JS strings before template strings as they are far more common
|
|
476cbf42
|
2015-06-20T20:06:39
|
|
Improved regex performance of C-like strings and JS regexps
|
|
a8aa0588
|
2015-06-14T18:18:37
|
|
Implemented support for octal and binary numbers in javascript
They are supported from ES6+
|
|
04f72b14
|
2015-06-14T18:26:16
|
|
ES6: Template strings + interpolation
|
|
ca68b876
|
2015-06-14T00:53:20
|
|
Added support for missing ES6 keywords in JavaScript
|
|
5d99957a
|
2015-06-14T00:48:06
|
|
Added support for 'y' and 'u' ES6 JavaScript regex flags
|
|
b1fd5bdc
|
2015-03-10T08:27:53
|
|
Removed unused global flag in all grammars
|
|
91bb0bb1
|
2014-12-20T19:37:26
|
|
Run gulp
|
|
3154f9b9
|
2014-11-15T19:09:40
|
|
Move invalid alias declarations, which cause HTML highlighting to fail
The alias declarations in prism-javascript.js and prism-css.js are in
the wrong place and must be moved inside of the pattern object.
Otherwise they get injected into the markup grammar. The execution
fails, because the alias is a string and not a RegExp.
|
|
23edcc8c
|
2014-11-14T20:10:05
|
|
Added language-xxx aliases in nested language refs to ease styling
|
|
4247baec
|
2014-07-28T16:54:50
|
|
Fix conflicts.
|
|
af7a42a4
|
2014-07-10T19:25:02
|
|
Updated minified versions
|
|
d27b693f
|
2014-06-01T17:18:03
|
|
Updated keywords in JavaScript definition
* Sort keywords alphabetically (to ease maintenance)
* Added all missing keywords
* Added ECMAScript 5 keywords
* Added true/false/null as explicit keywords
Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Reserved_Words
Fixes #270
|
|
7cfd29a9
|
2014-05-26T11:20:55
|
|
Rebuild minified files.
|
|
d44312b6
|
2014-05-24T14:25:49
|
|
Converted the CSS, SCSS and JS grammars according to #258
|
|
36471491
|
2014-04-21T13:36:32
|
|
Updated minified files
|
|
6e3e5bab
|
2014-02-27T20:25:09
|
|
Added get/set to JS keywords
|
|
3c9155e6
|
2013-08-04T10:52:21
|
|
Added throw keyword to c-like and javascript
|
|
edb0f128
|
2012-12-17T09:03:32
|
|
Also changed the 2 corresponding files in /components.
|
|
1cdfcb84
|
2012-11-11T04:25:56
|
|
Fixed #37
|
|
1b40db97
|
2012-11-10T00:23:33
|
|
Made Java & JavaScript inherit from a generic C-style language definition; Added methods for language definition inheritance; Added simple dependency management in downloader
|
|
e95a85c0
|
2012-07-31T16:17:53
|
|
Merged the comment and line-comment tokens
|
|
c8795ed1
|
2012-07-31T12:25:32
|
|
Improved regex matching, docs updates
|
|
9eeeb7c6
|
2012-07-29T01:03:05
|
|
Moved inline CSS & JS to their language definitions
|
|
27ffa5b0
|
2012-07-27T03:24:09
|
|
Fixed serious highlighting bug, reduced known failures from 3 to 1
|
|
bd4e8d15
|
2012-07-23T18:54:30
|
|
ALL THE THINGS! Most notably: Simple templating, API changes, show invisibles plugin, download (build) page
|
|
a4b9b918
|
2012-07-18T15:57:08
|
|
Added minified versions
|