Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ddf3cc6

Browse files
authoredJun 7, 2020
Autohotkey: Improved comments and other improvements (#2412)
Original author: nnnik <[email protected]>
1 parent 1e3f542 commit ddf3cc6

File tree

4 files changed

+52
-13
lines changed

4 files changed

+52
-13
lines changed
 

‎components/prism-autohotkey.js

Lines changed: 16 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎components/prism-autohotkey.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
11
;foo
22
; bar
33

4+
nota;comment
5+
6+
; comments break strings
7+
" ;"
8+
9+
/*
10+
0
11+
*/
12+
/*1*/
13+
*/
14+
/*
15+
1 ;
16+
2 */
17+
foo
18+
419
----------------------------------------------------
520

621
[
722
["comment", ";foo"],
8-
["comment", "; bar"]
23+
["comment", "; bar"],
24+
25+
"\r\n\r\nnota;comment\r\n\r\n",
26+
27+
["comment", "; comments break strings"],
28+
"\r\n\" ",
29+
["comment", ";\""],
30+
31+
["comment", "/*\r\n0\r\n*/"],
32+
["comment", "/*1*/\r\n\t */"],
33+
["comment", "/*\r\n1 ;\r\n2 */\r\nfoo"]
934
]
1035

1136
----------------------------------------------------
1237

13-
Checks for comments.
38+
Checks for comments.
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
foo(
22
foo_bar(
33

4+
; not a function
5+
if(
6+
47
----------------------------------------------------
58

69
[
710
["function", "foo"],
811
["punctuation", "("],
912
["function", "foo_bar"],
13+
["punctuation", "("],
14+
15+
["comment", "; not a function"],
16+
["keyword", "if"],
1017
["punctuation", "("]
1118
]
1219

1320
----------------------------------------------------
1421

15-
Checks for functions.
22+
Checks for functions.

0 commit comments

Comments
 (0)
Please sign in to comment.