Verified Commit 1861ae1e authored by Camil Staps's avatar Camil Staps 🚀

v0.1.1: fix selective imports of generics

parent f41fe265
......@@ -568,6 +568,7 @@ function highlightClean(func, callback, start) {
[/(qualified\b)/,['keyword']],
[/(class\b)/, ['keyword'], 'importSelectionsClass'],
[/(instance\b)/, ['keyword'], 'importSelectionsInstance'],
[/(generic\b)/, ['keyword']],
[/(::)/, ['punctuation'], 'importSelectionsTypeDef'],
[/([^\s,]+)/, ['funcname']]
],
......
{
"name": "clean.js",
"version": "0.1.0",
"version": "0.1.1",
"description": "Clean language highlighter",
"main": "clean.js",
"dependencies": {},
......
-----
from StdString import instance toString {#Char},instance toString Int
from Text.GenJSON import generic JSONEncode, generic JSONDecode, :: JSONNode
-----
keyword from
whitespace
......@@ -19,3 +20,23 @@ whitespace
classname toString
whitespace
type Int
whitespace \n
keyword from
whitespace
modulename Text.GenJSON
whitespace
keyword import
whitespace
keyword generic
whitespace
funcname JSONEncode
punctuation ,
whitespace
keyword generic
whitespace
funcname JSONDecode
punctuation ,
whitespace
punctuation ::
whitespace
type JSONNode
......@@ -904,7 +904,7 @@ whitespace
type ParseError
punctuation ,
whitespace \n
funcname generic
keyword generic
whitespace
funcname docBlockToDoc
punctuation ,
......
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