grammars/hint.haskell.json in github-linguist-7.8.0 vs grammars/hint.haskell.json in github-linguist-7.9.0

- old
+ new

@@ -267,10 +267,13 @@ "patterns": [ { "include": "#comments" }, { + "include": "#string" + }, + { "include": "#where" }, { "include": "#deriving" }, @@ -1642,17 +1645,42 @@ "patterns": [ { "include": "#via_list" }, { + "include": "#via_list_newline" + }, + { + "include": "#via_indent" + }, + { "include": "#via_simple" }, { "include": "#via_keyword" } ] }, + "via_indent": { + "patterns": [ + { + "name": "meta.via.haskell", + "begin": "^([ \\t]*)(via)\\s*", + "end": "^(?!\\1|[ \\t]*$)", + "patterns": [ + { + "include": "#type_signature" + } + ], + "beginCaptures": { + "2": { + "name": "keyword.other.haskell" + } + } + } + ] + }, "via_keyword": { "patterns": [ { "name": "meta.via.haskell", "match": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(via)(?:(?\u003c=[\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}'])(?![\\p{Ll}_\\p{Lu}\\p{Lt}\\p{Nd}']))", @@ -1668,9 +1696,28 @@ "patterns": [ { "name": "meta.via.haskell", "begin": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(via)\\s*\\(", "end": "\\)", + "patterns": [ + { + "include": "#type_signature" + } + ], + "beginCaptures": { + "1": { + "name": "keyword.other.haskell" + } + } + } + ] + }, + "via_list_newline": { + "patterns": [ + { + "name": "meta.via.haskell", + "begin": "(?:(?=[\\p{Ll}_\\p{Lu}\\p{Lt}])(?\u003c![\\p{Ll}_\\p{Lu}\\p{Lt}']))(via)\\s*", + "end": "$", "patterns": [ { "include": "#type_signature" } ],