Skip to content
Permalink
Browse files
Ocaml: Removed unmatchable punctuation variant (#3120)
  • Loading branch information
RunDevelopment committed Oct 5, 2021
1 parent eeb1399 commit 314d6994c000bc0360bdf64693b51f64338cfc4e
Showing with 23 additions and 2 deletions.
  1. +1 −1 components/prism-ocaml.js
  2. +1 −1 components/prism-ocaml.min.js
  3. +21 −0 tests/languages/ocaml/punctuation_feature.test
@@ -37,5 +37,5 @@ Prism.languages.ocaml = {
'boolean': /\b(?:false|true)\b/,
// Custom operators are allowed
'operator': /:=|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,
'punctuation': /[(){}\[\]|.,:;]|\b_\b/
'punctuation': /[(){}\[\].,:;]|\b_\b/
};

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,21 @@
( ) { } [ ]
. , : ;
_

----------------------------------------------------

[
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["punctuation", "["],
["punctuation", "]"],

["punctuation", "."],
["punctuation", ","],
["punctuation", ":"],
["punctuation", ";"],

["punctuation", "_"]
]

0 comments on commit 314d699

Please sign in to comment.