Verified Commit 1f3f7da2 authored by Camil Staps's avatar Camil Staps 🚀

v0.1.30: add some specializations for packed array type definition (in...

v0.1.30: add some specializations for packed array type definition (in cloogle) and packed array expressions
parent c84223e4
Pipeline #42197 passed with stage
in 56 seconds
...@@ -196,6 +196,8 @@ var highlightRules = { ...@@ -196,6 +196,8 @@ var highlightRules = {
['keyword']], ['keyword']],
[/([\(\)])/, ['punctuation']], [/([\(\)])/, ['punctuation']],
[/(::)/, ['punctuation'], 'type'], [/(::)/, ['punctuation'], 'type'],
[/({)(\s*)(32)(\s*)(#)/,
['punctuation','whitespace','punctuation','whitespace','punctuation']],
[/([{};])/, ['punctuation']], [/([{};])/, ['punctuation']],
[/(=>)/, ['punctuation']], [/(=>)/, ['punctuation']],
[/(")/, ['literal literal-string'], 'string'], [/(")/, ['literal literal-string'], 'string'],
...@@ -489,6 +491,7 @@ var highlightRules = { ...@@ -489,6 +491,7 @@ var highlightRules = {
[/(\[! \])/, ['type']], // Special cases for head-strict and tail-strict lists; [/(\[! \])/, ['type']], // Special cases for head-strict and tail-strict lists;
[/(\[ !\])/, ['type']], // we don't want to parse whitespace there [/(\[ !\])/, ['type']], // we don't want to parse whitespace there
[/(\()(->)(\))/, ['punctuation', 'type', 'punctuation']], [/(\()(->)(\))/, ['punctuation', 'type', 'punctuation']],
[/({32#})/, ['type']],
[/([~@#\$%\^\?!\+\-\*<>\\\/\|&=:\[\]{}(,)]+)/, ['type']], [/([~@#\$%\^\?!\+\-\*<>\\\/\|&=:\[\]{}(,)]+)/, ['type']],
[/([a-z_`][\w`]*)/, ['typevar'], 'jump:typeDefVars'] [/([a-z_`][\w`]*)/, ['typevar'], 'jump:typeDefVars']
], ],
......
{ {
"name": "clean-highlighter", "name": "clean-highlighter",
"version": "0.1.29", "version": "0.1.30",
"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