Skip to content

Commit ef21a4d

Browse files
committed
Update.
1 parent 6dad15c commit ef21a4d

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

dist/lolight.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! lolight v1.1.0 - https://larsjung.de/lolight/ */
1+
/*! lolight v1.2.0 - https://larsjung.de/lolight/ */
22
(function (root, factory) {
33
if (typeof exports === 'object' && typeof module === 'object') {
44
module.exports = factory(); // eslint-disable-line no-undef

dist/lolight.min.js

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

package-lock.json

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

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lolight",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Lightweight tokenizer and syntax highlighter.",
55
"homepage": "https://larsjung.de/lolight/",
66
"bugs": "https://github.com/lrsjng/lolight/issues",
@@ -23,7 +23,7 @@
2323
"eslint": "5.15.3",
2424
"ghu": "0.15.0",
2525
"isparta": "4.1.1",
26-
"scar": "1.2.0"
26+
"scar": "1.4.0"
2727
},
2828
"engines": {
2929
"node": ">=8.0.0"

src/demo.html

+17-1
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,30 @@
4444

4545
<h1><a href="https://larsjung.de/lolight/">lolight demo</a></h1>
4646

47+
<pre class="lolight">
48+
// c
49+
50+
#include &lt;stdio.h&gt;
51+
52+
typedef struct data_s {
53+
int a;
54+
unsigned long b;
55+
} data_t;
56+
57+
int main(int argc, char** argv) {
58+
printf("Hello, World!");
59+
return 0;
60+
}
61+
</pre>
62+
4763
<pre class="lolight">
4864
// javascript
4965

5066
function hello(x) {
5167
console.log('hello, ' + x + '!');
5268
}
5369

54-
const hi = x => {
70+
const hi = x =&gt; {
5571
console.log(`hi, ${x}`);
5672
};
5773

0 commit comments

Comments
 (0)