Verified Commit 0fdba368 authored by Camil Staps's avatar Camil Staps 🚀

v0.1.20: same as previous commit, but without lookbehind

parent 618362ea
Pipeline #16313 passed with stage
in 25 seconds
...@@ -367,7 +367,7 @@ var highlightRules = { ...@@ -367,7 +367,7 @@ var highlightRules = {
['punctuation', 'whitespace', 'literal literal-char'], 'charlist'], ['punctuation', 'whitespace', 'literal literal-char'], 'charlist'],
[/(\(.+\)\s+infix.*)/, [/(\(.+\)\s+infix.*)/,
['__type__']], ['__type__']],
[/([\w`]+\s*(?<!\n)::.*)/, [/([\w`]+(?:\s*[^\S\n])?::.*)/,
['__type__']], ['__type__']],
[/([A-Z][\w`]*)/,['constructor']], [/([A-Z][\w`]*)/,['constructor']],
[/\b(_)\b/, ['argument argument-wildcard']], [/\b(_)\b/, ['argument argument-wildcard']],
......
{ {
"name": "clean-highlighter", "name": "clean-highlighter",
"version": "0.1.19", "version": "0.1.20",
"description": "Clean language highlighter", "description": "Clean language highlighter",
"keywords": ["clean","highlighter"], "keywords": ["clean","highlighter"],
"main": "clean.js", "main": "clean.js",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment