Verified Commit bc4e1325 authored by Camil Staps's avatar Camil Staps 🙂

Fix highlighting of array/list/tuple/arrow types in generics; qualified in selective imports

parent 7b78759c
......@@ -252,6 +252,8 @@ function highlightClean(func, callback, start) {
genericArgs: [
[/(of)/, ['keyword'], 'jump:funcargs'],
[/([A-Z]\w*)/, ['type']],
[/([[\]{}!#()>, -]+)/, ['type']],
[/([a-z]\w*)/, ['typevar']],
[/(\|})/, ['punctuation'], 'jump:funcargs'],
],
type: [
......@@ -542,6 +544,7 @@ function highlightClean(func, callback, start) {
],
importSelections: [
[/(,)([\s\n]*)/, ['punctuation', 'whitespace']],
[/(qualified\b)/,['keyword']],
[/(class\b)/, ['keyword'], 'importSelectionsClass'],
[/(instance\b)/, ['keyword'], 'importSelectionsInstance'],
[/(::)/, ['punctuation'], 'importSelectionsTypeDef'],
......
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