|
b1fd5bdc
|
2015-03-10T08:27:53
|
|
Removed unused global flag in all grammars
|
|
0ad98acc
|
2015-03-10T08:01:29
|
|
Simplify C-Like comment pattern
|
|
07562bd5
|
2015-01-11T20:42:46
|
|
Merge branch 'master' into prism-multiline-strings
Conflicts:
components/prism-clike.min.js
|
|
9487b5be
|
2015-01-09T08:11:21
|
|
Removed unneeded escapes in RegExps, added some semicolons
|
|
3aeecb5a
|
2014-12-10T23:21:22
|
|
Add multiline strings support to C-like
|
|
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.
|
|
ad7513cb
|
2014-05-24T13:06:57
|
|
Attempt to fix clike and markup grammars
Original authors should at least verify these changes are correct
|
|
3c9155e6
|
2013-08-04T10:52:21
|
|
Added throw keyword to c-like and javascript
|
|
29e51df1
|
2013-07-03T12:16:14
|
|
Fixed clike greater than or equals
|
|
5c7d8061
|
2013-07-03T02:09:37
|
|
Polish fixes according to test cases
|
|
0c8c1789
|
2013-07-02T18:18:07
|
|
Quick fixes
Removed PHP from examples
|
|
a2db2b5c
|
2013-07-02T16:54:46
|
|
Added legit markup support
|
|
08143d9f
|
2013-05-19T00:12:57
|
|
Merge branch 'regex-number' of https://github.com/mseeboeck/prism into mseeboeck-regex-number
Conflicts:
components/prism-clike.js
components/prism-clike.min.js
prism.js
|
|
d7f40d6c
|
2013-05-18T07:24:36
|
|
Merge pull request #91 from williammalo/gh-pages
C-like syntax (or at least javascript) is missing some operators.
|
|
3129ed87
|
2013-05-17T16:57:08
|
|
More example testing
|
|
45a54837
|
2013-05-16T21:08:06
|
|
Moved function to clike
|
|
b1003de3
|
2013-05-16T12:19:58
|
|
More improvements and testing
|
|
15c80635
|
2013-05-14T12:03:58
|
|
Added class-name to clike
Added PHP support
|
|
cf604b71
|
2013-05-14T00:23:55
|
|
Fix to allow clike languages like JavaScript to start with `//` comments, but still ignoring URLs like http://example.com
|
|
4615e490
|
2013-05-11T12:27:50
|
|
I had a problem with syntax highlighting of JavaScript when
it starts with a `// comment`.
The problem of the comment pattern was
```
/(^|[^\\])(\/\*[\w\W]*?\*\/|[^:]\/\/.*?(\r?\n|$))/g
^^^^
```
And I'm not sure what it is for, exactly? Adding a `?`
to it fixes the problem for me, but I hope that it doesn't
cause problems with other use case. Could you look into it?
Is there any test suite for the existing code?
|
|
8779ba84
|
2013-05-10T16:32:07
|
|
Added missing operators for c-like languages
|
|
503209ac
|
2013-03-25T23:33:17
|
|
fixed URLs in strings.
|
|
ad010eac
|
2012-12-18T00:18:43
|
|
Changed regex Prism.languages.clike.number
Changes:
* Variable names matching /[a-f]+/ are no longer treated as numbers.
* Added support for upper case and scientific notation.
* Also changed corresponding files in /components.
Minor issues:
* No support for type suffixes (e.g. 300f for float).
* Leading decimal point is marked up as 'punctuation', instead as part of
* the number (e.g. .1; 0.1 is matched correctly).
|
|
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
|