summaryrefslogtreecommitdiff
path: root/syntax
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-04-22 15:53:01 +0100
committerw0rp <devw0rp@gmail.com>2018-04-22 15:53:01 +0100
commit87ad4dfbe78665029521667afb2f159f3865523b (patch)
treeb90164f51ac80c22c6bf2f82e60ecf60227cc33a /syntax
parentd8a673515a8ec9fd102d6da8d8fa499ae2770f11 (diff)
downloadale-87ad4dfbe78665029521667afb2f159f3865523b.zip
Implement a preview window for selecting locations to open
Diffstat (limited to 'syntax')
-rw-r--r--syntax/ale-preview-selection.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/syntax/ale-preview-selection.vim b/syntax/ale-preview-selection.vim
new file mode 100644
index 00000000..879ba096
--- /dev/null
+++ b/syntax/ale-preview-selection.vim
@@ -0,0 +1,11 @@
+if exists('b:current_syntax')
+ finish
+endif
+
+syn match alePreviewSelectionFilename /\v^([a-zA-Z]?:?[^:]+)/
+syn match alPreviewNumber /\v:\d+:\d+$/
+
+hi def link alePreviewSelectionFilename String
+hi def link alePreviewNumber Number
+
+let b:current_syntax = 'ale-preview-selection'