Skip to content

Commit 271d8eb

Browse files
committed
Merge pull request #18 from deathaxe/pr/fix-variable-patterns
Variable pattern formats
1 parent d88c89f commit 271d8eb

1 file changed

Lines changed: 19 additions & 31 deletions

File tree

Syntax/Just.sublime-syntax

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,37 +18,25 @@ file_extensions:
1818

1919
variables:
2020
valid_name: '[a-zA-Z_][a-zA-Z0-9_-]*'
21-
built_in_functions: |
22-
(?x)(?: # ignore whitespace in this regex
23-
24-
absolute_path | arch | capitalize | clean | env_var_or_default | env_var |
25-
error | extension | file_name | file_stem | invocation_directory_native |
26-
invocation_directory |
27-
join | just_executable | justfile_directory | justfile | kebabcase |
28-
lowercamelcase | lowercase | os_family | os | parent_directory |
29-
path_exists | quote | replace_regex | replace | sha256_file | sha256 |
30-
shoutykebabcase | shoutysnakecase | snakecase | titlecase |
31-
trim_end_matches | trim_end_match | trim_end | trim_start_matches |
32-
trim_start_match | trim_start | trim | uppercase | uppercamelcase |
33-
uuid | without_extension
34-
)
35-
boolean_settings: |
36-
(?x)(?:
37-
allow-duplicate-recipes | dotenv-load | export | fallback | ignore-comments |
38-
positional-arguments | windows-powershell
39-
)
40-
string_settings: |
41-
(?x)(?:
42-
tempdir
43-
)
44-
shell_settings: |
45-
(?x)(?:
46-
shell | windows-shell
47-
)
48-
recipe_attributes: |
49-
(?x)
50-
linux | macos | no-cd | no-exit-message | private | unix | windows
51-
21+
built_in_functions: |-
22+
(?x: absolute_path | arch | capitalize | clean | env_var_or_default | env_var
23+
| error | extension | file_name | file_stem | invocation_directory_native
24+
| invocation_directory | join | just_executable | justfile_directory | justfile
25+
| kebabcase | lowercamelcase | lowercase | os_family | os | parent_directory
26+
| path_exists | quote | replace_regex | replace | sha256_file | sha256
27+
| shoutykebabcase | shoutysnakecase | snakecase | titlecase
28+
| trim_end_matches | trim_end_match | trim_end | trim_start_matches
29+
| trim_start_match | trim_start | trim | uppercase | uppercamelcase
30+
| uuid | without_extension )
31+
boolean_settings: |-
32+
(?x: allow-duplicate-recipes | dotenv-load | export | fallback | ignore-comments
33+
| positional-arguments | windows-powershell )
34+
string_settings: |-
35+
(?x: tempdir )
36+
shell_settings: |-
37+
(?x: shell | windows-shell )
38+
recipe_attributes: |-
39+
(?x: linux | macos | no-cd | no-exit-message | private | unix | windows )
5240
5341
###############################################################################
5442
# MAIN CONTEXT

0 commit comments

Comments
 (0)