Skip to content

Commit

Permalink
Add nginx to components, fixed basic highlighting, add a few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Sep 23, 2015
1 parent dc4fc19 commit e62c88e
Show file tree
Hide file tree
Showing 11 changed files with 749 additions and 30 deletions.
5 changes: 5 additions & 0 deletions components.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ var components = {
"title": "NASM",
"owner": "rbmj"
},
"nginx": {
"title": "nginx",
"owner": "westonganger",
"require": "clike"
},
"nim": {
"title": "Nim",
"owner": "Golmote"
Expand Down
17 changes: 5 additions & 12 deletions components/prism-nginx.js

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

1 change: 1 addition & 0 deletions components/prism-nginx.min.js

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

17 changes: 3 additions & 14 deletions examples/prism-nginx.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
<h1>Nginx</h1>
<p>To use this language, use the class "language-nginx".</p>

<h2>Single-line comments</h2>
<h2>Comments</h2>
<pre><code># This is a comment</code></pre>

<h2>Strings</h2>
<pre><code>"foo \"bar\" baz"
'foo \'bar\' baz'</code></pre>

<h2>Regular expressions</h2>
<pre><code>/foo?[ ]*bar/</code></pre>

<h2>Variables</h2>
<pre><code>
fastcgi_param SERVER_NAME $server_name;</code></pre>
<pre><code>fastcgi_param SERVER_NAME $server_name;</code></pre>

<h2>Server Block</h2>
<pre><code>
Expand All @@ -33,7 +25,4 @@ <h2>Server Block</h2>
location / {
proxy_pass http://127.0.0.1:8080;
}
}</code></pre>

<h2>Known failures</h2>
<p>N/A</p>
}</code></pre>
2 changes: 1 addition & 1 deletion plugins/autoloader/prism-autoloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}

// The dependencies map is built automatically with gulp
var lang_dependencies = /*languages_placeholder[*/{"javascript":"clike","actionscript":"javascript","aspnet":"markup","bash":"clike","bison":"c","c":"clike","csharp":"clike","cpp":"c","coffeescript":"javascript","css-extras":"css","d":"clike","dart":"clike","fsharp":"clike","glsl":"clike","go":"clike","groovy":"clike","haml":"ruby","handlebars":"markup","jade":"javascript","java":"clike","less":"css","markdown":"markup","objectivec":"c","php":"clike","php-extras":"php","processing":"clike","qore":"clike","jsx":["markup","javascript"],"ruby":"clike","sass":"css","scss":"css","scala":"java","smarty":"markup","swift":"clike","textile":"markup","twig":"markup","typescript":"javascript","wiki":"markup"}/*]*/;
var lang_dependencies = /*languages_placeholder[*/{"javascript":"clike","actionscript":"javascript","aspnet":"markup","bash":"clike","bison":"c","c":"clike","csharp":"clike","cpp":"c","coffeescript":"javascript","css-extras":"css","d":"clike","dart":"clike","fsharp":"clike","glsl":"clike","go":"clike","groovy":"clike","haml":"ruby","handlebars":"markup","jade":"javascript","java":"clike","less":"css","markdown":"markup","nginx":"clike","objectivec":"c","php":"clike","php-extras":"php","processing":"clike","qore":"clike","jsx":["markup","javascript"],"ruby":"clike","sass":"css","scss":"css","scala":"java","smarty":"markup","swift":"clike","textile":"markup","twig":"markup","typescript":"javascript","wiki":"markup"}/*]*/;

var lang_data = {};

Expand Down
Loading

0 comments on commit e62c88e

Please sign in to comment.