diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-01-03 22:52:15 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-01-03 22:55:50 +1100 |
| commit | 328c497be248faf4e13aaececaf849c844c59efe (patch) | |
| tree | eb3d225fc81389afc8938593f065cf715804d75d /test/highlight | |
| parent | 56ee329d79d076742e60c10974c471cc8119ed05 (diff) | |
Add support for named captures to the regex impl and regex highlighter
ECMAScript is adding support for it, and it is a pretty isolated
change to do.
Fixes #2293
Diffstat (limited to 'test/highlight')
| -rw-r--r-- | test/highlight/named-captures/cmd | 1 | ||||
| -rw-r--r-- | test/highlight/named-captures/in | 1 | ||||
| -rw-r--r-- | test/highlight/named-captures/rc | 1 | ||||
| -rw-r--r-- | test/highlight/named-captures/ui-out | 7 |
4 files changed, 10 insertions, 0 deletions
diff --git a/test/highlight/named-captures/cmd b/test/highlight/named-captures/cmd new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/highlight/named-captures/cmd @@ -0,0 +1 @@ + diff --git a/test/highlight/named-captures/in b/test/highlight/named-captures/in new file mode 100644 index 00000000..57ed1021 --- /dev/null +++ b/test/highlight/named-captures/in @@ -0,0 +1 @@ +2018-01-03 diff --git a/test/highlight/named-captures/rc b/test/highlight/named-captures/rc new file mode 100644 index 00000000..14905790 --- /dev/null +++ b/test/highlight/named-captures/rc @@ -0,0 +1 @@ +add-highlighter window/ regex (?<year>\d+)-(?<month>\d+)-(?<day>\d+) year:red month:green day:yellow diff --git a/test/highlight/named-captures/ui-out b/test/highlight/named-captures/ui-out new file mode 100644 index 00000000..7350d79a --- /dev/null +++ b/test/highlight/named-captures/ui-out @@ -0,0 +1,7 @@ +{ "jsonrpc": "2.0", "method": "set_ui_options", "params": [{}] } +{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "white", "attributes": [] }, "contents": "2" }, { "face": { "fg": "red", "bg": "default", "attributes": [] }, "contents": "018" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "-" }, { "face": { "fg": "green", "bg": "default", "attributes": [] }, "contents": "01" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "-" }, { "face": { "fg": "yellow", "bg": "default", "attributes": [] }, "contents": "03" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "\u000a" }]], { "fg": "default", "bg": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "attributes": [] }] } +{ "jsonrpc": "2.0", "method": "menu_hide", "params": [] } +{ "jsonrpc": "2.0", "method": "info_hide", "params": [] } +{ "jsonrpc": "2.0", "method": "draw_status", "params": [[], [{ "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "out 1:1 " }, { "face": { "fg": "black", "bg": "yellow", "attributes": [] }, "contents": "" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "blue", "bg": "default", "attributes": [] }, "contents": "1 sel" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": " - client0@[kak-tests]" }], { "fg": "cyan", "bg": "default", "attributes": [] }] } +{ "jsonrpc": "2.0", "method": "set_cursor", "params": ["buffer", { "line": 0, "column": 0 }] } +{ "jsonrpc": "2.0", "method": "refresh", "params": [true] } |
