v0.1.22: accept infix keyword without preceding space

parent 704384eb
Pipeline #16521 passed with stage
in 24 seconds
......@@ -181,7 +181,7 @@ var highlightRules = {
[/(::)/, ['punctuation'], 'typeDefName'],
[/(\S+)(\s+)(::)/,
['funcname', 'whitespace', 'punctuation'], 'type'],
[/(\()(\S+)(\))(\s+)(infix[rl]?)(\s*)(\d*)(\s*)(::)/,
[/(\()(\S+)(\))(\s*)(infix[rl]?)(\s*)(\d*)(\s*)(::)/,
['punctuation', 'funcname', 'punctuation', 'whitespace',
'keyword', 'whitespace', 'keyword', 'whitespace',
'punctuation']
......
{
"name": "clean-highlighter",
"version": "0.1.21",
"version": "0.1.22",
"description": "Clean language highlighter",
"keywords": ["clean","highlighter"],
"main": "clean.js",
......
-----
(??) infixl 9 :: ![a] !a -> Int | == a
(???)infixl 9 :: ![a] !(a -> Bool) -> Int
-----
punctuation (
funcname ??
punctuation )
whitespace
keyword infixl
whitespace
keyword 9
whitespace
punctuation ::
whitespace
punctuation ![
typevar a
punctuation ]
whitespace
punctuation !
typevar a
whitespace
punctuation ->
whitespace
type Int
whitespace
punctuation |
whitespace
classname ==
whitespace
typevar a
whitespace \n
punctuation (
funcname ???
punctuation )
whitespace
keyword infixl
whitespace
keyword 9
whitespace
punctuation ::
whitespace
punctuation ![
typevar a
punctuation ]
whitespace
punctuation !(
typevar a
whitespace
punctuation ->
whitespace
type Bool
punctuation )
whitespace
punctuation ->
whitespace
type Int
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