Verified Commit 4dceda21 authored by Camil Staps's avatar Camil Staps 🚀

v0.1.10: miscellaneous fixes for stuff seen in _SystemStrictLists

parent 469a48ad
......@@ -195,6 +195,7 @@ var highlightRules = {
['keyword']],
[/([\(\)])/, ['punctuation']],
[/(::)/, ['punctuation'], 'type'],
[/([{};])/, ['punctuation']],
[/(=>)/, ['punctuation']],
[/(")/, ['literal literal-string'], 'string'],
[/(\|)/, ['punctuation'], 'guard'],
......@@ -204,7 +205,7 @@ var highlightRules = {
[/([^\(\){[\s]+)/, ['funcname'], 'funcargs']
],
moduleName: [
[/(\S+)/, ['modulename'], 'pop']
[/([^\s;]+)/, ['modulename'], 'pop']
],
funcargs: [
[/(=:)/, ['punctuation']],
......@@ -287,7 +288,7 @@ var highlightRules = {
contextType: [
[/(special)/, ['keyword'], 'pop:2;special'],
[/(where)/, ['keyword'], 'pop:3'],
[/(,)/, ['punctuation']],
[/([,;])/, ['punctuation']],
[/(&)/, ['punctuation'], 'pop'],
[/(\[)/, ['punctuation'], 'attrenv'],
[/([\(\[])/, ['punctuation'], 'contextType'],
......@@ -395,7 +396,7 @@ var highlightRules = {
[/(\n)/, ['whitespace'], 'pop'],
[/(where)/, ['keyword'], 'pop'],
[/([a-z][\w`]*)/, ['typevar']],
[/(~)/, ['punctuation']],
[/([.~])/, ['punctuation']],
[/(\|)/, ['punctuation'], 'jump:classContext'],
[/(::)/, ['punctuation'], 'jump:type']
],
......
{
"name": "clean-highlighter",
"version": "0.1.9",
"version": "0.1.10",
"description": "Clean language highlighter",
"keywords": ["clean","highlighter"],
"main": "clean.js",
......
This diff is collapsed.
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