Skip to content

Commit

Permalink
Merge branch 'master' into prism-multiline-strings
Browse files Browse the repository at this point in the history
Conflicts:
	components/prism-clike.min.js
  • Loading branch information
Golmote committed Jan 11, 2015
2 parents 3aeecb5 + bf66348 commit 07562bd
Show file tree
Hide file tree
Showing 160 changed files with 4,767 additions and 587 deletions.
81 changes: 79 additions & 2 deletions components.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ var components = {
"languages": {
"meta": {
"path": "components/prism-{id}",
"noCSS": true
"noCSS": true,
"examplesPath": "examples/prism-{id}"
},
"markup": {
"title": "Markup",
Expand All @@ -58,6 +59,10 @@ var components = {
"title": "C-like",
"option": "default"
},
"eiffel": {
"title": "Eiffel",
"owner": "Conaclos"
},
"javascript": {
"title": "JavaScript",
"option": "default",
Expand Down Expand Up @@ -196,7 +201,7 @@ var components = {
"owner" : "bacchus123"
},
"nasm": {
"title": "nasm",
"title": "NASM",
"owner": "rbmj"
},
"perl": {
Expand All @@ -205,6 +210,78 @@ var components = {
},
"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"
}
},
Expand Down
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.

2 changes: 1 addition & 1 deletion 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 07562bd

Please sign in to comment.