Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-highlighter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cloogle
clean-highlighter
Commits
3fbd4b60
Verified
Commit
3fbd4b60
authored
Jun 22, 2020
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v0.1.31: add support for ?Just and ?None series of maybe constructors
parent
1f3f7da2
Pipeline
#43824
passed with stage
in 56 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
clean.js
clean.js
+5
-0
package.json
package.json
+1
-1
No files found.
clean.js
View file @
3fbd4b60
...
...
@@ -221,6 +221,7 @@ var highlightRules = {
[
/
(\|)
/
,
[
'
punctuation
'
],
'
jump:guard
'
],
[
/
(
#
)
/
,
[
'
punctuation
'
]],
[
/
([
A-Z
][^
:
\[\]
(),{}=
\s]
+
)
/
,
[
'
constructor
'
]],
[
/
(\?[
#^|
]?(?:
None|Just
)?)
/
,
[
'
constructor
'
]],
[
/
([^
:
\[\]
(),{}=|
\s]
+
)
/
,
[
'
argument
'
]]
],
startConstructor
:
[
// alternative entry point in case this is a constructor
...
...
@@ -271,6 +272,7 @@ var highlightRules = {
typeOfPattern
:
[
[
/
([
a-z
]\w
*
)
/
,
[
'
argument
'
]],
[
/
([
A-Z
]\w
*
)
/
,
[
'
constructor
'
]],
[
/
(\?[
#^|
]?(?:
None|Just
)?)
/
,
[
'
constructor
'
]],
[
/
([
{([
])
/
,
[
'
punctuation
'
],
'
typeOfPattern
'
],
[
/
([
})
\]])
/
,
[
'
punctuation
'
],
'
pop
'
],
[
/
([
=:
]
+
)
/
,
[
'
punctuation
'
]],
...
...
@@ -350,6 +352,7 @@ var highlightRules = {
[
/
(\[)(\s
*
)(
'
)(?=
.*'
\])
/
,
[
'
punctuation
'
,
'
whitespace
'
,
'
literal literal-char
'
],
'
charlist
'
],
[
/
([
A-Z
][\w
`
]
*
)
/
,[
'
constructor
'
]],
[
/
(\?[
#^|
]?(?:
None|Just
)?)
/
,
[
'
constructor
'
]],
[
/
\b(
_
)\b
/
,
[
'
argument argument-wildcard
'
]],
[
/
([\w
`
]
+
)
/
,
[
'
funcname funcname-onlyused
'
]],
[
/
(\S)
/
,
[
'
punctuation
'
]]
...
...
@@ -384,6 +387,7 @@ var highlightRules = {
[
/
([\w
`
]
+
(?:\s
*
[^\S\n])?
::.*
)
/
,
[
'
__type__
'
]],
[
/
([
A-Z
][\w
`
]
*
)
/
,[
'
constructor
'
]],
[
/
(\?[
#^|
]?(?:
None|Just
)?)
/
,
[
'
constructor
'
]],
[
/
\b(
_
)\b
/
,
[
'
argument argument-wildcard
'
]],
[
/
([\w
`
]
+
)
/
,
[
'
funcname funcname-onlyused
'
]],
[
/
(\S)
/
,
[
'
punctuation
'
]]
...
...
@@ -539,6 +543,7 @@ var highlightRules = {
typeDefADT
:
[
[
/
(
E
)(\.)
/
,
[
'
existential
'
,
'
punctuation
'
],
'
quantifiedVariables
'
],
[
/
([
A-Z_
][\w
`
]
*
)
/
,
[
'
constructor
'
],
'
typeDefConsArgs
'
],
[
/
(\?[
#^|
]?(?:
None|Just
)?)
/
,
[
'
constructor
'
],
'
typeDefConsArgs
'
],
[
/
(\()([
~@#
\$
%
\^\?
!
\+\-\*
<>
\\\/\|
&=:
]
*
)(\))
/
,
[
'
punctuation
'
,
'
constructor
'
,
'
punctuation
'
],
'
typeDefConsArgs
'
],
...
...
package.json
View file @
3fbd4b60
{
"name"
:
"clean-highlighter"
,
"version"
:
"0.1.3
0
"
,
"version"
:
"0.1.3
1
"
,
"description"
:
"Clean language highlighter"
,
"keywords"
:
[
"clean"
,
"highlighter"
],
"main"
:
"clean.js"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment