Skip to content

Commit 314d699

Browse files
authoredOct 5, 2021
Ocaml: Removed unmatchable punctuation variant (#3120)
1 parent eeb1399 commit 314d699

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed
 

‎components/prism-ocaml.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ Prism.languages.ocaml = {
3737
'boolean': /\b(?:false|true)\b/,
3838
// Custom operators are allowed
3939
'operator': /:=|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,
40-
'punctuation': /[(){}\[\]|.,:;]|\b_\b/
40+
'punctuation': /[(){}\[\].,:;]|\b_\b/
4141
};

‎components/prism-ocaml.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
( ) { } [ ]
2+
. , : ;
3+
_
4+
5+
----------------------------------------------------
6+
7+
[
8+
["punctuation", "("],
9+
["punctuation", ")"],
10+
["punctuation", "{"],
11+
["punctuation", "}"],
12+
["punctuation", "["],
13+
["punctuation", "]"],
14+
15+
["punctuation", "."],
16+
["punctuation", ","],
17+
["punctuation", ":"],
18+
["punctuation", ";"],
19+
20+
["punctuation", "_"]
21+
]

0 commit comments

Comments
 (0)
Please sign in to comment.