Skip to content

Commit

Permalink
fix context signature
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Apr 13, 2017
1 parent 06167c9 commit df29a52
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions syntaxes/idris.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,6 @@
"repository": {
"context_signature": {
"patterns": [
{
"name": "meta.context-signature.idris",
"match": "([\\w._']+)((\\s+[\\w_']+)+)\\s*(=>)",
"captures": {
"1": {
"name": "entity.other.inherited-class.idris"
},
"2": {
"name": "entity.other.attribute-name.idris"
},
"4": {
"name": "keyword.operator.double-arrow.idris"
}
}
},
{
"name": "meta.context-signature.idris",
"comment": "For things like '(Eq a, Show b) =>'\nIt begins with '(' either followed by ') =>' on the same line,\nor anything but ')' until the end of line.",
Expand All @@ -120,18 +105,7 @@
}
},
"patterns": [
{
"name": "meta.class-constraint.idris",
"match": "([\\w']+)\\s+([\\w']+)",
"captures": {
"1": {
"name": "entity.other.inherited-class.idris"
},
"2": {
"name": "entity.other.attribute-name.idris"
}
}
}
{ "include": "#type_signature" }
]
}
]
Expand Down Expand Up @@ -183,7 +157,6 @@
"match": "->"
},
{ "include": "#parameter_type" },
{ "include": "#context_signature" },
{ "include": "#language_const" },
{ "include": "#operator" },
{ "include": "#infix_function" },
Expand Down Expand Up @@ -214,6 +187,7 @@
},
"end": "(;|(?<=[^\\s>])\\s*(?!->)\\s*$)",
"patterns": [
{ "include": "#context_signature" },
{ "include": "#type_signature" }
],
"comment": "The end patterm is a bit tricky. It's either ';' or something, at the end of the line,\nbut not '->', because a type signature can be multiline. Though, it doesn't help, if you\nbreak the signature before arrows."
Expand Down

0 comments on commit df29a52

Please sign in to comment.