Verified Commit e5b51ef3 authored by Camil Staps's avatar Camil Staps 🚀

v0.1.11: Allow backticks as part of type names

parent 4dceda21
......@@ -247,7 +247,7 @@ var highlightRules = {
[/(of)/, ['keyword'], 'typeOfPattern'],
[/([a-z][\w`]*)/, ['typevar']],
[/(A)(\.)/, ['existential', 'punctuation'], 'quantifiedVariables'],
[/([A-Z_]\w*)/, ['type']],
[/([A-Z_][\w`]*)/, ['type']],
[/(\(\))/, ['type']],
[/(\|)/, ['punctuation'], 'context'],
[/([^\s\w])/, ['punctuation']]
"name": "clean-highlighter",
"version": "0.1.10",
"version": "0.1.11",
"description": "Clean language highlighter",
"keywords": ["clean","highlighter"],
"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