Skip to content

Commit 125e91f

Browse files
committed
Merge branch 'gh-pages' of https://github.com/temnoregg/prism into gh-pages + fixes + add example and tests
Conflicts: components.js
2 parents 5a5eec5 + 98c326b commit 125e91f

11 files changed

+1172
-0
lines changed

components.js

+5
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ var components = {
271271
"title": "Python",
272272
"owner": "multipetros"
273273
},
274+
"qore": {
275+
"title": "Qore",
276+
"require": ["clike"],
277+
"owner": "temnroegg"
278+
},
274279
"r": {
275280
"title": "R",
276281
"owner": "Golmote"

components/prism-qore.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Prism.languages.qore = Prism.languages.extend('clike', {
2+
'comment': {
3+
pattern: /(^|[^\\])(?:\/\*[\w\W]*?\*\/|(?:\/\/|#).*)/,
4+
lookbehind: true
5+
},
6+
'variable': /\$(?!\d)\w+\b/,
7+
'keyword': /\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:int|float|number|bool|string|date|list)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,
8+
'number': /\b(?:0b[01]+|0x[\da-f]*\.?[\da-fp\-]+|\d*\.?\d+e?\d*[df]|\d*\.?\d+)\b/i,
9+
'boolean': /\b(?:true|false)\b/i,
10+
'operator': {
11+
pattern: /(^|[^\.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,
12+
lookbehind: true
13+
},
14+
'function': /\$?\b(?!\d)\w+(?=\()/
15+
});

components/prism-qore.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)