Skip to content

Commit

Permalink
Merge branch 'gh-pages' of https://github.com/temnoregg/prism into gh…
Browse files Browse the repository at this point in the history
…-pages + fixes + add example and tests

Conflicts:
	components.js
  • Loading branch information
Golmote committed Sep 5, 2015
2 parents 5a5eec5 + 98c326b commit 125e91f
Show file tree
Hide file tree
Showing 11 changed files with 1,172 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ var components = {
"title": "Python",
"owner": "multipetros"
},
"qore": {
"title": "Qore",
"require": ["clike"],
"owner": "temnroegg"
},
"r": {
"title": "R",
"owner": "Golmote"
Expand Down
15 changes: 15 additions & 0 deletions components/prism-qore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Prism.languages.qore = Prism.languages.extend('clike', {
'comment': {
pattern: /(^|[^\\])(?:\/\*[\w\W]*?\*\/|(?:\/\/|#).*)/,
lookbehind: true
},
'variable': /\$(?!\d)\w+\b/,
'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/,
'number': /\b(?:0b[01]+|0x[\da-f]*\.?[\da-fp\-]+|\d*\.?\d+e?\d*[df]|\d*\.?\d+)\b/i,
'boolean': /\b(?:true|false)\b/i,
'operator': {
pattern: /(^|[^\.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,
lookbehind: true
},
'function': /\$?\b(?!\d)\w+(?=\()/
});
1 change: 1 addition & 0 deletions components/prism-qore.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 125e91f

Please sign in to comment.