From a15ff0ffc37876932f67feba27b9ed26d86e8559 Mon Sep 17 00:00:00 2001 From: Justin Frank Date: Mon, 22 Jul 2019 23:48:30 -0700 Subject: [PATCH] Move module aliases to after main module definition --- rc/filetype/c-family.kak | 10 +++++----- rc/filetype/javascript.kak | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/rc/filetype/c-family.kak b/rc/filetype/c-family.kak index 75e7359d..6d0442c1 100644 --- a/rc/filetype/c-family.kak +++ b/rc/filetype/c-family.kak @@ -59,11 +59,6 @@ hook -group objc-highlight global WinSetOption filetype=objc %{ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/objc } } -# Module aliases -provide-module c %{ require-module c-family } -provide-module cpp %{ require-module c-family } -provide-module objc %{ require-module c-family } - provide-module c-family %§ @@ -450,3 +445,8 @@ define-command objc-alternative-file -docstring "Jump to the alternate objc file } § + +# Module aliases +provide-module c %{ require-module c-family } +provide-module cpp %{ require-module c-family } +provide-module objc %{ require-module c-family } diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index c1985195..d18aec24 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -34,9 +34,6 @@ hook -group typescript-highlight global WinSetOption filetype=typescript %{ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/typescript } } -# Aliases -# ‾‾‾‾‾‾‾ -provide-module typescript %{ require-module javascript } provide-module javascript %§ @@ -133,3 +130,7 @@ add-highlighter shared/typescript/code/ regex \b(array|boolean|date|number|objec add-highlighter shared/typescript/code/ regex \b(as|constructor|declare|enum|from|implements|interface|module|namespace|package|private|protected|public|readonly|static|type)\b 0:keyword § + +# Aliases +# ‾‾‾‾‾‾‾ +provide-module typescript %{ require-module javascript }