Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for capital-case Justfile #17

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ftdetect/just.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
" Maintainer: Noah Bogart <[email protected]>
" 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
4 changes: 2 additions & 2 deletions syntax/just.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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%(\=\=|!\=|\+)"

Expand Down