Skip to content

Commit

Permalink
Add new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Jan 13, 2024
1 parent e955341 commit 8378dbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,17 @@ functionsWithArgs := '''
'''
zeroArgFunctions := '''
arch
cache_directory
config_directory
config_local_directory
data_directory
data_local_directory
executable_directory
home_directory
invocation_directory
invocation_directory_native
just_executable
just_pid
justfile
justfile_directory
num_cpus
Expand Down
2 changes: 1 addition & 1 deletion syntax/just.vim
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ syn cluster justOtherCurlyBraces contains=justCurlyBraces,justBadCurlyBraces
syn match justFunctionCall "\v\w+%(\s|\\\n)*\(@=" transparent contains=justBuiltInFunction

syn keyword justBuiltInFunction
\ absolute_path arch capitalize clean env env_var env_var_or_default extension file_name file_stem invocation_directory invocation_directory_native join just_executable justfile justfile_directory kebabcase lowercamelcase lowercase num_cpus os os_family parent_directory path_exists quote replace replace_regex semver_matches sha256 sha256_file shoutykebabcase shoutysnakecase snakecase titlecase trim trim_end trim_end_match trim_end_matches trim_start trim_start_match trim_start_matches uppercamelcase uppercase uuid without_extension
\ absolute_path arch cache_directory capitalize clean config_directory config_local_directory data_directory data_local_directory env env_var env_var_or_default executable_directory extension file_name file_stem home_directory invocation_directory invocation_directory_native join just_executable justfile justfile_directory just_pid kebabcase lowercamelcase lowercase num_cpus os os_family parent_directory path_exists quote replace replace_regex semver_matches sha256 sha256_file shoutykebabcase shoutysnakecase snakecase titlecase trim trim_end trim_end_match trim_end_matches trim_start trim_start_match trim_start_matches uppercamelcase uppercase uuid without_extension
\ contained

syn match justUserDefinedError "\verror%(%(\s|\\\n)*\()@="
Expand Down

0 comments on commit 8378dbd

Please sign in to comment.