From 7ec3da9de756a2e0345e4c1ffedf696cd6912757 Mon Sep 17 00:00:00 2001 From: Mihai Galos Date: Sat, 9 Oct 2021 10:55:17 +0200 Subject: [PATCH] Add support for capital-case Justfile --- ftdetect/just.vim | 2 +- syntax/just.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ftdetect/just.vim b/ftdetect/just.vim index 16ff0e9..4a59041 100644 --- a/ftdetect/just.vim +++ b/ftdetect/just.vim @@ -3,4 +3,4 @@ " Maintainer: Noah Bogart " URL: https://github.com/NoahTheDuke/vim-just.git " Last Change: 2021 May 18 -autocmd BufNewFile,BufRead \cjustfile,.justfile,*.just setfiletype just +autocmd BufNewFile,BufRead \c[Jj]ustfile,.justfile,*.just setfiletype just diff --git a/syntax/just.vim b/syntax/just.vim index 1e4772c..c7c0221 100644 --- a/syntax/just.vim +++ b/syntax/just.vim @@ -84,10 +84,10 @@ syntax region justBody transparent matchgroup=justLineLeadingSymbol start="\v^\s syntax region justInterpolation start="{{" end="}}" contained contains=ALLBUT,justInterpolation,justFunction,justBodyText syntax match justBuiltInFunctionParens "[()]" contained -syntax match justBuiltInFunctions "\v%(arch|os|os_family|invocation_directory|justfile|justfile_directory|just_executable)\ze\(\)" contains=justBuiltInFunctions +syntax match justBuiltInFunctions "\v%(arch|os|os_family|invocation_directory|[Jj]ustfile|justfile_directory|just_executable)\ze\(\)" contains=justBuiltInFunctions syntax region justBuiltInFunctions transparent matchgroup=justBuiltInFunctions start="\v%(env_var_or_default|env_var)\ze\(" end=")" oneline contains=@justAllStrings,justBuiltInFunctionParens,justNoise -syntax match justBuiltInFunctionsError "\v%(arch|os|os_family|invocation_directory|justfile|justfile_directory|just_executable)\(.+\)" +syntax match justBuiltInFunctionsError "\v%(arch|os|os_family|invocation_directory|[Jj]ustfile|justfile_directory|just_executable)\(.+\)" syntax match justOperator "\v%(\=\=|!\=|\+)"