v0.1.21: Don't trigger on keyword 'of' without word breaks

parent 0fdba368
Pipeline #16478 passed with stage
in 24 seconds
......@@ -239,7 +239,7 @@ var highlightRules = {
[/(\S)/, ['typevar']]
],
genericArgs: [
[/(of)/, ['keyword'], 'jump:funcargs'],
[/\b(of)\b/, ['keyword'], 'jump:funcargs'],
[/([A-Z]\w*)/, ['type']],
[/(\()(->)(\))/, ['punctuation', 'type', 'punctuation']],
[/([[\]{}!#()>, -]+)/, ['type']],
......@@ -248,7 +248,7 @@ var highlightRules = {
],
type: [
[/(where)/, ['keyword'], 'pop'],
[/(of)/, ['keyword'], 'typeOfPattern'],
[/\b(of)\b/, ['keyword'], 'typeOfPattern'],
[/([a-z][\w`]*)/, ['typevar']],
[/(A)(\.)/, ['existential', 'punctuation'], 'quantifiedVariables'],
[/([A-Z_][\w`]*)/, ['type']],
......
{
"name": "clean-highlighter",
"version": "0.1.20",
"version": "0.1.21",
"description": "Clean language highlighter",
"keywords": ["clean","highlighter"],
"main": "clean.js",
......
-----
class Layout thing size offset host
where
collage :: [offset] [thing m] (host m) -> thing m
overlay :: [XYAlign] [offset] [thing m] (host m) -> thing m
beside :: [size] [YAlign] [offset] [thing m] (host m) -> thing m
above :: [size] [XAlign] [offset] [thing m] (host m) -> thing m
grid :: GridDimension GridLayout [size] [size] [XYAlign] [offset] [thing m] (host m) -> thing m
-----
keyword class
whitespace
classname Layout
whitespace
typevar thing
whitespace
typevar size
whitespace
typevar offset
whitespace
typevar host
whitespace \n
keyword where
whitespace \n
funcname collage
whitespace
punctuation ::
whitespace
punctuation [
typevar offset
punctuation ]
whitespace
punctuation [
typevar thing
whitespace
typevar m
punctuation ]
whitespace
punctuation (
typevar host
whitespace
typevar m
punctuation )
whitespace
punctuation ->
whitespace
typevar thing
whitespace
typevar m
whitespace \n\n
funcname overlay
whitespace
punctuation ::
whitespace
punctuation [
type XYAlign
punctuation ]
whitespace
punctuation [
typevar offset
punctuation ]
whitespace
punctuation [
typevar thing
whitespace
typevar m
punctuation ]
whitespace
punctuation (
typevar host
whitespace
typevar m
punctuation )
whitespace
punctuation ->
whitespace
typevar thing
whitespace
typevar m
whitespace \n\n
funcname beside
whitespace
punctuation ::
whitespace
punctuation [
typevar size
punctuation ]
whitespace
punctuation [
type YAlign
punctuation ]
whitespace
punctuation [
typevar offset
punctuation ]
whitespace
punctuation [
typevar thing
whitespace
typevar m
punctuation ]
whitespace
punctuation (
typevar host
whitespace
typevar m
punctuation )
whitespace
punctuation ->
whitespace
typevar thing
whitespace
typevar m
whitespace \n\n
funcname above
whitespace
punctuation ::
whitespace
punctuation [
typevar size
punctuation ]
whitespace
punctuation [
type XAlign
punctuation ]
whitespace
punctuation [
typevar offset
punctuation ]
whitespace
punctuation [
typevar thing
whitespace
typevar m
punctuation ]
whitespace
punctuation (
typevar host
whitespace
typevar m
punctuation )
whitespace
punctuation ->
whitespace
typevar thing
whitespace
typevar m
whitespace \n\n
funcname grid
whitespace
punctuation ::
whitespace
type GridDimension
whitespace
type GridLayout
whitespace
punctuation [
typevar size
punctuation ]
whitespace
punctuation [
typevar size
punctuation ]
whitespace
punctuation [
type XYAlign
punctuation ]
whitespace
punctuation [
typevar offset
punctuation ]
whitespace
punctuation [
typevar thing
whitespace
typevar m
punctuation ]
whitespace
punctuation (
typevar host
whitespace
typevar m
punctuation )
whitespace
punctuation ->
whitespace
typevar thing
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