Verified Commit 7ecdbbd1 authored by Camil Staps's avatar Camil Staps 🙂

Fix #8: remove special case for newline in types

parent 0d3b56e3
...@@ -207,6 +207,7 @@ function highlightClean(func, callback, start) { ...@@ -207,6 +207,7 @@ function highlightClean(func, callback, start) {
'keyword', 'whitespace', 'keyword', 'whitespace', 'keyword', 'whitespace', 'keyword', 'whitespace',
'punctuation'] 'punctuation']
, 'type'], , 'type'],
[/(\()(\S+)(\))/,['punctuation', 'funcname', 'punctuation'], 'funcargs'],
[/(infix[rl]?)(\s+)(\d*)/, [/(infix[rl]?)(\s+)(\d*)/,
['keyword', 'whitespace', 'keyword']], ['keyword', 'whitespace', 'keyword']],
[/(foreign export(?: (?:c|std)call)?)/, [/(foreign export(?: (?:c|std)call)?)/,
...@@ -259,7 +260,6 @@ function highlightClean(func, callback, start) { ...@@ -259,7 +260,6 @@ function highlightClean(func, callback, start) {
[/(\|})/, ['punctuation'], 'jump:funcargs'], [/(\|})/, ['punctuation'], 'jump:funcargs'],
], ],
type: [ type: [
[/(\n)/, ['whitespace'], 'pop'],
[/(where)/, ['keyword'], 'pop'], [/(where)/, ['keyword'], 'pop'],
[/(of)/, ['keyword'], 'typeOfPattern'], [/(of)/, ['keyword'], 'typeOfPattern'],
[/([a-z][\w`]*)/, ['typevar']], [/([a-z][\w`]*)/, ['typevar']],
...@@ -303,7 +303,6 @@ function highlightClean(func, callback, start) { ...@@ -303,7 +303,6 @@ function highlightClean(func, callback, start) {
[/([*>-]+\|\})/, ['punctuation'], 'jump:contextType'] [/([*>-]+\|\})/, ['punctuation'], 'jump:contextType']
], ],
contextType: [ contextType: [
[/(\n)/, ['whitespace'], 'pop:2;macro'],
[/(special)/, ['keyword'], 'pop:2;special'], [/(special)/, ['keyword'], 'pop:2;special'],
[/(,)/, ['punctuation']], [/(,)/, ['punctuation']],
[/(&)/, ['punctuation'], 'pop'], [/(&)/, ['punctuation'], 'pop'],
......
-----
instance Functor (Const m)
instance Functor (WrappedMonad m) | Monad m
instance Applicative (Const m) | Monoid m
instance Applicative (WrappedMonad m) | Monad m
instance Monad (WrappedMonad m) | Monad m
-----
keyword instance
whitespace
classname Functor
whitespace
punctuation (
type Const
whitespace
typevar m
punctuation )
whitespace \n
keyword instance
whitespace
classname Functor
whitespace
punctuation (
type WrappedMonad
whitespace
typevar m
punctuation )
whitespace
punctuation |
whitespace
classname Monad
whitespace
typevar m
whitespace \n
keyword instance
whitespace
classname Applicative
whitespace
punctuation (
type Const
whitespace
typevar m
punctuation )
whitespace
punctuation |
whitespace
classname Monoid
whitespace
typevar m
whitespace \n
keyword instance
whitespace
classname Applicative
whitespace
punctuation (
type WrappedMonad
whitespace
typevar m
punctuation )
whitespace
punctuation |
whitespace
classname Monad
whitespace
typevar m
whitespace \n
keyword instance
whitespace
classname Monad
whitespace
punctuation (
type WrappedMonad
whitespace
typevar m
punctuation )
whitespace
punctuation |
whitespace
classname Monad
whitespace
typevar m
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