Skip to content

Commit

Permalink
Merge pull request #1 from LeaVerou/gh-pages
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
aviaryan committed Feb 20, 2015
2 parents 970338c + fd3bea7 commit 07f078e
Show file tree
Hide file tree
Showing 207 changed files with 6,356 additions and 920 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
hide-*.js
hide-*.js
node_modules
.idea/
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"main": [
"prism.js",
"prism.css"
"themes/prism.css"
],
"homepage": "http://prismjs.com",
"authors": "Lea Verou",
Expand Down
148 changes: 143 additions & 5 deletions components.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ var components = {
"languages": {
"meta": {
"path": "components/prism-{id}",
"noCSS": true
"noCSS": true,
"examplesPath": "examples/prism-{id}"
},
"markup": {
"title": "Markup",
"option": "default"
},
"twig": {
"title": "Twig",
"require": "markup",
"owner": "brandonkelly"
},
"css": {
"title": "CSS",
"option": "default"
Expand All @@ -53,22 +59,26 @@ var components = {
"title": "C-like",
"option": "default"
},
"eiffel": {
"title": "Eiffel",
"owner": "Conaclos"
},
"javascript": {
"title": "JavaScript",
"option": "default",
"require": "clike"
},
"java" : {
"java": {
"title": "Java",
"require": "clike",
"owner": "sherblot"
},
"php" : {
"php": {
"title": "PHP",
"require": "clike",
"owner": "milesj"
},
"php-extras" : {
"php-extras": {
"title": "PHP Extras",
"require": "php",
"owner": "milesj"
Expand All @@ -83,7 +93,7 @@ var components = {
"require": "css",
"owner": "MoOx"
},
"bash" : {
"bash": {
"title": "Bash",
"require": "clike",
"owner": "zeitgeist87"
Expand All @@ -102,6 +112,10 @@ var components = {
"title": "Python",
"owner": "multipetros"
},
"julia": {
"title": "julia",
"owner": "cdagnino"
},
"sql": {
"title": "SQL",
"owner": "multipetros"
Expand Down Expand Up @@ -152,6 +166,10 @@ var components = {
"require": "java",
"owner": "jozic"
},
"haskell": {
"title": "Haskell",
"owner": "bholst"
},
"swift": {
"title": "Swift",
"require": "clike",
Expand All @@ -169,6 +187,121 @@ var components = {
"ini": {
"title": "Ini",
"owner": "aviaryan"
},
"latex": {
"title": "LaTeX",
"owner": "japborst"
},
"apacheconf": {
"title": "Apache Configuration",
"owner": "GuiTeK"
},
"git": {
"title": "Git",
"owner": "lgiraudel"
},
"scheme" : {
"title": "Scheme",
"owner" : "bacchus123"
},
"nasm": {
"title": "NASM",
"owner": "rbmj"
},
"perl": {
"title": "Perl",
"owner": "Golmote"
},
"handlebars": {
"title": "Handlebars",
"require": "markup",
"owner": "Golmote"
},
"matlab": {
"title": "MATLAB",
"owner": "Golmote"
},
"less": {
"title": "Less",
"require": "css",
"owner": "Golmote"
},
"r": {
"title": "R",
"owner": "Golmote"
},
"lolcode": {
"title": "LOLCODE",
"owner": "Golmote"
},
"fortran": {
"title": "Fortran",
"owner": "Golmote"
},
"erlang": {
"title": "Erlang",
"owner": "Golmote"
},
"haml": {
"title": "Haml",
"require": "ruby",
"owner": "Golmote"
},
"jade": {
"title": "Jade",
"require": "javascript",
"owner": "Golmote"
},
"pascal": {
"title": "Pascal",
"owner": "Golmote"
},
"applescript": {
"title": "AppleScript",
"owner": "Golmote"
},
"rust": {
"title": "Rust",
"owner": "Golmote"
},
"dart": {
"title": "Dart",
"require": "clike",
"owner": "Golmote"
},
"powershell": {
"title": "PowerShell",
"owner": "nauzilus"
},
"smarty": {
"title": "Smarty",
"require": "markup",
"owner": "Golmote"
},
"actionscript": {
"title": "ActionScript",
"require": "javascript",
"owner": "Golmote"
},
"markdown": {
"title": "Markdown",
"require": "markup",
"owner": "Golmote"
},
"jsx":{
"title": "React JSX",
"require": ["markup", "javascript"],
"owner": "vkbansal"
},
"typescript":{
"title": "TypeScript",
"require": "javascript",
"owner": "vkbansal"
},
"fsharp": {
"title": "F#",
"require": "clike",
"owner": "simonreynolds7"
}
},
"plugins": {
Expand All @@ -191,6 +324,11 @@ var components = {
"show-language": {
"title": "Show Language",
"owner": "nauzilus"
},
"highlight-keywords": {
"title": "Highlight Keywords",
"owner": "vkbansal",
"noCSS": true
}
}
};
20 changes: 20 additions & 0 deletions components/prism-actionscript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* TODO
Fix XML highlighting
*/

Prism.languages.actionscript = Prism.languages.extend('javascript', {
'keyword': /\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/,
'operator': /(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=)=?|[=~?@]/
});
Prism.languages.actionscript['class-name'].alias = 'function';

if (Prism.languages.markup) {
Prism.languages.insertBefore('actionscript', 'operator', {
'xml': {
pattern: /(^|[^.])<[\s\S]*>(?=\s*($|[\r\n,.;\]})<]))/,
inside: {
rest: Prism.languages.markup
}
}
});
}
1 change: 1 addition & 0 deletions components/prism-actionscript.min.js

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

46 changes: 46 additions & 0 deletions components/prism-apacheconf.js

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

Loading

0 comments on commit 07f078e

Please sign in to comment.